Bug 1203610 - Don't load on-demand non-SVG UA sheets during static document clone. r=jwatt

This commit is contained in:
Cameron McCormack 2015-10-20 08:59:37 +11:00
parent 1492cb26ec
commit 7e5d31c9c3

View File

@ -102,6 +102,14 @@ SVGDocument::EnsureNonSVGUserAgentStyleSheetsLoaded()
return; return;
} }
if (IsStaticDocument()) {
// If we're a static clone of a document, then
// nsIDocument::CreateStaticClone will handle cloning the original
// document's sheets, including the on-demand non-SVG UA sheets,
// for us.
return;
}
mHasLoadedNonSVGUserAgentStyleSheets = true; mHasLoadedNonSVGUserAgentStyleSheets = true;
BeginUpdate(UPDATE_STYLE); BeginUpdate(UPDATE_STYLE);