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

Unified Diff: sky/engine/core/html/parser/HTMLDocumentParser.cpp

Issue 950603002: Port sky-scrollable to Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: less setAttributes Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/dom/Document.idl ('k') | sky/examples/data/cities.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLDocumentParser.cpp
diff --git a/sky/engine/core/html/parser/HTMLDocumentParser.cpp b/sky/engine/core/html/parser/HTMLDocumentParser.cpp
index 08087fcb885f615a81b516e92bc77d7ddff12cd4..9f2ab19ed6df9f3be5059df04814b4090759b45d 100644
--- a/sky/engine/core/html/parser/HTMLDocumentParser.cpp
+++ b/sky/engine/core/html/parser/HTMLDocumentParser.cpp
@@ -394,11 +394,12 @@ bool HTMLDocumentParser::isWaitingForScripts() const
void HTMLDocumentParser::resumeAfterWaitingForImports()
{
- RefPtr<HTMLDocumentParser> protect(this);
- ASSERT(!isWaitingForScripts());
+ if (isWaitingForScripts())
+ return;
if (m_pendingChunks.isEmpty())
return;
ASSERT(m_haveBackgroundParser);
+ RefPtr<HTMLDocumentParser> protect(this);
pumpPendingChunks();
}
« no previous file with comments | « sky/engine/core/dom/Document.idl ('k') | sky/examples/data/cities.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698