Changeset 249040 in webkit
- Timestamp:
- Aug 22, 2019, 7:06:42 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/svg/clip-path/clip-path-invalid-reference-001-expected.svg (added)
-
LayoutTests/svg/clip-path/clip-path-invalid-reference-001.svg (added)
-
LayoutTests/svg/clip-path/clip-path-invalid-reference-002-expected.svg (added)
-
LayoutTests/svg/clip-path/clip-path-invalid-reference-002.svg (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/StyleBuilderConverter.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249031 r249040 1 2019-08-22 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [SVG] -webkit-clip-path treats url(abc#xyz) as url(#xyz) because it checks only URL fragment part 4 https://bugs.webkit.org/show_bug.cgi?id=201030 5 6 Reviewed by Ryosuke Niwa. 7 8 * svg/clip-path/clip-path-invalid-reference-001-expected.svg: Added. 9 * svg/clip-path/clip-path-invalid-reference-001.svg: Added. 10 * svg/clip-path/clip-path-invalid-reference-002-expected.svg: Added. 11 * svg/clip-path/clip-path-invalid-reference-002.svg: Added. 12 1 13 2019-08-22 Daniel Bates <dabates@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r249036 r249040 1 2019-08-22 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [SVG] -webkit-clip-path treats url(abc#xyz) as url(#xyz) because it checks only URL fragment part 4 https://bugs.webkit.org/show_bug.cgi?id=201030 5 6 Reviewed by Ryosuke Niwa. 7 8 Tests: svg/clip-path/clip-path-invalid-reference-001-expected.svg 9 svg/clip-path/clip-path-invalid-reference-001.svg 10 svg/clip-path/clip-path-invalid-reference-002-expected.svg 11 svg/clip-path/clip-path-invalid-reference-002.svg 12 13 * css/StyleBuilderConverter.h: 14 (WebCore::StyleBuilderConverter::convertClipPath): Use 15 SVGURIReference::fragmentIdentifierFromIRIString to get fragment 16 identifier from -webkit-clip-path. 17 1 18 2019-08-22 Andy Estes <aestes@apple.com> 2 19 -
trunk/Source/WebCore/css/StyleBuilderConverter.h
r248846 r249040 591 591 if (primitiveValue.primitiveType() == CSSPrimitiveValue::CSS_URI) { 592 592 String cssURLValue = primitiveValue.stringValue(); 593 URL url = styleResolver.document().completeURL(cssURLValue);593 String fragment = SVGURIReference::fragmentIdentifierFromIRIString(cssURLValue, styleResolver.document()); 594 594 // FIXME: It doesn't work with external SVG references (see https://bugs.webkit.org/show_bug.cgi?id=126133) 595 return ReferenceClipPathOperation::create(cssURLValue, url.fragmentIdentifier());595 return ReferenceClipPathOperation::create(cssURLValue, fragment); 596 596 } 597 597 ASSERT(primitiveValue.valueID() == CSSValueNone);
Note:
See TracChangeset
for help on using the changeset viewer.