Bug 704430 - Remove nsLayoutUtils::GetFrameFor. r=Ms2ger sr=roc

This commit is contained in:
Jignesh Kakadiya 2012-01-09 10:56:04 +01:00
parent c7c1004a3d
commit ff0a28720e
2 changed files with 1 additions and 8 deletions

View File

@ -810,7 +810,7 @@ nsContentEventHandler::OnQueryCharacterAtPoint(nsQueryContentEvent* aEvent)
NS_PRECONDITION(aEvent->widget, "The event must have the widget");
nsIView* view = nsIView::GetViewFor(aEvent->widget);
NS_ENSURE_TRUE(view, NS_ERROR_FAILURE);
rootFrame = nsLayoutUtils::GetFrameFor(view);
rootFrame = view->GetFrame();
NS_ENSURE_TRUE(rootFrame, NS_ERROR_FAILURE);
rootWidget = rootFrame->GetNearestWidget();
NS_ENSURE_TRUE(rootWidget, NS_ERROR_FAILURE);

View File

@ -343,13 +343,6 @@ public:
static bool ScrolledByViewportScrolling(nsIFrame* aActiveScrolledRoot,
nsDisplayListBuilder* aBuilder);
/**
* GetFrameFor returns the root frame for a view
* @param aView is the view to return the root frame for
* @return the root frame for the view
*/
static nsIFrame* GetFrameFor(nsIView *aView) { return aView->GetFrame(); }
/**
* GetScrollableFrameFor returns the scrollable frame for a scrolled frame
*/