Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a4e11ec0893d1e55ed22826a5bfe0491e29dc2ce
https://github.com/WebKit/WebKit/commit/a4e11ec0893d1e55ed22826a5bfe0491e29dc2ce
Author: Vitor Roriz <[email protected]>
Date: 2026-03-20 (Fri, 20 Mar 2026)
Changed paths:
M Source/WebCore/rendering/style/RenderStyle+GettersInlines.h
M Source/WebCore/rendering/style/RenderStyle.h
M Source/WebCore/style/computed/StyleComputedStyle.cpp
M Source/WebCore/style/computed/StyleComputedStyle.h
M Source/WebCore/style/values/inline/StyleLineHeight.cpp
M Source/WebCore/style/values/inline/StyleLineHeight.h
M Source/WebCore/style/values/primitives/StyleLengthResolution.cpp
Log Message:
-----------
StyleLineHeight: Add Evaluation<LineHeight, float> specialization
https://bugs.webkit.org/show_bug.cgi?id=310318
rdar://172959114
Reviewed by Sammy Gill.
Add an Evaluation<LineHeight, float> specialization so that LineHeight can be
evaluated with an explicit ZoomFactor via the standard evaluate<> template,
matching the pattern used by other properties. Therefore, computeLineHeight
is no longer needed and computedLineHeight delegates to evaluate directly.
* Source/WebCore/rendering/style/RenderStyle+GettersInlines.h:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/style/computed/StyleComputedStyle.cpp:
(WebCore::Style::ComputedStyle::computedLineHeight):
* Source/WebCore/style/computed/StyleComputedStyle.h:
* Source/WebCore/style/values/inline/StyleLineHeight.cpp:
(WebCore::Style::Evaluation<LineHeight, float>::operator()):
* Source/WebCore/style/values/inline/StyleLineHeight.h:
* Source/WebCore/style/values/primitives/StyleLengthResolution.cpp:
(WebCore::Style::computeNonCalcLengthDouble):
Canonical link: https://commits.webkit.org/309625@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications