Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 00130d87533e7d767650a8fdd72dcd0b1a443090
https://github.com/WebKit/WebKit/commit/00130d87533e7d767650a8fdd72dcd0b1a443090
Author: Sam Weinig <[email protected]>
Date: 2025-07-23 (Wed, 23 Jul 2025)
Changed paths:
M Source/WebCore/CMakeLists.txt
M Source/WebCore/Headers.cmake
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/css/CSSProperties.json
M Source/WebCore/page/EventHandler.cpp
M Source/WebCore/page/InteractionRegion.cpp
M Source/WebCore/page/Quirks.cpp
M Source/WebCore/page/ios/FrameIOS.mm
M Source/WebCore/rendering/RenderElement.cpp
R Source/WebCore/rendering/style/CursorData.h
R Source/WebCore/rendering/style/CursorList.h
M Source/WebCore/rendering/style/RenderStyle.cpp
M Source/WebCore/rendering/style/RenderStyle.h
M Source/WebCore/rendering/style/RenderStyleInlines.h
M Source/WebCore/rendering/style/RenderStyleSetters.h
M Source/WebCore/rendering/style/StyleRareInheritedData.cpp
M Source/WebCore/rendering/style/StyleRareInheritedData.h
M Source/WebCore/style/StyleAdjuster.cpp
M Source/WebCore/style/StyleBuilderCustom.h
M Source/WebCore/style/StyleExtractorConverter.h
M Source/WebCore/style/StyleExtractorCustom.h
M Source/WebCore/style/StyleInterpolationWrappers.h
M Source/WebCore/style/StylePendingResources.cpp
A Source/WebCore/style/values/ui/StyleCursor.cpp
A Source/WebCore/style/values/ui/StyleCursor.h
M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
Log Message:
-----------
[Style] Convert cursor property to use strong style types
https://bugs.webkit.org/show_bug.cgi?id=296249
Reviewed by Darin Adler.
Adds a strong style type representation for the `cursor` property, but,
unlike other properties so far, the representation is not directly used
as the storage. `cursor` is instead kept broken apart, with its `predefined`
part stored in `RenderStyle::InheritedFlags` (as it has been) and the
`images` list stored in `StyleRareInheritedData` (as it has been). What's
new is that `RenderStyle` now bundles them together for getting/setting,
with `RenderStyle::setCursor` taking the bundle and splitting it apart
for storage, and `RenderStyle::cursor()` re-bundling up the pieces. This
allows the generated code to treat this property normally.
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/page/EventHandler.cpp:
* Source/WebCore/page/InteractionRegion.cpp:
* Source/WebCore/page/Quirks.cpp:
* Source/WebCore/page/ios/FrameIOS.mm:
* Source/WebCore/rendering/RenderElement.cpp:
* Source/WebCore/rendering/style/CursorData.h: Removed.
* Source/WebCore/rendering/style/CursorList.h: Removed.
* Source/WebCore/rendering/style/RenderStyle.cpp:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
* Source/WebCore/rendering/style/RenderStyleSetters.h:
* Source/WebCore/rendering/style/StyleRareInheritedData.cpp:
* Source/WebCore/rendering/style/StyleRareInheritedData.h:
* Source/WebCore/style/StyleAdjuster.cpp:
* Source/WebCore/style/StyleBuilderCustom.h:
* Source/WebCore/style/StyleExtractorConverter.h:
* Source/WebCore/style/StyleExtractorCustom.h:
* Source/WebCore/style/StylePendingResources.cpp:
* Source/WebCore/style/values/ui/StyleCursor.cpp: Added.
* Source/WebCore/style/values/ui/StyleCursor.h: Added.
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
Canonical link: https://commits.webkit.org/297813@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