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

Issue 2585353002: Detach Event Listener Properties before moving Node. (Closed)

Created:
4 years ago by wjmaclean
Modified:
3 years, 11 months ago
Reviewers:
bokan, dtapuska
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Detach Event Listener Properties before moving Node. In preparation for storing EventListenerProperties on a per-frame basis, this CL makes sure old properties are cleared before moving the node iterators between the frameHosts. BUG= Review-Url: https://codereview.chromium.org/2585353002 Cr-Commit-Position: refs/heads/master@{#443920} Committed: https://chromium.googlesource.com/chromium/src/+/95a1418e25fe0ef90aa7eced41f73e3e7db1f22c

Patch Set 1 #

Patch Set 2 : Use oldDocument instead of node's document() when deregistering event handlers. #

Total comments: 1

Patch Set 3 : Remove event listener properties before node.document() changes. #

Total comments: 6

Patch Set 4 : Revert to doing update inside moveNodeToNewocument(). #

Total comments: 2

Patch Set 5 : Use more sensible checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -18 lines) Patch
M third_party/WebKit/Source/core/dom/Node.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 4 2 chunks +11 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScopeAdopter.cpp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/EventHandlerRegistry.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp View 1 chunk +0 lines, -8 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 51 (35 generated)
wjmaclean
bokan@ - this is the last of the CLs we started before the holidays. (I'll ...
3 years, 11 months ago (2017-01-04 17:44:36 UTC) #17
bokan
looks like a nice clean up overall. I'm just a little confused as to why ...
3 years, 11 months ago (2017-01-04 23:33:27 UTC) #21
wjmaclean
On 2017/01/04 23:33:27, bokan wrote: > looks like a nice clean up overall. I'm just ...
3 years, 11 months ago (2017-01-04 23:41:30 UTC) #22
wjmaclean
On 2017/01/04 23:41:30, wjmaclean wrote: > > I've sent tkent@ and dominicc@ an e-mai lto ...
3 years, 11 months ago (2017-01-04 23:52:49 UTC) #23
bokan
On 2017/01/04 23:52:49, wjmaclean wrote: > On 2017/01/04 23:41:30, wjmaclean wrote: > > > > ...
3 years, 11 months ago (2017-01-05 14:08:44 UTC) #24
bokan
On 2017/01/04 23:52:49, wjmaclean wrote: > On 2017/01/04 23:41:30, wjmaclean wrote: > > > > ...
3 years, 11 months ago (2017-01-05 14:09:26 UTC) #25
wjmaclean
On 2017/01/05 14:09:26, bokan wrote: > > Right, I'm just confused as to why that's ...
3 years, 11 months ago (2017-01-05 14:19:28 UTC) #26
wjmaclean
On 2017/01/05 14:19:28, wjmaclean wrote: > On 2017/01/05 14:09:26, bokan wrote: > > > > ...
3 years, 11 months ago (2017-01-12 16:35:59 UTC) #29
bokan
lgtm % comments https://codereview.chromium.org/2585353002/diff/40001/third_party/WebKit/Source/core/dom/Node.cpp File third_party/WebKit/Source/core/dom/Node.cpp (right): https://codereview.chromium.org/2585353002/diff/40001/third_party/WebKit/Source/core/dom/Node.cpp#newcode1812 third_party/WebKit/Source/core/dom/Node.cpp:1812: if (document().frameHost()) Could we pass in ...
3 years, 11 months ago (2017-01-12 16:54:48 UTC) #32
wjmaclean
I've reverted to calling node.willMoveToNewDocument inside of TreeScopeAdopter::moveNodeToNewDocument() due to the multiple call sites for ...
3 years, 11 months ago (2017-01-13 17:40:30 UTC) #35
dtapuska
On 2017/01/13 17:40:30, wjmaclean wrote: > I've reverted to calling node.willMoveToNewDocument inside of > TreeScopeAdopter::moveNodeToNewDocument() ...
3 years, 11 months ago (2017-01-13 18:24:27 UTC) #36
bokan
https://codereview.chromium.org/2585353002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp File third_party/WebKit/Source/core/dom/Node.cpp (right): https://codereview.chromium.org/2585353002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp#newcode1834 third_party/WebKit/Source/core/dom/Node.cpp:1834: DCHECK_NE(document().frameHost(), oldDocument.frameHost()); Can we assume this in general? What ...
3 years, 11 months ago (2017-01-13 18:35:10 UTC) #37
wjmaclean
https://codereview.chromium.org/2585353002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp File third_party/WebKit/Source/core/dom/Node.cpp (right): https://codereview.chromium.org/2585353002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp#newcode1834 third_party/WebKit/Source/core/dom/Node.cpp:1834: DCHECK_NE(document().frameHost(), oldDocument.frameHost()); On 2017/01/13 18:35:10, bokan wrote: > Can ...
3 years, 11 months ago (2017-01-13 20:04:24 UTC) #40
bokan
still lgtm
3 years, 11 months ago (2017-01-16 16:19:16 UTC) #45
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/2585353002/80001
3 years, 11 months ago (2017-01-16 16:20:21 UTC) #48
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 18:07:07 UTC) #51
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/95a1418e25fe0ef90aa7eced41f7...

Powered by Google App Engine
This is Rietveld 408576698