зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 85d3d629fa4a (bug 1359486) for crashing in 480345-1.html. r=backout
This commit is contained in:
Родитель
62e5c659b4
Коммит
e55101c5c8
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче