Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b999bb0d07e1b0013a76275b5851351af52a2b91
https://github.com/WebKit/WebKit/commit/b999bb0d07e1b0013a76275b5851351af52a2b91
Author: Vitor Roriz <[email protected]>
Date: 2025-10-23 (Thu, 23 Oct 2025)
Changed paths:
M LayoutTests/fast/css/line-height-basics.html
M Source/WebCore/css/CSSToLengthConversionData.cpp
M Source/WebCore/css/CSSToLengthConversionData.h
M Source/WebCore/css/calc/CSSCalcTree+Simplification.cpp
Log Message:
-----------
[CSS Zoom] Fix calc(em) for unzoomed properties
https://bugs.webkit.org/show_bug.cgi?id=301351
rdar://163267333
Reviewed by Sammy Gill.
When canonicalizing to "px" we currently try to compensate
the fact that the `computeNonCalcLengthDouble` would use the
compute font size (that has zoom applied to it) by dividing
by the zoom factor here. This should no longer be necessary
for unzoomed properties (when the evaluation flag is on) as
we now resolve it against the unzoomed computed font size.
Once all properties are converted to be unzoomed and the flag
is removed we can remove the counter branch.
* LayoutTests/fast/css/line-height-basics.html:
* Source/WebCore/css/CSSToLengthConversionData.cpp:
(WebCore::CSSToLengthConversionData::evaluationTimeZoomEnabled const):
* Source/WebCore/css/CSSToLengthConversionData.h:
* Source/WebCore/css/calc/CSSCalcTree+Simplification.cpp:
(WebCore::CSSCalc::canonicalize):
Canonical link: https://commits.webkit.org/302041@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications