|
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
|
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
|
Total messages: 35 (25 generated)
|