Backed out changeset 85d3d629fa4a (bug 1359486) for crashing in 480345-1.html. r=backout

This commit is contained in:
Sebastian Hengst 2017-04-25 19:44:03 +02:00
Родитель 62e5c659b4
Коммит e55101c5c8
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

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