mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 780692 Part 2.5: Rename GetRootFrameThroughViews to GetNearestFrameContainingPresShell. r=tn
This commit is contained in:
parent
46c2f764b4
commit
d4de439068
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user