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

Issue 59463007: Have Element::ensureUserAgentShadowRoot() return a reference (Closed)

Created:
7 years, 1 month ago by Inactive
Modified:
7 years, 1 month ago
Reviewers:
adamk, eseidel
CC:
blink-reviews, nessy, webcomponents-bugzilla_chromium.org, philipj_slow, eae+blinkwatch, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Have Element::ensureUserAgentShadowRoot() return a reference Have Element::ensureUserAgentShadowRoot() return a reference instead of a pointer as it can never return null. R=adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161631

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix nit #

Patch Set 3 : Attempt to fix win build #

Total comments: 3

Patch Set 4 : Add extra assertion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -33 lines) Patch
M Source/core/dom/Element.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/dom/shadow/ElementShadow.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/shadow/ElementShadow.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/html/HTMLDetailsElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLDetailsElement.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLInputElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLKeygenElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLKeygenElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMeterElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMeterElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLProgressElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLProgressElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLSummaryElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLSummaryElement.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLTextAreaElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLTextAreaElement.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Inactive
7 years, 1 month ago (2013-11-06 15:30:11 UTC) #1
adamk
This overlaps almost completely with https://codereview.chromium.org/59113007/, which eseidel expressed concerns about that I was hoping ...
7 years, 1 month ago (2013-11-06 17:15:03 UTC) #2
eseidel
Discussed with adamk in person. https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp File Source/core/dom/shadow/ElementShadow.cpp (right): https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp#newcode152 Source/core/dom/shadow/ElementShadow.cpp:152: return *shadowRoot; It's generally ...
7 years, 1 month ago (2013-11-06 20:18:39 UTC) #3
adamk
lgtm https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp File Source/core/dom/shadow/ElementShadow.cpp (right): https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp#newcode152 Source/core/dom/shadow/ElementShadow.cpp:152: return *shadowRoot; On 2013/11/06 20:18:39, eseidel wrote: > ...
7 years, 1 month ago (2013-11-06 20:24:05 UTC) #4
Inactive
https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp File Source/core/dom/shadow/ElementShadow.cpp (right): https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp#newcode152 Source/core/dom/shadow/ElementShadow.cpp:152: return *shadowRoot; On 2013/11/06 20:24:05, adamk wrote: > On ...
7 years, 1 month ago (2013-11-07 16:54:27 UTC) #5
adamk
On 2013/11/07 16:54:27, Chris Dumez wrote: > https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp > File Source/core/dom/shadow/ElementShadow.cpp (right): > > https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp#newcode152 ...
7 years, 1 month ago (2013-11-07 19:43:44 UTC) #6
Inactive
On 2013/11/07 19:43:44, adamk wrote: > On 2013/11/07 16:54:27, Chris Dumez wrote: > > > ...
7 years, 1 month ago (2013-11-07 19:48:35 UTC) #7
Inactive
https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp File Source/core/dom/shadow/ElementShadow.cpp (right): https://codereview.chromium.org/59463007/diff/1/Source/core/dom/shadow/ElementShadow.cpp#newcode152 Source/core/dom/shadow/ElementShadow.cpp:152: return *shadowRoot; On 2013/11/06 20:24:05, adamk wrote: > On ...
7 years, 1 month ago (2013-11-07 20:03:27 UTC) #8
adamk
lgtm
7 years, 1 month ago (2013-11-07 20:08:18 UTC) #9
Inactive
On 2013/11/07 20:08:18, adamk wrote: > lgtm Thanks Adam. Eric, any objection to landing this ...
7 years, 1 month ago (2013-11-07 20:10:17 UTC) #10
eseidel
I think ADam and I ended up on the same page after our pow-wow. If ...
7 years, 1 month ago (2013-11-07 23:28:19 UTC) #11
eseidel
Please feel free to ignore my comments. https://codereview.chromium.org/59463007/diff/260001/Source/core/dom/shadow/ElementShadow.cpp File Source/core/dom/shadow/ElementShadow.cpp (right): https://codereview.chromium.org/59463007/diff/260001/Source/core/dom/shadow/ElementShadow.cpp#newcode152 Source/core/dom/shadow/ElementShadow.cpp:152: ASSERT(m_shadowRoots.head()); Did ...
7 years, 1 month ago (2013-11-07 23:30:06 UTC) #12
adamk
https://codereview.chromium.org/59463007/diff/260001/Source/core/dom/shadow/ElementShadow.cpp File Source/core/dom/shadow/ElementShadow.cpp (right): https://codereview.chromium.org/59463007/diff/260001/Source/core/dom/shadow/ElementShadow.cpp#newcode152 Source/core/dom/shadow/ElementShadow.cpp:152: ASSERT(m_shadowRoots.head()); On 2013/11/07 23:30:07, eseidel wrote: > Did you ...
7 years, 1 month ago (2013-11-08 00:01:50 UTC) #13
Inactive
https://codereview.chromium.org/59463007/diff/260001/Source/core/dom/shadow/ElementShadow.cpp File Source/core/dom/shadow/ElementShadow.cpp (right): https://codereview.chromium.org/59463007/diff/260001/Source/core/dom/shadow/ElementShadow.cpp#newcode152 Source/core/dom/shadow/ElementShadow.cpp:152: ASSERT(m_shadowRoots.head()); On 2013/11/07 23:30:07, eseidel wrote: > Did you ...
7 years, 1 month ago (2013-11-08 15:09:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/59463007/350001
7 years, 1 month ago (2013-11-08 15:20:42 UTC) #15
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 16:47:41 UTC) #16
Message was sent while issue was closed.
Change committed as 161631

Powered by Google App Engine
This is Rietveld 408576698