diff --git a/layout/svg/SVGImageContext.cpp b/layout/svg/SVGImageContext.cpp index a2dde725d98a..4d327603d0e1 100644 --- a/layout/svg/SVGImageContext.cpp +++ b/layout/svg/SVGImageContext.cpp @@ -10,6 +10,7 @@ // Keep others in (case-insensitive) order: #include "gfxUtils.h" #include "mozilla/Preferences.h" +#include "nsContentUtils.h" #include "nsIFrame.h" #include "nsPresContext.h" @@ -30,7 +31,7 @@ SVGImageContext::MaybeStoreContextPaint(Maybe& aContext, } if (!sEnabledForContent && - !aFromFrame->PresContext()->IsChrome()) { + !nsContentUtils::IsChromeDoc(aFromFrame->GetContent()->OwnerDoc())) { // Context paint is pref'ed off for content and this is a content doc. return; }