Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: Source/core/html/parser/HTMLDocumentParser.cpp

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased past r181814 conflict Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
index 6550314ea84dcfcda1d5c7d343b5027dd2216d9a..0a366a3645308653d8a7a7044a6ac0f4288a07bd 100644
--- a/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -239,6 +239,17 @@ void HTMLDocumentParser::prepareToStopParsing()
if (isDetached())
return;
+#if ENABLE(OILPAN)
+ // The Oilpan sub-variant of the above; the document (parser) may
+ // only have stopped by this stage, but the parser hasn't been cancelled
+ // and detached. (The will not currently happen when the LocalFrame
haraken 2014/09/11 14:47:26 The => That
+ // is finalized either.) Hence, a stopped parser is the strongest
+ // condition we can test for here. Bail, if so.
+ if (isStopped())
+ return;
+#endif
+
+
attemptToRunDeferredScriptsAndEnd();
}

Powered by Google App Engine
This is Rietveld 408576698