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

Issue 2622193002: Dispatch slotchange events in "notify mutation observers" steps (Closed)

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

Description

Dispatch slotchange events in "notify mutation observers" steps The spec is: https://dom.spec.whatwg.org/#notify-mutation-observers The current behavior does not match the DOM Standard. The difference is observable if a user mutates DOM, which will trigger a slotchange, in a mutation observer's callback function. See crbug.com/671976 for details. This CL fixes a failing wpt test, wpt/shadow-dom/slotchnage-event.html. BUG=649159, 671976 Review-Url: https://codereview.chromium.org/2622193002 Cr-Commit-Position: refs/heads/master@{#443866} Committed: https://chromium.googlesource.com/chromium/src/+/c806e7eaec2921239800ad1a907b3d347f4f4a30

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixed #

Total comments: 2

Patch Set 3 : clean slotchange list #

Total comments: 2

Patch Set 4 : fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MutationObserver.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MutationObserver.cpp View 1 2 4 chunks +43 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSlotElement.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSlotElement.cpp View 1 2 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 46 (22 generated)
hayato
PTAL
3 years, 11 months ago (2017-01-11 11:01:16 UTC) #6
tkent
https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp File third_party/WebKit/Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp#newcode181 third_party/WebKit/Source/core/dom/MutationObserver.cpp:181: DEFINE_STATIC_LOCAL(SlotChangeList, slotChangeList, (new SlotChangeList)); I'm afraid static strong references ...
3 years, 11 months ago (2017-01-11 11:24:17 UTC) #12
hayato
fixed
3 years, 11 months ago (2017-01-12 03:38:15 UTC) #13
hayato
Thank you for the review. https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp File third_party/WebKit/Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp#newcode181 third_party/WebKit/Source/core/dom/MutationObserver.cpp:181: DEFINE_STATIC_LOCAL(SlotChangeList, slotChangeList, (new SlotChangeList)); ...
3 years, 11 months ago (2017-01-12 03:47:41 UTC) #18
kochi
lgtm https://codereview.chromium.org/2622193002/diff/20001/third_party/WebKit/Source/core/dom/MutationObserver.cpp File third_party/WebKit/Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/2622193002/diff/20001/third_party/WebKit/Source/core/dom/MutationObserver.cpp#newcode286 third_party/WebKit/Source/core/dom/MutationObserver.cpp:286: activeMutationObservers().clear(); Can the same .swap() be used for ...
3 years, 11 months ago (2017-01-12 04:57:55 UTC) #19
tkent
https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp File third_party/WebKit/Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp#newcode181 third_party/WebKit/Source/core/dom/MutationObserver.cpp:181: DEFINE_STATIC_LOCAL(SlotChangeList, slotChangeList, (new SlotChangeList)); On 2017/01/12 at 03:47:41, hayato ...
3 years, 11 months ago (2017-01-12 06:24:36 UTC) #20
hayato
https://codereview.chromium.org/2622193002/diff/20001/third_party/WebKit/Source/core/dom/MutationObserver.cpp File third_party/WebKit/Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/2622193002/diff/20001/third_party/WebKit/Source/core/dom/MutationObserver.cpp#newcode286 third_party/WebKit/Source/core/dom/MutationObserver.cpp:286: activeMutationObservers().clear(); On 2017/01/12 at 04:57:55, kochi wrote: > Can ...
3 years, 11 months ago (2017-01-12 06:30:17 UTC) #21
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/2622193002/20001
3 years, 11 months ago (2017-01-12 07:15:12 UTC) #23
kochi
On 2017/01/12 06:30:17, hayato wrote: > https://codereview.chromium.org/2622193002/diff/20001/third_party/WebKit/Source/core/dom/MutationObserver.cpp > File third_party/WebKit/Source/core/dom/MutationObserver.cpp (right): > > https://codereview.chromium.org/2622193002/diff/20001/third_party/WebKit/Source/core/dom/MutationObserver.cpp#newcode286 > ...
3 years, 11 months ago (2017-01-12 07:18:05 UTC) #24
hayato
On 2017/01/12 at 07:18:05, kochi wrote: > On 2017/01/12 06:30:17, hayato wrote: > > https://codereview.chromium.org/2622193002/diff/20001/third_party/WebKit/Source/core/dom/MutationObserver.cpp ...
3 years, 11 months ago (2017-01-12 07:28:51 UTC) #25
tkent
On 2017/01/12 at 07:28:51, hayato wrote: > On 2017/01/12 at 07:18:05, kochi wrote: > > ...
3 years, 11 months ago (2017-01-12 07:47:47 UTC) #26
hayato
On 2017/01/12 at 07:47:47, tkent wrote: > On 2017/01/12 at 07:28:51, hayato wrote: > > ...
3 years, 11 months ago (2017-01-12 07:52:34 UTC) #28
hayato
On 2017/01/12 at 06:24:36, tkent wrote: > https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp > File third_party/WebKit/Source/core/dom/MutationObserver.cpp (right): > > https://codereview.chromium.org/2622193002/diff/1/third_party/WebKit/Source/core/dom/MutationObserver.cpp#newcode181 ...
3 years, 11 months ago (2017-01-12 07:57:38 UTC) #29
hayato
I do not have a good theory when a queueud microtasks is not executed. To ...
3 years, 11 months ago (2017-01-13 07:43:10 UTC) #30
tkent
On 2017/01/13 at 07:43:10, hayato wrote: > I do not have a good theory when ...
3 years, 11 months ago (2017-01-13 08:31:04 UTC) #31
hayato
On 2017/01/13 at 08:31:04, tkent wrote: > On 2017/01/13 at 07:43:10, hayato wrote: > > ...
3 years, 11 months ago (2017-01-13 08:37:04 UTC) #32
hayato
clean slotchange list
3 years, 11 months ago (2017-01-16 06:18:36 UTC) #33
hayato
I have updated the CL. PTAL. - As we chatted offline, this CL uses static ...
3 years, 11 months ago (2017-01-16 06:24:07 UTC) #36
tkent
lgtm
3 years, 11 months ago (2017-01-16 06:34:15 UTC) #37
kochi
lgtm https://codereview.chromium.org/2622193002/diff/40001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2622193002/diff/40001/third_party/WebKit/Source/core/dom/Document.h#newcode1432 third_party/WebKit/Source/core/dom/Document.h:1432: void clearSlotChangeList(); Forgot to remove this line?
3 years, 11 months ago (2017-01-16 07:07:43 UTC) #38
hayato
fixed
3 years, 11 months ago (2017-01-16 08:11:02 UTC) #39
hayato
https://codereview.chromium.org/2622193002/diff/40001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2622193002/diff/40001/third_party/WebKit/Source/core/dom/Document.h#newcode1432 third_party/WebKit/Source/core/dom/Document.h:1432: void clearSlotChangeList(); On 2017/01/16 at 07:07:42, kochi wrote: > ...
3 years, 11 months ago (2017-01-16 08:11:27 UTC) #42
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/2622193002/60001
3 years, 11 months ago (2017-01-16 08:31:43 UTC) #43
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 10:03:05 UTC) #46
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c806e7eaec2921239800ad1a907b...

Powered by Google App Engine
This is Rietveld 408576698