зеркало из https://github.com/mozilla/gecko-dev.git
Bug 988882 - Rename PresShell::GetParentPresShell to GetParentPresShellForEventHandling. r=tn
This commit is contained in:
Родитель
ec9cdd90e9
Коммит
88f8e93381
|
@ -6162,13 +6162,13 @@ PresShell::GetRootWindow()
|
|||
|
||||
// If we don't have DOM window, we're zombie, we should find the root window
|
||||
// with our parent shell.
|
||||
nsCOMPtr<nsIPresShell> parent = GetParentPresShell();
|
||||
nsCOMPtr<nsIPresShell> parent = GetParentPresShellForEventHandling();
|
||||
NS_ENSURE_TRUE(parent, nullptr);
|
||||
return parent->GetRootWindow();
|
||||
}
|
||||
|
||||
already_AddRefed<nsIPresShell>
|
||||
PresShell::GetParentPresShell()
|
||||
PresShell::GetParentPresShellForEventHandling()
|
||||
{
|
||||
NS_ENSURE_TRUE(mPresContext, nullptr);
|
||||
|
||||
|
@ -6200,7 +6200,7 @@ PresShell::RetargetEventToParent(WidgetGUIEvent* aEvent,
|
|||
// That way at least the UI key bindings can work.
|
||||
|
||||
nsCOMPtr<nsIPresShell> kungFuDeathGrip(this);
|
||||
nsCOMPtr<nsIPresShell> parentPresShell = GetParentPresShell();
|
||||
nsCOMPtr<nsIPresShell> parentPresShell = GetParentPresShellForEventHandling();
|
||||
NS_ENSURE_TRUE(parentPresShell, NS_ERROR_FAILURE);
|
||||
|
||||
// Fake the event as though it's from the parent pres shell's root frame.
|
||||
|
|
|
@ -629,7 +629,7 @@ protected:
|
|||
nsIDocument* GetTouchEventTargetDocument();
|
||||
#endif
|
||||
bool InZombieDocument(nsIContent *aContent);
|
||||
already_AddRefed<nsIPresShell> GetParentPresShell();
|
||||
already_AddRefed<nsIPresShell> GetParentPresShellForEventHandling();
|
||||
nsIContent* GetCurrentEventContent();
|
||||
nsIFrame* GetCurrentEventFrame();
|
||||
nsresult RetargetEventToParent(mozilla::WidgetGUIEvent* aEvent,
|
||||
|
|
Загрузка…
Ссылка в новой задаче