Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 76fab292a34691b04d4e293875332e76724448b4
https://github.com/WebKit/WebKit/commit/76fab292a34691b04d4e293875332e76724448b4
Author: Sam Weinig <[email protected]>
Date: 2025-12-13 (Sat, 13 Dec 2025)
Changed paths:
M Source/WebCore/css/CSSPrimitiveValueMappings.h
M Source/WebCore/css/CSSProperties.json
M Source/WebCore/css/scripts/process-css-properties.py
M Source/WebCore/css/values/CSSValueAggregates.h
M Source/WebCore/platform/graphics/FontCascade.h
M Source/WebCore/platform/graphics/FontCascadeDescription.cpp
M Source/WebCore/platform/graphics/FontDescription.cpp
M Source/WebCore/platform/graphics/FontPlatformData.h
M Source/WebCore/platform/graphics/cairo/CairoOperations.cpp
M Source/WebCore/platform/graphics/cairo/FontCairo.cpp
M Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp
M Source/WebCore/platform/graphics/coretext/DrawGlyphsRecorder.h
M Source/WebCore/platform/graphics/coretext/FontCascadeCoreText.cpp
M Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp
M Source/WebCore/platform/graphics/skia/FontSkia.cpp
M Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
M Source/WebCore/platform/graphics/win/cairo/FontPlatformDataWinCairo.cpp
M Source/WebCore/platform/text/TextFlags.cpp
M Source/WebCore/platform/text/TextFlags.h
M Source/WebCore/rendering/style/RenderStyle.h
M Source/WebCore/rendering/style/RenderStyleInlines.h
M Source/WebCore/rendering/style/RenderStylePropertiesInitialCustom.h
M Source/WebCore/rendering/style/StyleBackgroundData.cpp
M Source/WebCore/rendering/style/StyleMiscNonInheritedData.cpp
M Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
M Source/WebCore/rendering/style/StyleTransformData.cpp
M Source/WebCore/style/StyleBuilderCustom.h
M Source/WebCore/style/StyleExtractorCustom.h
M Source/WebCore/style/values/backgrounds/StyleBorderImage.cpp
M Source/WebCore/style/values/backgrounds/StyleBorderImage.h
M Source/WebCore/style/values/backgrounds/StyleBorderImageOutset.cpp
M Source/WebCore/style/values/backgrounds/StyleBorderImageOutset.h
M Source/WebCore/style/values/backgrounds/StyleBorderImageRepeat.cpp
M Source/WebCore/style/values/backgrounds/StyleBorderImageRepeat.h
M Source/WebCore/style/values/backgrounds/StyleBorderImageSlice.cpp
M Source/WebCore/style/values/backgrounds/StyleBorderImageSlice.h
M Source/WebCore/style/values/backgrounds/StyleBorderImageWidth.cpp
M Source/WebCore/style/values/backgrounds/StyleBorderImageWidth.h
M Source/WebCore/style/values/masking/StyleMaskBorder.cpp
M Source/WebCore/style/values/masking/StyleMaskBorder.h
M Source/WebCore/style/values/masking/StyleMaskBorderOutset.cpp
M Source/WebCore/style/values/masking/StyleMaskBorderOutset.h
M Source/WebCore/style/values/masking/StyleMaskBorderRepeat.cpp
M Source/WebCore/style/values/masking/StyleMaskBorderRepeat.h
M Source/WebCore/style/values/masking/StyleMaskBorderSlice.cpp
M Source/WebCore/style/values/masking/StyleMaskBorderSlice.h
M Source/WebCore/style/values/masking/StyleMaskBorderWidth.cpp
M Source/WebCore/style/values/masking/StyleMaskBorderWidth.h
M
Source/WebCore/style/values/primitives/StylePrimitiveKeyword+ValueRepresentationNeeded.h
M Source/WebCore/style/values/primitives/StylePrimitiveNumeric.h
M Source/WebCore/style/values/svg/StyleSVGPaint.h
M Source/WebKit/Shared/TextFlags.serialization.in
M Source/WebKit/Shared/WebCoreFont.serialization.in
Log Message:
-----------
[RenderStyleGen] Generate a few custom initial value functions
https://bugs.webkit.org/show_bug.cgi?id=303932
Reviewed by Antti Koivisto.
Removes the need for a few custom RenderStyle initial value functions
through the following changes:
- Rename the enum values for FontSmoothingMode, TextRenderingMode and
FontOpticalSizing
to match the CSS keyword names exactly.
- Add special casing in process-css-properties.py for a few enums where only
the
capitalization doesn't match (LTR instead of Ltr, NonZero instead of
Nonzero)
These could potentially be renamed, but special casing works for the moment.
- Added appropriate constructors for the border-image and mask-border types.
(also did a bit of cleanup with these types, adding some useful type
aliases,
renaming the variables to match the property names, allowing removing some
more override entries in CSSProperties.json).
- Made <integer> values constructible from [foo]_css_number, and <number>
constructible
from [foo]_css_integer.
* Source/WebCore/css/CSSPrimitiveValueMappings.h:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/scripts/process-css-properties.py:
* Source/WebCore/css/values/CSSValueAggregates.h:
* Source/WebCore/platform/graphics/FontCascade.h:
* Source/WebCore/platform/graphics/FontCascadeDescription.cpp:
* Source/WebCore/platform/graphics/FontDescription.cpp:
* Source/WebCore/platform/graphics/FontPlatformData.h:
* Source/WebCore/platform/graphics/cairo/CairoOperations.cpp:
* Source/WebCore/platform/graphics/cairo/FontCairo.cpp:
* Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp:
* Source/WebCore/platform/graphics/coretext/DrawGlyphsRecorder.h:
* Source/WebCore/platform/graphics/coretext/FontCascadeCoreText.cpp:
* Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:
* Source/WebCore/platform/graphics/skia/FontSkia.cpp:
* Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp:
* Source/WebCore/platform/graphics/win/cairo/FontPlatformDataWinCairo.cpp:
* Source/WebCore/platform/text/TextFlags.cpp:
* Source/WebCore/platform/text/TextFlags.h:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
* Source/WebCore/rendering/style/RenderStylePropertiesInitialCustom.h:
* Source/WebCore/rendering/style/StyleBackgroundData.cpp:
* Source/WebCore/rendering/style/StyleMiscNonInheritedData.cpp:
* Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp:
* Source/WebCore/rendering/style/StyleTransformData.cpp:
* Source/WebCore/style/StyleBuilderCustom.h:
* Source/WebCore/style/StyleExtractorCustom.h:
* Source/WebCore/style/values/backgrounds/StyleBorderImage.cpp:
* Source/WebCore/style/values/backgrounds/StyleBorderImage.h:
* Source/WebCore/style/values/backgrounds/StyleBorderImageOutset.cpp:
* Source/WebCore/style/values/backgrounds/StyleBorderImageOutset.h:
* Source/WebCore/style/values/backgrounds/StyleBorderImageRepeat.cpp:
* Source/WebCore/style/values/backgrounds/StyleBorderImageRepeat.h:
* Source/WebCore/style/values/backgrounds/StyleBorderImageSlice.cpp:
* Source/WebCore/style/values/backgrounds/StyleBorderImageSlice.h:
* Source/WebCore/style/values/backgrounds/StyleBorderImageWidth.cpp:
* Source/WebCore/style/values/backgrounds/StyleBorderImageWidth.h:
* Source/WebCore/style/values/masking/StyleMaskBorder.cpp:
* Source/WebCore/style/values/masking/StyleMaskBorder.h:
* Source/WebCore/style/values/masking/StyleMaskBorderOutset.cpp:
* Source/WebCore/style/values/masking/StyleMaskBorderOutset.h:
* Source/WebCore/style/values/masking/StyleMaskBorderRepeat.cpp:
* Source/WebCore/style/values/masking/StyleMaskBorderRepeat.h:
* Source/WebCore/style/values/masking/StyleMaskBorderSlice.cpp:
* Source/WebCore/style/values/masking/StyleMaskBorderSlice.h:
* Source/WebCore/style/values/masking/StyleMaskBorderWidth.cpp:
* Source/WebCore/style/values/masking/StyleMaskBorderWidth.h:
*
Source/WebCore/style/values/primitives/StylePrimitiveKeyword+ValueRepresentationNeeded.h:
* Source/WebCore/style/values/primitives/StylePrimitiveNumeric.h:
* Source/WebCore/style/values/svg/StyleSVGPaint.h:
* Source/WebKit/Shared/TextFlags.serialization.in:
* Source/WebKit/Shared/WebCoreFont.serialization.in:
Canonical link: https://commits.webkit.org/304424@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications