Changeset 290570 in webkit
- Timestamp:
- Feb 27, 2022 1:19:37 PM (5 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/style/SVGRenderStyle.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r290569 r290570 1 2022-02-27 Antoine Quint <graouts@webkit.org> 2 3 [svg] stroke-opacity should be clamped to the [0,1] range 4 https://bugs.webkit.org/show_bug.cgi?id=237254 5 6 Reviewed by Dean Jackson. 7 8 * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt: 9 * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt: 10 1 11 2022-02-27 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt
r290569 r290570 133 133 PASS stroke-opacity (type: opacity) has testAccumulation function 134 134 PASS stroke-opacity: [0, 1] number 135 FAIL stroke-opacity: [0, 1] number (clamped) assert_equals: The value should be 1 at 0ms expected "1" but got "1.1" 135 PASS stroke-opacity: [0, 1] number (clamped) 136 136 PASS table-layout (type: discrete) has testAccumulation function 137 137 PASS table-layout: "fixed" onto "auto" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt
r290569 r290570 133 133 PASS stroke-opacity (type: opacity) has testAddition function 134 134 PASS stroke-opacity: [0, 1] number 135 FAIL stroke-opacity: [0, 1] number (clamped) assert_equals: The value should be 1 at 0ms expected "1" but got "1.1" 135 PASS stroke-opacity: [0, 1] number (clamped) 136 136 PASS table-layout (type: discrete) has testAddition function 137 137 PASS table-layout: "fixed" onto "auto" -
trunk/Source/WebCore/ChangeLog
r290569 r290570 1 2022-02-27 Antoine Quint <graouts@webkit.org> 2 3 [svg] stroke-opacity should be clamped to the [0,1] range 4 https://bugs.webkit.org/show_bug.cgi?id=237254 5 6 Reviewed by Dean Jackson. 7 8 * rendering/style/SVGRenderStyle.h: 9 (WebCore::SVGRenderStyle::setStrokeOpacity): 10 1 11 2022-02-27 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/Source/WebCore/rendering/style/SVGRenderStyle.h
r290569 r290570 310 310 inline void SVGRenderStyle::setStrokeOpacity(float opacity) 311 311 { 312 if (!(m_strokeData->opacity == opacity)) 313 m_strokeData.access().opacity = opacity; 312 auto clampedOpacity = clampTo<float>(opacity, 0.f, 1.f); 313 if (!(m_strokeData->opacity == clampedOpacity)) 314 m_strokeData.access().opacity = clampedOpacity; 314 315 } 315 316
Note: See TracChangeset
for help on using the changeset viewer.