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

Issue 2696653004: [Script Spec Annotation] Annotate and refactor script element's flags (Closed)

Created:
3 years, 10 months ago by hiroshige
Modified:
3 years, 10 months ago
Reviewers:
kouhei (in TOK)
CC:
chromium-reviews, blink-reviews-html_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Script Spec Annotation] Annotate and refactor script element's flags This CL annotates some flags of ScriptLoader that correspond directly to the spec (https://html.spec.whatwg.org/#script-processing-model), and refactors related code to improve the correspondence to the spec. This CL also - Modifies ScriptLoader constructor to match its flag setting code with the spec, - Reorders the flags to match the order in the spec, - Renames |m_forceAsnyc| to |m_nonBlocking| according to the spec, and - Turn bitfields into normal bools to allow in-class initializers. BUG=686281 Review-Url: https://codereview.chromium.org/2696653004 Cr-Commit-Position: refs/heads/master@{#450203} Committed: https://chromium.googlesource.com/chromium/src/+/f4d659e887283a9cf544f917cf82a5abde22aa7b

Patch Set 1 #

Total comments: 9

Patch Set 2 : More refactor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -20 lines) Patch
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 2 chunks +34 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 5 chunks +30 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLScriptElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (15 generated)
hiroshige
PTAL. Level-setting question: In this CL I tried to add comments as much as possible, ...
3 years, 10 months ago (2017-02-13 21:17:25 UTC) #6
kouhei (in TOK)
> Do you think this is preferable, or is this too much? I'm supportive of ...
3 years, 10 months ago (2017-02-13 21:31:09 UTC) #7
hiroshige
https://codereview.chromium.org/2696653004/diff/1/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2696653004/diff/1/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode73 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:73: // flag on the copy if it is set ...
3 years, 10 months ago (2017-02-13 21:46:53 UTC) #10
kouhei (in TOK)
lgtm
3 years, 10 months ago (2017-02-13 21:53:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2696653004/20001
3 years, 10 months ago (2017-02-14 00:40:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2696653004/20001
3 years, 10 months ago (2017-02-14 02:05:20 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 02:26:21 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f4d659e887283a9cf544f917cf82...

Powered by Google App Engine
This is Rietveld 408576698