Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c79f2cd5005479db0baab680a483e36829553b3e
https://github.com/WebKit/WebKit/commit/c79f2cd5005479db0baab680a483e36829553b3e
Author: Ahmad Saleem <[email protected]>
Date: 2024-06-19 (Wed, 19 Jun 2024)
Changed paths:
A LayoutTests/fast/forms/input-number-floor-ceiling-stepup-expected.txt
A LayoutTests/fast/forms/input-number-floor-ceiling-stepup.html
M
LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer-expected.txt
M LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.html
M Source/WebCore/platform/Decimal.cpp
Log Message:
-----------
Fix Decimal.floor() + Decimal.ceiling() for many non-integral values
https://bugs.webkit.org/show_bug.cgi?id=249771
rdar://problem/103759613
Reviewed by Yusuke Suzuki.
Merge:
https://github.com/chromium/chromium/commit/f0e0935968490e5d5dabdea13f252be3fc4221c0
Extend the check for an integral value to consider all the digits being
truncated, and
not just the rightmost/most-significant one, when rounding the result towards
positive
and negative infinity for floor() and ceiling(), respectively.
* Source/WebCore/platform/Decimal.cpp:
(WebCore::isMultiplePowersOfTen): Helper function
(WebCore::Decimal::ceil const):
(WebCore::Decimal::floor const):
* LayoutTests/fast/forms/input-number-floor-ceiling-stepup.html: Add Test Case
* LayoutTests/fast/forms/input-number-floor-ceiling-stepup-expected.txt: Add
Test Case Expectation
> Rebaseline (non-render cases):
*
LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer-expected.txt:
Rebaselined
* LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.html: Ditto
Canonical link: https://commits.webkit.org/280189@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes