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

Unified Diff: Source/core/dom/ScriptableDocumentParser.cpp

Issue 798963002: Only populate line number in case parsing synchronously. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with rebaselined tests. Created 6 years 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/dom/ScriptableDocumentParser.cpp
diff --git a/Source/core/dom/ScriptableDocumentParser.cpp b/Source/core/dom/ScriptableDocumentParser.cpp
index 5ba15f96d2aa039a721a3eba03be9d17ca0a23f1..3d778b6babf96d324dc33f9069cfa385a5fe5784 100644
--- a/Source/core/dom/ScriptableDocumentParser.cpp
+++ b/Source/core/dom/ScriptableDocumentParser.cpp
@@ -40,4 +40,9 @@ ScriptableDocumentParser::ScriptableDocumentParser(Document& document, ParserCon
m_parserContentPolicy = allowPluginContent(m_parserContentPolicy);
}
+bool ScriptableDocumentParser::isParsingAtLineNumber() const
+{
+ return isParsing() && !isWaitingForScripts() && !isExecutingScript();
+}
+
};

Powered by Google App Engine
This is Rietveld 408576698