Bug 1507540 part 2. Use more notxpcom attributes in docshell/. r=smaug

This commit is contained in:
Boris Zbarsky
2018-11-19 20:17:53 -05:00
parent b5c6678235
commit 685b646fa2
33 changed files with 129 additions and 234 deletions

View File

@@ -323,8 +323,7 @@ nsGenericHTMLFrameElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
if (cur != val) {
scrollable->SetDefaultScrollbarPreferences(nsIScrollable::ScrollOrientation_X, val);
scrollable->SetDefaultScrollbarPreferences(nsIScrollable::ScrollOrientation_Y, val);
RefPtr<nsPresContext> presContext;
docshell->GetPresContext(getter_AddRefs(presContext));
RefPtr<nsPresContext> presContext = docshell->GetPresContext();
nsIPresShell* shell = presContext ? presContext->GetPresShell() : nullptr;
nsIFrame* rootScroll = shell ? shell->GetRootScrollFrame() : nullptr;
if (rootScroll) {