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

Issue 2174833002: Make fragment-only URLs always be document-local references (Closed)

Created:
4 years, 5 months ago by fs
Modified:
4 years, 5 months ago
Reviewers:
pdr.
CC:
fs, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, krit, Eric Willigers, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make fragment-only URLs always be document-local references This implements the 'local url' handling per: https://drafts.csswg.org/css-values/#local-urls which is also referenced from: https://svgwg.org/svg2-draft/linking.html#linkRefAttrs Most of the logic is handled by a new helper class named SVGURLReferenceResolver, which keeps state, resolves the URL and extracts the fragment identifier as needed. BUG=470608 Committed: https://crrev.com/e7d7225c33aa7fc42ee390125b01df9167fad106 Cr-Commit-Position: refs/heads/master@{#407299}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Remove isExternal...; add additional test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -93 lines) Patch
A third_party/WebKit/LayoutTests/css3/filters/effect-reference-local-url-with-base.html View 1 chunk +16 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/css3/filters/effect-reference-local-url-with-base-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-local-url-with-base.html View 1 chunk +18 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-local-url-with-base-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/svg/local-url-with-valid-base-and-resource.html View 1 1 chunk +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/svg/local-url-with-valid-base-and-resource-expected.html View 1 1 chunk +0 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/svg/resources/red100x100.svg View 1 1 chunk +3 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/svg/custom/linking-base-external-reference-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/svg/custom/linking-base-external-reference-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/svg/custom/linking-base-external-reference-expected.txt View 1 chunk +0 lines, -14 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.9/svg/custom/linking-base-external-reference-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/svg/custom/linking-base-external-reference-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/svg/custom/linking-base-external-reference-expected.txt View 1 chunk +0 lines, -14 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/svg/custom/linking-base-external-reference-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/svg/custom/linking-base-external-reference-expected.txt View 1 chunk +0 lines, -14 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/animations/local-url-target-reference.html View 1 chunk +19 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/svg/animations/local-url-target-reference-expected.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/baseuri-href-expected.html View 1 chunk +2 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/svg/custom/linking-base-external-reference.xhtml View 1 chunk +0 lines, -18 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/local-url-reference-srcdoc.html View 1 chunk +12 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/svg/custom/local-url-reference-srcdoc-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/local-url-references.html View 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/local-url-references-expected.html View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/text/textpath-local-url-reference.html View 1 chunk +7 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/svg/text/textpath-local-url-reference-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGURIReference.h View 1 2 chunks +18 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGURIReference.cpp View 1 chunk +33 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
fs
https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode128 third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp:128: return ReferenceClipPathOperation::create(toCSSURIValue(value).value(), resolver.fragmentIdentifier()); This has a (preexisting) bug (filed ...
4 years, 5 months ago (2016-07-22 16:06:53 UTC) #6
pdr.
Really nice! Just a few minor comments/questions. https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/svg/SVGURIReference.h File third_party/WebKit/Source/core/svg/SVGURIReference.h (right): https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/svg/SVGURIReference.h#newcode78 third_party/WebKit/Source/core/svg/SVGURIReference.h:78: // flag' ...
4 years, 5 months ago (2016-07-22 19:18:28 UTC) #7
pdr.
https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/svg/SVGURIReference.h File third_party/WebKit/Source/core/svg/SVGURIReference.h (right): https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/svg/SVGURIReference.h#newcode79 third_party/WebKit/Source/core/svg/SVGURIReference.h:79: class SVGURLReferenceResolver { On 2016/07/22 at 19:18:28, pdr. wrote: ...
4 years, 5 months ago (2016-07-22 20:02:31 UTC) #8
fs
https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/svg/SVGURIReference.h File third_party/WebKit/Source/core/svg/SVGURIReference.h (right): https://codereview.chromium.org/2174833002/diff/1/third_party/WebKit/Source/core/svg/SVGURIReference.h#newcode78 third_party/WebKit/Source/core/svg/SVGURIReference.h:78: // flag' per https://drafts.csswg.org/css-values/#local-urls . On 2016/07/22 at 19:18:28, ...
4 years, 5 months ago (2016-07-22 21:15:03 UTC) #11
pdr.
LGTM!
4 years, 5 months ago (2016-07-22 21:53:11 UTC) #12
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/2174833002/20001
4 years, 5 months ago (2016-07-22 22:57:34 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-22 23:33:26 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 23:35:39 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e7d7225c33aa7fc42ee390125b01df9167fad106
Cr-Commit-Position: refs/heads/master@{#407299}

Powered by Google App Engine
This is Rietveld 408576698