diff --git a/mozilla/view/src/nsView.cpp b/mozilla/view/src/nsView.cpp index e619101d1c2..b953bf89568 100644 --- a/mozilla/view/src/nsView.cpp +++ b/mozilla/view/src/nsView.cpp @@ -869,7 +869,7 @@ static PRBool ApplyClipRect(const nsView* aView, nsRect* aRect, PRBool aFollowPl nsPoint offset(0, 0); PRBool lastViewIsFloating = aView->GetFloating(); PRBool foundPlaceholders = PR_FALSE; - while (NS_STATIC_CAST(nsIView*, aView) != aStopAtView) { + while (NS_STATIC_CAST(const nsIView*, aView) != aStopAtView) { const nsView* parentView = aView->GetParent(); nsPoint offsetFromParent = aView->GetPosition();