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

Issue 2306643004: Check the next chain of a slotchange event correctly on a slotchange at a fallback slot (Closed)

Created:
4 years, 3 months ago by hayato
Modified:
4 years, 3 months ago
Reviewers:
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

Check the next chain of a slotchange event correctly on a slotchange at a fallback slot When a slotchange event happens at a fallback slot, HTMLSlotElement::enqueueSlotChangeEvent() does not check the condition of the next chain of a slotchange correctly. It only checks whether the parent is a shadow host or not. Instead of its own incomplete check logic, we should re-use Node::checkSlotChange() here. This also fixes a crash, reported by bug 642303, because needsDistributionRecalc flag is set correctly by detecting the next chain of a slotchange event. BUG=642303 Committed: https://crrev.com/4ab3573f362bbb835b25567448cc2c4b77427e12 Cr-Commit-Position: refs/heads/master@{#416491}

Patch Set 1 #

Patch Set 2 : Fix a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -6 lines) Patch
M third_party/WebKit/LayoutTests/shadow-dom/slotchange.html View 1 2 chunks +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.h View 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSlotElement.cpp View 1 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
hayato
PTAL
4 years, 3 months ago (2016-09-02 10:56:54 UTC) #7
kochi
The direction to fix the issue sounds good, but it looks the new layout test ...
4 years, 3 months ago (2016-09-02 14:58:02 UTC) #11
hayato
Fix a test
4 years, 3 months ago (2016-09-05 02:09:21 UTC) #12
hayato
On 2016/09/02 at 14:58:02, kochi wrote: > The direction to fix the issue sounds good, ...
4 years, 3 months ago (2016-09-05 02:09:50 UTC) #15
kochi
lgtm
4 years, 3 months ago (2016-09-05 02:15:12 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/2306643004/20001
4 years, 3 months ago (2016-09-05 03:27:13 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-05 03:43:01 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 03:45:45 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4ab3573f362bbb835b25567448cc2c4b77427e12
Cr-Commit-Position: refs/heads/master@{#416491}

Powered by Google App Engine
This is Rietveld 408576698