| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 9a9c6c6d656340bc45596b3040bd555583b748b0..1ba1c37be97857a0af5a58294172928398765e58 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2490,10 +2490,8 @@ void Document::implicitClose()
|
| ASSERT(!inStyleRecalc());
|
| if (processingLoadEvent() || !m_parser)
|
| return;
|
| - if (frame() && frame()->navigationScheduler().locationChangePending()) {
|
| - suppressLoadEvent();
|
| + if (frame() && frame()->navigationScheduler().locationChangePending())
|
| return;
|
| - }
|
|
|
| // The call to dispatchWindowLoadEvent can detach the LocalDOMWindow and cause it (and its
|
| // attached Document) to be destroyed.
|
| @@ -4419,16 +4417,12 @@ void Document::applyXSLTransform(ProcessingInstruction* pi)
|
| String resultMIMEType;
|
| String newSource;
|
| String resultEncoding;
|
| - setParsing(true);
|
| - if (!processor->transformToString(this, resultMIMEType, newSource, resultEncoding)) {
|
| - setParsing(false);
|
| + if (!processor->transformToString(this, resultMIMEType, newSource, resultEncoding))
|
| return;
|
| - }
|
| // FIXME: If the transform failed we should probably report an error (like Mozilla does).
|
| LocalFrame* ownerFrame = frame();
|
| processor->createDocumentFromSource(newSource, resultEncoding, resultMIMEType, this, ownerFrame);
|
| InspectorInstrumentation::frameDocumentUpdated(ownerFrame);
|
| - setParsing(false);
|
| }
|
|
|
| void Document::setTransformSource(PassOwnPtr<TransformSource> source)
|
|
|