Bug 780692 Part 2.5: Rename GetRootFrameThroughViews to GetNearestFrameContainingPresShell. r=tn

This commit is contained in:
David Zbarsky 2012-08-30 17:19:26 -04:00
parent 46c2f764b4
commit d4de439068

View File

@ -5640,7 +5640,7 @@ AppendToTouchList(const uint32_t& aKey, nsCOMPtr<nsIDOMTouch>& aData, void *aTou
return PL_DHASH_NEXT;
}
nsIFrame* GetRootFrameThroughViews(nsIPresShell* aPresShell)
nsIFrame* GetNearestFrameContainingPresShell(nsIPresShell* aPresShell)
{
nsIView* view = aPresShell->GetViewManager()->GetRootView();
while (view && !view->GetFrame()) {
@ -5725,7 +5725,7 @@ PresShell::HandleEvent(nsIFrame *aFrame,
return NS_OK;
}
frame = GetRootFrameThroughViews(presShell);
frame = GetNearestFrameContainingPresShell(presShell);
}
if (!frame)
@ -5755,7 +5755,7 @@ PresShell::HandleEvent(nsIFrame *aFrame,
if (aEvent->eventStructType == NS_TOUCH_EVENT) {
FlushPendingNotifications(Flush_Layout);
frame = GetRootFrameThroughViews(this);
frame = GetNearestFrameContainingPresShell(this);
}
bool dispatchUsingCoordinates = NS_IsEventUsingCoordinates(aEvent);