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

Issue 2630293003: Do not allocate SlotAssignment unless a shadowroot has a slot (Closed)

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

Description

Do not allocate SlotAssignment unless a ShadowRoot has a slot Make ShadowRoot::ensureSlotAssignment() private so that it can not be used from outside. Now only ShadowRoot has a responsibility in allocating SlotAssignment. Instead of ShadowRoot::ensureSlotAssignment(), ShadowRoot now provides public ShadowRoot::slotAssignment(), but it uses DCHECK(m_slotAssignment) so that it can be used only where we can assume that SlotAssignment is already allocated. BUG=681134 Review-Url: https://codereview.chromium.org/2630293003 Cr-Commit-Position: refs/heads/master@{#444647} Committed: https://chromium.googlesource.com/chromium/src/+/db77e9ace4f1948a8d1c87c2bd2de1380526bb5b

Patch Set 1 #

Total comments: 4

Patch Set 2 : renamed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -20 lines) Patch
M third_party/WebKit/Source/core/dom/Element.cpp View 1 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp View 1 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSlotElement.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
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/2630293003/1
3 years, 11 months ago (2017-01-17 04:04:15 UTC) #2
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 11 months ago (2017-01-17 04:04:16 UTC) #4
hayato
PTAL
3 years, 11 months ago (2017-01-17 04:14:46 UTC) #9
rune
lgtm
3 years, 11 months ago (2017-01-17 10:42:34 UTC) #13
esprehn
LGTM w/ nit but you don't have to fix it if you prefer these names. ...
3 years, 11 months ago (2017-01-17 10:48:19 UTC) #14
kochi
lgtm
3 years, 11 months ago (2017-01-18 01:53:52 UTC) #15
hayato
renamed
3 years, 11 months ago (2017-01-19 03:12:21 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/2630293003/20001
3 years, 11 months ago (2017-01-19 03:12:42 UTC) #19
hayato
Sure. I have renamed these to honer the *did* convention. https://codereview.chromium.org/2630293003/diff/1/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp File third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp (right): https://codereview.chromium.org/2630293003/diff/1/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp#newcode110 ...
3 years, 11 months ago (2017-01-19 03:13:50 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 05:01:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/db77e9ace4f1948a8d1c87c2bd2d...

Powered by Google App Engine
This is Rietveld 408576698