Chromium Code Reviews| Index: Source/core/xml/parser/XMLDocumentParser.cpp |
| diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp |
| index e5cc2bde9aef458ae1ef42d94cbfcd5bab8f4499..e7f1790a0df496dd3bef9d20ac4b1c63be039ef9 100644 |
| --- a/Source/core/xml/parser/XMLDocumentParser.cpp |
| +++ b/Source/core/xml/parser/XMLDocumentParser.cpp |
| @@ -1486,7 +1486,7 @@ void XMLDocumentParser::doEnd() |
| xmlDocPtr doc = xmlDocPtrForString(document()->fetcher(), m_originalSourceForTransform.toString(), document()->url().string()); |
| document()->setTransformSource(adoptPtr(new TransformSource(doc))); |
| // Make the document think it's done, so it will apply XSL stylesheets. |
| - document()->setParsing(false); |
| + document()->setParsingState(Document::Parsing); |
|
sof
2014/11/14 21:34:02
Why isn't this Document::Done ?
Nate Chapin
2014/11/14 22:05:25
Oops, thanks!
|
| document()->styleResolverChanged(); |
| // styleResolverChanged() call can detach the parser and null out its |
| @@ -1494,7 +1494,7 @@ void XMLDocumentParser::doEnd() |
| if (isDetached()) |
| return; |
| - document()->setParsing(true); |
| + document()->setParsingState(Document::Done); |
|
sof
2014/11/14 21:34:02
Why isn't this Document::Parsing ?
Nate Chapin
2014/11/14 22:05:25
Done.
|
| DocumentParser::stopParsing(); |
| } |
| } |