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

Issue 2625873010: Resolve CSS url(...) non-<image> values against the correct base (Closed)

Created:
3 years, 11 months ago by fs
Modified:
3 years, 11 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resolve CSS url(...) non-<image> values against the correct base In an external stylesheet, the url(...) should resolve against the URL of the stylesheet. We were always resolving against the document base URL, meaning that 'filter' url(...)'s referencing external files could resolve to the wrong URL. Besides this, add a more generic mechanism to determine whether a CSSValue contains a URL (and hence may need to be re-resolved if it's within an inline style declaration, and it's context element is moved to a different document.) Also adjust the <canvas> 'filter' implementation to resolve against the elements document when applicable. BUG=405315 Review-Url: https://codereview.chromium.org/2625873010 Cr-Commit-Position: refs/heads/master@{#444179} Committed: https://chromium.googlesource.com/chromium/src/+/db478183363dad5b460070122b991a8302a1f98a

Patch Set 1 #

Patch Set 2 : Revert to incorrect serialization; Resolve base for Canvas #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -46 lines) Patch
A third_party/WebKit/LayoutTests/css3/filters/adopt-inline-style.html View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/filters/adopt-inline-style-expected.html View 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/filters/effect-reference-external-stylesheet.html View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/filters/effect-reference-external-stylesheet-expected.html View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/filters/resources/div-with-filter.html View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/filters/resources/filters.css View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSURIValue.h View 1 chunk +19 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSURIValue.cpp View 1 1 chunk +49 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.cpp View 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueList.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueList.cpp View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 5 chunks +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (25 generated)
fs
3 years, 11 months ago (2017-01-12 20:18:48 UTC) #11
Timothy Loh
On 2017/01/12 20:18:48, fs wrote: Haven't reviewed this yet (will do it shortly), but the ...
3 years, 11 months ago (2017-01-13 00:58:45 UTC) #12
fs
On 2017/01/13 at 00:58:45, timloh wrote: > On 2017/01/12 20:18:48, fs wrote: > > Haven't ...
3 years, 11 months ago (2017-01-13 08:58:37 UTC) #14
Timothy Loh
lgtm On 2017/01/13 08:58:37, fs wrote: > On 2017/01/13 at 00:58:45, timloh wrote: > > ...
3 years, 11 months ago (2017-01-15 23:30:53 UTC) #15
fs
junov, could you PTAL/RS the modules/canvas2d/ change? On 2017/01/15 at 23:30:53, timloh wrote: ... > ...
3 years, 11 months ago (2017-01-16 16:30:34 UTC) #18
Justin Novosad
modules/canvas2d lgtm
3 years, 11 months ago (2017-01-17 16:46:24 UTC) #21
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/2625873010/40001
3 years, 11 months ago (2017-01-17 16:51:23 UTC) #24
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-17 18:36:32 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/2625873010/60001
3 years, 11 months ago (2017-01-17 22:50:56 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 23:17:16 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/db478183363dad5b460070122b99...

Powered by Google App Engine
This is Rietveld 408576698