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

Issue 18676002: Refactoring: Decouple ScriptElement from HTMLScriptElement and SVGScriptElement. (Closed)

Created:
7 years, 5 months ago by Hajime Morrita
Modified:
7 years, 5 months ago
CC:
blink-reviews, eae+blinkwatch, dglazkov+blink, f(malita), adamk+blink_chromium.org, pdr, Stephen Chennney
Visibility:
Public.

Description

Refactoring: Decouple ScriptElement from HTMLScriptElement and SVGScriptElement. This change pulls ScriptElement out from Element inheritance chain. This give us an opportunity to decouple the lifetime of the element and script loading and execution. Various states which is realted to script loading won't be needed and can be discarded once it is feed to the script engine. Such refactoring will follow. Also in a coming change, ScriptElement will be renamed to ElementScriptLoader. TEST=none BUG=240592 R=eseidel,dglazkov,abarth Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153748

Patch Set 1 #

Patch Set 2 : Fixed a crash #

Total comments: 2

Patch Set 3 : Addressed points #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -61 lines) Patch
M Source/core/dom/ScriptElement.h View 5 chunks +30 lines, -13 lines 0 comments Download
M Source/core/dom/ScriptElement.cpp View 1 9 chunks +46 lines, -22 lines 0 comments Download
M Source/core/html/HTMLScriptElement.h View 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/html/HTMLScriptElement.cpp View 1 2 5 chunks +8 lines, -11 lines 0 comments Download
M Source/core/svg/SVGScriptElement.h View 1 2 3 chunks +12 lines, -8 lines 0 comments Download
M Source/core/svg/SVGScriptElement.cpp View 1 2 5 chunks +25 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Hajime Morrita
Refactoring for HTML Imports continues... For coming changes, I'd like to - Morph ScriptElement into ...
7 years, 5 months ago (2013-07-04 08:22:15 UTC) #1
abarth-chromium
realted -> related
7 years, 5 months ago (2013-07-08 18:42:00 UTC) #2
abarth-chromium
LGTM This CL leaves the code in a confusing state. Please rename ScriptElement soon!!! :) ...
7 years, 5 months ago (2013-07-08 18:47:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/18676002/3002
7 years, 5 months ago (2013-07-09 00:05:23 UTC) #4
Hajime Morrita
Thanks for the review! > Rather than ElementScriptLoader, maybe ScriptLoader would be a good name? ...
7 years, 5 months ago (2013-07-09 00:06:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/18676002/7002
7 years, 5 months ago (2013-07-09 00:37:37 UTC) #6
commit-bot: I haz the power
7 years, 5 months ago (2013-07-09 05:39:19 UTC) #7
Message was sent while issue was closed.
Change committed as 153748

Powered by Google App Engine
This is Rietveld 408576698