DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc

This commit is contained in:
dbaron@dbaron.org
2003-06-19 23:44:01 +00:00
parent c522df5af2
commit 384f320c3a
102 changed files with 698 additions and 1530 deletions

View File

@@ -448,11 +448,10 @@ CanvasFrame::Paint(nsIPresContext* aPresContext,
nscoord width, height;
scrollableFrame->GetClipSize(aPresContext, &width, &height);
}
nsIView* parentView;
parentFrame->GetView(aPresContext, &parentView);
nsIView* parentView = parentFrame->GetView(aPresContext);
nsIScrollableView* scrollableView;
if (NS_SUCCEEDED(parentView->QueryInterface(NS_GET_IID(nsIScrollableView), (void**)&scrollableView))) {
if (NS_SUCCEEDED(CallQueryInterface(parentView, &scrollableView))) {
nscoord width, height;
scrollableView->GetContainerSize(&width, &height);
const nsIView* clippedView;