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

Issue 1945563002: Set currentScript for SVGScriptElements. (Closed)

Created:
4 years, 7 months ago by ramya.v
Modified:
4 years, 7 months ago
Reviewers:
tkent, Srirama, fs
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set currentScript for SVGScriptElements. Spec: https://html.spec.whatwg.org/#dom-document-currentscript Mozilla already supports this. BUG=495194 Committed: https://crrev.com/82b3400655ebb30a0099a0f1a91d42d00f26fa08 Cr-Commit-Position: refs/heads/master@{#391486}

Patch Set 1 #

Patch Set 2 : Added test case #

Total comments: 8

Patch Set 3 : Updated as per review comments #

Patch Set 4 : Removed ASSERT #

Total comments: 2

Patch Set 5 : Added DCHECK for type of element allowed #

Total comments: 2

Patch Set 6 : Removed unnecessary include #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -14 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Document/document-current-script-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 2 chunks +12 lines, -5 lines 2 comments Download
M third_party/WebKit/Source/core/dom/Document.idl View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
ramya.v
PTAL! Thanks
4 years, 7 months ago (2016-05-03 10:23:17 UTC) #2
fs
I'd suggest making the title/description be about what is being implemented rather than what didn't ...
4 years, 7 months ago (2016-05-03 10:56:01 UTC) #3
ramya.v
PTAL! Thanks https://codereview.chromium.org/1945563002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1945563002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4595 third_party/WebKit/Source/core/dom/Document.cpp:4595: } On 2016/05/03 10:56:00, fs wrote: > ...
4 years, 7 months ago (2016-05-04 04:18:41 UTC) #5
fs
https://codereview.chromium.org/1945563002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1945563002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4595 third_party/WebKit/Source/core/dom/Document.cpp:4595: } On 2016/05/04 at 04:18:41, ramya.v wrote: > On ...
4 years, 7 months ago (2016-05-04 08:42:54 UTC) #6
ramya.v
PTAL! Thanks https://codereview.chromium.org/1945563002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1945563002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4595 third_party/WebKit/Source/core/dom/Document.cpp:4595: } On 2016/05/04 08:42:54, fs wrote: > ...
4 years, 7 months ago (2016-05-04 09:35:51 UTC) #7
fs
LGTM w/ nit https://codereview.chromium.org/1945563002/diff/80001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/1945563002/diff/80001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode28 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:28: #include "bindings/core/v8/UnionTypesCore.h" Nit: Don't think this ...
4 years, 7 months ago (2016-05-04 10:35:21 UTC) #8
ramya.v
https://codereview.chromium.org/1945563002/diff/80001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/1945563002/diff/80001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode28 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:28: #include "bindings/core/v8/UnionTypesCore.h" On 2016/05/04 10:35:21, fs wrote: > Nit: ...
4 years, 7 months ago (2016-05-04 10:41:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945563002/100001
4 years, 7 months ago (2016-05-04 10:41:50 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-04 12:50:55 UTC) #14
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/82b3400655ebb30a0099a0f1a91d42d00f26fa08 Cr-Commit-Position: refs/heads/master@{#391486}
4 years, 7 months ago (2016-05-04 12:53:52 UTC) #16
Srirama
https://codereview.chromium.org/1945563002/diff/100001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1945563002/diff/100001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4600 third_party/WebKit/Source/core/dom/Document.cpp:4600: DCHECK(newCurrentScript); I think we can remove this DCHECK now. ...
4 years, 7 months ago (2016-05-04 18:26:28 UTC) #18
ramya.v
4 years, 7 months ago (2016-05-05 03:50:34 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/1945563002/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/dom/Document.cpp (right):

https://codereview.chromium.org/1945563002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/dom/Document.cpp:4600: DCHECK(newCurrentScript);
On 2016/05/04 18:26:28, Srirama wrote:
> I think we can remove this DCHECK now. It is taken care in the next line
inside
> is[HTML|SVG]ScriptElement functions.


Removed in https://codereview.chromium.org/1943403005/. Thanks.
Done.

Powered by Google App Engine
This is Rietveld 408576698