Commit 667a20c2 authored by Timothy Nikkel's avatar Timothy Nikkel
Browse files

Bug 1728691. Use IsRootContentDocumentCrossProcess in...

Bug 1728691. Use IsRootContentDocumentCrossProcess in nsNativeThemeGTK::GetWidgetTransparency. r=karlt

We only want this transparency hack to apply to the root content document, not a document that just happens to be root in it's process (which might not be top level).

Differential Revision: https://phabricator.services.mozilla.com/D124275
parent e389ea6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1956,7 +1956,7 @@ nsITheme::Transparency nsNativeThemeGTK::GetWidgetTransparency(
      // Make scrollbar tracks opaque on the window's scroll frame to prevent
      // leaf layers from overlapping. See bug 1179780.
      if (!(CheckBooleanAttr(aFrame, nsGkAtoms::root_) &&
            aFrame->PresContext()->IsRootContentDocument() &&
            aFrame->PresContext()->IsRootContentDocumentCrossProcess() &&
            IsFrameContentNodeInNamespace(aFrame, kNameSpaceID_XUL))) {
        return eTransparent;
      }