Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 25f5e8ba2895f8c061081bdc45764d0c88223922
https://github.com/WebKit/WebKit/commit/25f5e8ba2895f8c061081bdc45764d0c88223922
Author: Sam Weinig <[email protected]>
Date: 2026-07-29 (Wed, 29 Jul 2026)
Changed paths:
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/css/CSSProperties.json
M Source/WebCore/css/CSSToLengthConversionData.cpp
M Source/WebCore/css/CSSToLengthConversionData.h
M Source/WebCore/css/parser/SizesAttributeParser.cpp
M Source/WebCore/css/query/MediaQueryEvaluator.cpp
M Source/WebCore/css/values/primitives/CSSPrimitiveNumericRange.h
M Source/WebCore/dom/Document.cpp
M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
M Source/WebCore/html/shadow/TextControlInnerElements.cpp
M Source/WebCore/platform/graphics/FontDescription.cpp
M Source/WebCore/platform/graphics/FontDescription.h
M Source/WebCore/rendering/RenderBlock.cpp
M Source/WebCore/rendering/RenderTheme.cpp
M Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm
M Source/WebCore/rendering/ios/RenderThemeIOS.mm
M Source/WebCore/rendering/mac/RenderThemeMac.mm
M Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
M Source/WebCore/style/StyleBuilderCustom.h
M Source/WebCore/style/StyleBuilderState.cpp
M Source/WebCore/style/StyleExtractorCustom.h
M Source/WebCore/style/StyleResolveForDocument.cpp
M Source/WebCore/style/StyleResolveForFont.cpp
M Source/WebCore/style/computed/StyleComputedStyleBase+GettersInlines.h
M Source/WebCore/style/computed/StyleComputedStyleBase+SettersInlines.h
M Source/WebCore/style/computed/StyleComputedStyleBase.h
M
Source/WebCore/style/computed/StyleComputedStyleProperties+InitialCustomInlines.h
M Source/WebCore/style/computed/data/StyleInheritedRareData.cpp
M Source/WebCore/style/computed/data/StyleInheritedRareData.h
M Source/WebCore/style/values/backgrounds/StyleLineWidth.cpp
M Source/WebCore/style/values/backgrounds/StyleLineWidth.h
M Source/WebCore/style/values/inline/StyleLineHeight.cpp
M Source/WebCore/style/values/non-standard/StyleWebKitTextStrokeWidth.cpp
M Source/WebCore/style/values/primitives/StyleLengthResolution.cpp
M Source/WebCore/style/values/primitives/StyleLengthResolution.h
M
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Conversions.cpp
M
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Conversions.h
M Source/WebCore/style/values/sizing/StyleContainIntrinsicSize.cpp
M Source/WebCore/style/values/text/StyleLetterSpacing.cpp
M Source/WebCore/style/values/text/StyleWordSpacing.cpp
M Source/WebCore/style/values/transforms/StylePerspective.cpp
M Source/WebCore/style/values/transforms/StyleTransformFunction.cpp
M Source/WebCore/svg/SVGLengthContext.cpp
M Source/WebCore/svg/SVGLengthContext.h
Log Message:
-----------
[EvaluationTimeZoom] Remove support for style building time zoom
https://bugs.webkit.org/show_bug.cgi?id=320235
Reviewed by Darin Adler.
Now that all <length> and <length-percentage> values can use evaluation time
zoom,
we no longer have anything that requires style building time zoom. That means
its
a good time to remove the EvaluationTimeZoomEnabled setting, as we can get the
complete
benefit from its removal now.
Along with removing the setting, all the zoom state on
CSSToLengthConversionData can
be remove.
One place that zoom was still being used was in the theme code when using the
version
of emToPx that takes a Style::ComputedStyle. Its very unclear from call sites
that it
is distinct, so a new function, emToPxZoomed was added for those callers, and
now the
normal emToPx is always unzoomed. There is quite a bit of cleanup in the theme
code
around zoom that can be done, but that is not handled in this change.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/CSSToLengthConversionData.cpp:
* Source/WebCore/css/CSSToLengthConversionData.h:
* Source/WebCore/css/parser/SizesAttributeParser.cpp:
* Source/WebCore/css/query/MediaQueryEvaluator.cpp:
* Source/WebCore/css/values/primitives/CSSPrimitiveNumericRange.h:
* Source/WebCore/dom/Document.cpp:
* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:
* Source/WebCore/html/shadow/TextControlInnerElements.cpp:
* Source/WebCore/platform/graphics/FontDescription.cpp:
* Source/WebCore/platform/graphics/FontDescription.h:
* Source/WebCore/rendering/RenderBlock.cpp:
* Source/WebCore/rendering/RenderTheme.cpp:
* Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm:
* Source/WebCore/rendering/ios/RenderThemeIOS.mm:
* Source/WebCore/rendering/mac/RenderThemeMac.mm:
* Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp:
* Source/WebCore/style/StyleBuilderCustom.h:
* Source/WebCore/style/StyleBuilderState.cpp:
* Source/WebCore/style/StyleExtractorCustom.h:
* Source/WebCore/style/StyleResolveForDocument.cpp:
* Source/WebCore/style/StyleResolveForFont.cpp:
* Source/WebCore/style/computed/StyleComputedStyleBase+GettersInlines.h:
* Source/WebCore/style/computed/StyleComputedStyleBase+SettersInlines.h:
* Source/WebCore/style/computed/StyleComputedStyleBase.h:
*
Source/WebCore/style/computed/StyleComputedStyleProperties+InitialCustomInlines.h:
* Source/WebCore/style/computed/data/StyleInheritedRareData.cpp:
* Source/WebCore/style/computed/data/StyleInheritedRareData.h:
* Source/WebCore/style/values/backgrounds/StyleLineWidth.cpp:
* Source/WebCore/style/values/backgrounds/StyleLineWidth.h:
* Source/WebCore/style/values/inline/StyleLineHeight.cpp:
* Source/WebCore/style/values/non-standard/StyleWebKitTextStrokeWidth.cpp:
* Source/WebCore/style/values/primitives/StyleLengthResolution.cpp:
* Source/WebCore/style/values/primitives/StyleLengthResolution.h:
*
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Conversions.cpp:
*
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Conversions.h:
* Source/WebCore/style/values/sizing/StyleContainIntrinsicSize.cpp:
* Source/WebCore/style/values/text/StyleLetterSpacing.cpp:
* Source/WebCore/style/values/text/StyleWordSpacing.cpp:
* Source/WebCore/style/values/transforms/StylePerspective.cpp:
* Source/WebCore/style/values/transforms/StyleTransformFunction.cpp:
* Source/WebCore/svg/SVGLengthContext.cpp:
* Source/WebCore/svg/SVGLengthContext.h:
Canonical link: https://commits.webkit.org/318173@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications