Changeset 290568 in webkit
- Timestamp:
- Feb 27, 2022 12:31:57 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-001-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-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
r290564 r290568 1 2022-02-27 Antoine Quint <graouts@webkit.org> 2 3 [svg] fill-opacity should be clamped to the [0,1] range 4 https://bugs.webkit.org/show_bug.cgi?id=237252 5 6 Reviewed by Dean Jackson. 7 8 * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt: 9 * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt: 10 1 11 2022-02-27 Tim Nguyen <ntim@apple.com> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt
r287909 r290568 172 172 PASS fill-opacity (type: opacity) has testAccumulation function 173 173 PASS fill-opacity: [0, 1] number 174 FAIL fill-opacity: [0, 1] number (clamped) assert_equals: The value should be 1 at 0ms expected "1" but got "1.1" 174 PASS fill-opacity: [0, 1] number (clamped) 175 175 PASS filter (type: filterList) has testAccumulation function 176 176 FAIL filter: same ordered filter functions assert_equals: The value should be blur(30px) brightness(0) at 0ms expected "blur(30px) brightness(0)" but got "blur(30px) brightness(0.4)" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt
r287909 r290568 172 172 PASS fill-opacity (type: opacity) has testAddition function 173 173 PASS fill-opacity: [0, 1] number 174 FAIL fill-opacity: [0, 1] number (clamped) assert_equals: The value should be 1 at 0ms expected "1" but got "1.1" 174 PASS fill-opacity: [0, 1] number (clamped) 175 175 PASS filter (type: filterList) has testAddition function 176 176 FAIL filter: blur on blur assert_equals: The value should be blur(10px) blur(20px) at 0ms expected "blur(10px) blur(20px)" but got "blur(30px)" -
trunk/Source/WebCore/ChangeLog
r290566 r290568 1 2022-02-27 Antoine Quint <graouts@webkit.org> 2 3 [svg] fill-opacity should be clamped to the [0,1] range 4 https://bugs.webkit.org/show_bug.cgi?id=237252 5 6 Reviewed by Dean Jackson. 7 8 * rendering/style/SVGRenderStyle.h: 9 (WebCore::SVGRenderStyle::setFillOpacity): 10 1 11 2022-02-27 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebCore/rendering/style/SVGRenderStyle.h
r286795 r290568 283 283 inline void SVGRenderStyle::setFillOpacity(float opacity) 284 284 { 285 if (!(m_fillData->opacity == opacity)) 286 m_fillData.access().opacity = opacity; 285 auto clampedOpacity = clampTo<float>(opacity, 0.f, 1.f); 286 if (!(m_fillData->opacity == clampedOpacity)) 287 m_fillData.access().opacity = clampedOpacity; 287 288 } 288 289
Note: See TracChangeset
for help on using the changeset viewer.