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

Issue 2536553002: Simplify: remove PendingScript::releaseElementAndClear (Closed)

Created:
4 years ago by kouhei (in TOK)
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, loading-reviews+parser_chromium.org, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify: remove PendingScript::releaseElementAndClear Simplify PendingScript disposal path by removing method releaseElementAndClear. Callers should use dispose() directly instead of repeating stopWatchingForLoad + releaseElementAndClear calls. BUG=None Committed: https://crrev.com/9ec9d9b469c760634b4d0126a2c369f3627ac8e9 Cr-Commit-Position: refs/heads/master@{#434897}

Patch Set 1 #

Total comments: 6

Patch Set 2 : git cl try #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -30 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.cpp View 1 2 chunks +11 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 chunk +1 line, -2 lines 2 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp View 1 5 chunks +10 lines, -10 lines 2 comments Download

Messages

Total messages: 22 (12 generated)
kouhei (in TOK)
ptal
4 years ago (2016-11-28 09:17:06 UTC) #2
sof
ScriptStreamerTest needs to be adjusted also. https://codereview.chromium.org/2536553002/diff/1/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2536553002/diff/1/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode55 third_party/WebKit/Source/core/dom/PendingScript.cpp:55: if (m_client) stopWatchingForLoad() ...
4 years ago (2016-11-28 16:17:59 UTC) #7
kouhei (in TOK)
Thanks for the review! https://codereview.chromium.org/2536553002/diff/1/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2536553002/diff/1/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode55 third_party/WebKit/Source/core/dom/PendingScript.cpp:55: if (m_client) On 2016/11/28 16:17:59, ...
4 years ago (2016-11-29 00:49:05 UTC) #10
dominicc (has gone to gerrit)
lgtm
4 years ago (2016-11-29 01:07:22 UTC) #11
yhirano
https://codereview.chromium.org/2536553002/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2536553002/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode564 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:564: m_pendingScript->dispose(); Can you tell me why we can call ...
4 years ago (2016-11-29 01:29:00 UTC) #12
kouhei (in TOK)
https://codereview.chromium.org/2536553002/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2536553002/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode564 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:564: m_pendingScript->dispose(); On 2016/11/29 01:29:00, yhirano wrote: > Can you ...
4 years ago (2016-11-29 01:52:57 UTC) #13
yhirano
lgtm
4 years ago (2016-11-29 04:44:19 UTC) #16
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/2536553002/20001
4 years ago (2016-11-29 04:45:57 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 04:50:19 UTC) #20
commit-bot: I haz the power
4 years ago (2016-11-29 04:54:55 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9ec9d9b469c760634b4d0126a2c369f3627ac8e9
Cr-Commit-Position: refs/heads/master@{#434897}

Powered by Google App Engine
This is Rietveld 408576698