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

Issue 2706583002: Fix the way <title> is read under <use> shadow tree (Closed)

Created:
3 years, 10 months ago by mrunal
Modified:
3 years, 9 months ago
Reviewers:
fs
CC:
fs, blink-reviews, chromium-reviews, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the way <title> is read under <use> shadow tree Earlier there was no way <title> element could be read under <use> shadow tree. By implementing title() override in SVGUseElement we return first <title> child under <use> if there is any. Otherwise we return the first <title> child from the shadow tree instance under <use>. BUG=619073 Review-Url: https://codereview.chromium.org/2706583002 Cr-Commit-Position: refs/heads/master@{#454683} Committed: https://chromium.googlesource.com/chromium/src/+/58b15addedd3cb872fedf1d7a9c88fce8c35e0de

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add title() handler to SVGUseElement and remove code from SVGElement #

Total comments: 1

Patch Set 3 : Add layout test #

Total comments: 7

Patch Set 4 : Add testharness based test case and remove shadow tree test case #

Total comments: 13

Patch Set 5 : Add checks for eventSender and testRunner #

Total comments: 4

Patch Set 6 : Remove the validity checks for eventSender and testRunner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (17 generated)
mrunal
Hi fs, Can you PTAL. Thanks.
3 years, 10 months ago (2017-02-24 01:24:59 UTC) #3
fs
You should add some form of test for this (there's a 'tooltipText' or so on ...
3 years, 10 months ago (2017-02-24 09:06:18 UTC) #4
mrunal
https://codereview.chromium.org/2706583002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp File third_party/WebKit/Source/core/svg/SVGElement.cpp (right): https://codereview.chromium.org/2706583002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp#newcode210 third_party/WebKit/Source/core/svg/SVGElement.cpp:210: // descendants using FlatTreeTraversal. On 2017/02/24 09:06:18, fs wrote: ...
3 years, 10 months ago (2017-02-25 00:31:19 UTC) #5
fs
https://codereview.chromium.org/2706583002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp File third_party/WebKit/Source/core/svg/SVGElement.cpp (right): https://codereview.chromium.org/2706583002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp#newcode210 third_party/WebKit/Source/core/svg/SVGElement.cpp:210: // descendants using FlatTreeTraversal. On 2017/02/25 at 00:31:18, mrunal ...
3 years, 9 months ago (2017-02-27 08:57:09 UTC) #6
mrunal
On 2017/02/27 08:57:09, fs wrote: > https://codereview.chromium.org/2706583002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp > File third_party/WebKit/Source/core/svg/SVGElement.cpp (right): > > https://codereview.chromium.org/2706583002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp#newcode210 > ...
3 years, 9 months ago (2017-02-28 01:07:14 UTC) #7
fs
On 2017/02/28 at 01:07:14, mrunal.kapade wrote: ... > Thanks for your helpful suggestions. I have ...
3 years, 9 months ago (2017-02-28 09:07:15 UTC) #11
mrunal
On 2017/02/28 09:07:15, fs wrote: > On 2017/02/28 at 01:07:14, mrunal.kapade wrote: > ... > ...
3 years, 9 months ago (2017-03-01 02:33:40 UTC) #14
fs
https://codereview.chromium.org/2706583002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html File third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html (right): https://codereview.chromium.org/2706583002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html#newcode11 third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html:11: </use> Nit: Can move this to the previous line. ...
3 years, 9 months ago (2017-03-01 09:29:05 UTC) #17
mrunal
https://codereview.chromium.org/2706583002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html File third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html (right): https://codereview.chromium.org/2706583002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html#newcode24 third_party/WebKit/LayoutTests/svg/dom/title-in-shadow-tree-without-any-title-in-use.html:24: testRunner.dumpAsText(); On 2017/03/01 09:29:05, fs wrote: > It should ...
3 years, 9 months ago (2017-03-02 03:37:44 UTC) #18
fs
Thanks, looks good for the most part, just needs a few smaller fixups before it's ...
3 years, 9 months ago (2017-03-02 08:45:07 UTC) #23
mrunal
https://codereview.chromium.org/2706583002/diff/60001/third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html File third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html (right): https://codereview.chromium.org/2706583002/diff/60001/third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html#newcode2 third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html:2: <body> On 2017/03/02 08:45:07, fs wrote: > You don't ...
3 years, 9 months ago (2017-03-02 23:49:07 UTC) #24
fs
LGTM w/ nits https://codereview.chromium.org/2706583002/diff/60001/third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html File third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html (right): https://codereview.chromium.org/2706583002/diff/60001/third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html#newcode30 third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html:30: eventSender.dragMode = false; On 2017/03/02 at ...
3 years, 9 months ago (2017-03-03 08:53:30 UTC) #25
mrunal
https://codereview.chromium.org/2706583002/diff/80001/third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html File third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html (right): https://codereview.chromium.org/2706583002/diff/80001/third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html#newcode12 third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html:12: <rect width="50" height="50" fill="red"> On 2017/03/03 08:53:30, fs wrote: ...
3 years, 9 months ago (2017-03-03 20:09:40 UTC) #26
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/2706583002/100001
3 years, 9 months ago (2017-03-03 20:10:34 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 21:39:23 UTC) #32
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/58b15addedd3cb872fedf1d7a9c8...

Powered by Google App Engine
This is Rietveld 408576698