forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename HTMLScriptRunner to HTMLParserScriptRunner and add comments.
This class is only responsible for scripts inserted and executed due to HTMLDocumentParser, so it's renamed to reflect this (and hopefully make its relationship to ScriptRunner and ScriptLoader clearer). execute is renamed to processScriptElement, because it contains the logic for processing a script end tag (from the spec), which does not necessarily execute the script synchronously. isPendingScriptReady is renamed to isParserBlockingScriptReady, since that is the particular pending script it means, as opposed to m_scriptsToExecuteAfterParsing. There is still some more minor inconsistency in the use of the term "parser-blocking script" as opposed to the spec's "parsing-blocking script", but this would require changes to more connected classes to fix. executeParsingBlockingScript is inlined into executeParsingBlockingScripts, since both methods are small but have confusingly similar names. ASSERT is changed to DCHECK because check-webkit-style insists. This should cause no functional changes. Review-Url: https://codereview.chromium.org/2559803002 Cr-Commit-Position: refs/heads/master@{#437363}
- Loading branch information
1 parent
ea856e3
commit 799df4e
Showing
7 changed files
with
149 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.