mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 07:26:26 +00:00
Bug 704430 - Remove nsLayoutUtils::GetFrameFor. r=Ms2ger sr=roc
This commit is contained in:
parent
c7c1004a3d
commit
ff0a28720e
@ -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);
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user