Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
This is a large patch which tries to switch many of the external consumers of nsGlobalWindow to instead use the new Inner or Outer variants. MozReview-Commit-ID: 99648Lm46T5
This commit is contained in:
@@ -319,7 +319,7 @@ HTMLFrameSetElement::IsEventAttributeNameInternal(nsAtom *aName)
|
||||
HTMLFrameSetElement::GetOn##name_() \
|
||||
{ \
|
||||
if (nsPIDOMWindowInner* win = OwnerDoc()->GetInnerWindow()) { \
|
||||
nsGlobalWindow* globalWin = nsGlobalWindow::Cast(win); \
|
||||
nsGlobalWindowInner* globalWin = nsGlobalWindowInner::Cast(win); \
|
||||
return globalWin->GetOn##name_(); \
|
||||
} \
|
||||
return nullptr; \
|
||||
@@ -332,7 +332,7 @@ HTMLFrameSetElement::IsEventAttributeNameInternal(nsAtom *aName)
|
||||
return; \
|
||||
} \
|
||||
\
|
||||
nsGlobalWindow* globalWin = nsGlobalWindow::Cast(win); \
|
||||
nsGlobalWindowInner* globalWin = nsGlobalWindowInner::Cast(win); \
|
||||
return globalWin->SetOn##name_(handler); \
|
||||
}
|
||||
#define WINDOW_EVENT(name_, id_, type_, struct_) \
|
||||
|
||||
Reference in New Issue
Block a user