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

Issue 2875303002: Nested <use>s can resolve against an external resource (Closed)

Created:
3 years, 7 months ago by fs
Modified:
3 years, 7 months ago
Reviewers:
pdr., Stephen Chennney
CC:
fs, blink-reviews, chromium-reviews, krit, fmalita+watch_chromium.org, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Nested <use>s can resolve against an external resource Rather than using TargetElementFromIRIString(...) when resolving nested <use> references, we should be using ResolveTargetElement(), since the latter also considers a possible external resource. BUG=721196 Review-Url: https://codereview.chromium.org/2875303002 Cr-Commit-Position: refs/heads/master@{#471632} Committed: https://chromium.googlesource.com/chromium/src/+/a0de45f1fc217b5e308e5d58ef1ed43064f40ac4

Patch Set 1 #

Patch Set 2 : Avoid adding observers for targets of nested <use> elements #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/svg/custom/resources/green-rect.svg View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-nested-external-href.html View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-nested-external-href-expected.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 3 chunks +6 lines, -5 lines 2 comments Download

Messages

Total messages: 18 (12 generated)
fs
3 years, 7 months ago (2017-05-12 14:57:35 UTC) #8
pdr.
https://codereview.chromium.org/2875303002/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp File third_party/WebKit/Source/core/svg/SVGUseElement.cpp (right): https://codereview.chromium.org/2875303002/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp#newcode562 third_party/WebKit/Source/core/svg/SVGUseElement.cpp:562: Element* target_element = use.ResolveTargetElement(kDontAddObserver); Can you help me understand ...
3 years, 7 months ago (2017-05-13 03:10:51 UTC) #11
fs
https://codereview.chromium.org/2875303002/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp File third_party/WebKit/Source/core/svg/SVGUseElement.cpp (right): https://codereview.chromium.org/2875303002/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp#newcode562 third_party/WebKit/Source/core/svg/SVGUseElement.cpp:562: Element* target_element = use.ResolveTargetElement(kDontAddObserver); On 2017/05/13 at 03:10:50, pdr. ...
3 years, 7 months ago (2017-05-13 08:24:07 UTC) #12
pdr.
On 2017/05/13 at 08:24:07, fs wrote: > https://codereview.chromium.org/2875303002/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp > File third_party/WebKit/Source/core/svg/SVGUseElement.cpp (right): > > https://codereview.chromium.org/2875303002/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp#newcode562 ...
3 years, 7 months ago (2017-05-13 23:09:39 UTC) #13
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/2875303002/20001
3 years, 7 months ago (2017-05-14 08:59:02 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-14 16:39:30 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a0de45f1fc217b5e308e5d58ef1e...

Powered by Google App Engine
This is Rietveld 408576698