Index: Source/core/xml/parser/XMLDocumentParser.cpp |
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp |
index 008125d6652d19944091601e8eff1c09cd061add..0679e2bee99a2dc6c326b3d00140ead3c964494b 100644 |
--- a/Source/core/xml/parser/XMLDocumentParser.cpp |
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp |
@@ -419,7 +419,7 @@ void XMLDocumentParser::end() |
insertErrorMessageBlock(); |
else { |
exitText(); |
- document()->styleResolverChanged(RecalcStyleImmediately); |
+ document()->styleResolverChanged(RecalcStyleDeferred); |
} |
if (isParsing()) |
@@ -1443,7 +1443,7 @@ void XMLDocumentParser::doEnd() |
document()->setTransformSource(adoptPtr(new TransformSource(doc))); |
document()->setParsing(false); // Make the document think it's done, so it will apply XSL stylesheets. |
- document()->styleResolverChanged(RecalcStyleImmediately); |
+ document()->styleResolverChanged(RecalcStyleDeferred); |
// styleResolverChanged() call can detach the parser and null out its document. |
// In that case, we just bail out. |