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

Issue 2752763002: Change the type of a SVG <use> element's shadow tree from "user agent" to "closed" (Closed)

Created:
3 years, 9 months ago by hayato
Modified:
3 years, 9 months ago
Reviewers:
tkent, pdr., fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, fmalita+watch_chromium.org, fs, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the type of a SVG <use> element's shadow tree from "user agent" to "closed" The SVG 2's spec is: https://svgwg.org/svg2-draft/struct.html#UseElement Because SVG spec has been updated to clarify that SVG's <use> element should use a shadow tree as its implementation, we must use the *standard* shadow tree which DOM Standard defines its behavior. That is either an open shadow root or a closed shadow root. It should not be a user-agent shadow root because it is UA's internal concept. Though the SVG spec says nothing about which type of Shadow Root should be used, this CL chose "closed" because it is more compatible to the behavior of user-agent shadow root. Eventually, the spec should clarify the type. BUG=670572 Review-Url: https://codereview.chromium.org/2752763002 Cr-Commit-Position: refs/heads/master@{#457391} Committed: https://chromium.googlesource.com/chromium/src/+/17fa68c396c45e6650df5dd2777a0112800ae61d

Patch Set 1 #

Total comments: 7

Patch Set 2 : Nit; fixed #

Patch Set 3 : Rebased and resolve a conflict in HitTestResult #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -33 lines) Patch
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestResult.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestResult.cpp View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 10 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/PageWidgetDelegate.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 5 chunks +5 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 45 (29 generated)
hayato
PTAL. I have separate this CL from https://codereview.chromium.org/2742293006
3 years, 9 months ago (2017-03-15 10:52:41 UTC) #6
hayato
https://codereview.chromium.org/2752763002/diff/1/third_party/WebKit/Source/core/svg/SVGUseElement.cpp File third_party/WebKit/Source/core/svg/SVGUseElement.cpp (left): https://codereview.chromium.org/2752763002/diff/1/third_party/WebKit/Source/core/svg/SVGUseElement.cpp#oldcode438 third_party/WebKit/Source/core/svg/SVGUseElement.cpp:438: ShadowRoot* shadowTreeRootElement = userAgentShadowRoot(); Since ShadowRoot is not an ...
3 years, 9 months ago (2017-03-15 11:13:00 UTC) #7
fs
LGTM w/ nits https://codereview.chromium.org/2752763002/diff/1/third_party/WebKit/Source/core/layout/HitTestResult.cpp File third_party/WebKit/Source/core/layout/HitTestResult.cpp (right): https://codereview.chromium.org/2752763002/diff/1/third_party/WebKit/Source/core/layout/HitTestResult.cpp#newcode172 third_party/WebKit/Source/core/layout/HitTestResult.cpp:172: void HitTestResult::setToShadowHostIfInUserAgentShadowRoot() { Maybe the method ...
3 years, 9 months ago (2017-03-15 13:34:45 UTC) #10
hayato
Nit; fixed
3 years, 9 months ago (2017-03-16 03:56:02 UTC) #11
hayato
Thank you for the review. https://codereview.chromium.org/2752763002/diff/1/third_party/WebKit/Source/core/layout/HitTestResult.cpp File third_party/WebKit/Source/core/layout/HitTestResult.cpp (right): https://codereview.chromium.org/2752763002/diff/1/third_party/WebKit/Source/core/layout/HitTestResult.cpp#newcode172 third_party/WebKit/Source/core/layout/HitTestResult.cpp:172: void HitTestResult::setToShadowHostIfInUserAgentShadowRoot() { Done ...
3 years, 9 months ago (2017-03-16 03:57:34 UTC) #14
hayato
tkent@, Could you take a look for Source/web/ files? That is just renaming; from setToShadowHostIfInUserAgentShadowRoot ...
3 years, 9 months ago (2017-03-16 04:00:52 UTC) #18
tkent
lgtm
3 years, 9 months ago (2017-03-16 04:04:41 UTC) #19
hayato
Rebased and resolve a conflict in HitTestResult
3 years, 9 months ago (2017-03-16 05:46:19 UTC) #24
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/2752763002/40001
3 years, 9 months ago (2017-03-16 05:51:00 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/327983)
3 years, 9 months ago (2017-03-16 06:13:31 UTC) #32
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/2752763002/40001
3 years, 9 months ago (2017-03-16 06:24:12 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/33486)
3 years, 9 months ago (2017-03-16 06:59:12 UTC) #36
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/2752763002/40001
3 years, 9 months ago (2017-03-16 07:08:53 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/329619)
3 years, 9 months ago (2017-03-16 07:14:29 UTC) #40
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/2752763002/40001
3 years, 9 months ago (2017-03-16 08:25:17 UTC) #42
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 10:12:11 UTC) #45
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/17fa68c396c45e6650df5dd2777a...

Powered by Google App Engine
This is Rietveld 408576698