mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1203610 - Don't load on-demand non-SVG UA sheets during static document clone. r=jwatt
This commit is contained in:
parent
1492cb26ec
commit
7e5d31c9c3
@ -102,6 +102,14 @@ SVGDocument::EnsureNonSVGUserAgentStyleSheetsLoaded()
|
||||
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;
|
||||
|
||||
BeginUpdate(UPDATE_STYLE);
|
||||
|
Loading…
Reference in New Issue
Block a user