Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7832e782324e1abbf200594249833acf672cea5c
https://github.com/WebKit/WebKit/commit/7832e782324e1abbf200594249833acf672cea5c
Author: Sam Weinig <[email protected]>
Date: 2025-06-23 (Mon, 23 Jun 2025)
Changed paths:
M Source/WebCore/Headers.cmake
M Source/WebCore/SaferCPPExpectations/ForwardDeclCheckerExpectations
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/platform/Length.cpp
M Source/WebCore/platform/Length.h
M Source/WebCore/rendering/RenderFlexibleBox.cpp
M Source/WebCore/rendering/RenderScrollbarPart.cpp
M Source/WebCore/rendering/RenderTextInlines.h
M Source/WebCore/rendering/style/StyleFlexibleBoxData.cpp
M Source/WebCore/style/values/box/StyleMargin.cpp
M Source/WebCore/style/values/box/StyleMargin.h
M Source/WebCore/style/values/box/StylePadding.cpp
M Source/WebCore/style/values/box/StylePadding.h
M Source/WebCore/style/values/flexbox/StyleFlexBasis.cpp
M Source/WebCore/style/values/flexbox/StyleFlexBasis.h
M Source/WebCore/style/values/motion/StyleOffsetDistance.cpp
M Source/WebCore/style/values/motion/StyleOffsetDistance.h
M Source/WebCore/style/values/position/StyleInset.cpp
M Source/WebCore/style/values/position/StyleInset.h
A Source/WebCore/style/values/primitives/StyleLengthWrapper.h
M Source/WebCore/style/values/scroll-snap/StyleScrollPadding.cpp
M Source/WebCore/style/values/scroll-snap/StyleScrollPadding.h
M Source/WebCore/style/values/sizing/StyleMaximumSize.cpp
M Source/WebCore/style/values/sizing/StyleMaximumSize.h
M Source/WebCore/style/values/sizing/StyleMinimumSize.cpp
M Source/WebCore/style/values/sizing/StyleMinimumSize.h
M Source/WebCore/style/values/sizing/StylePreferredSize.cpp
M Source/WebCore/style/values/sizing/StylePreferredSize.h
Log Message:
-----------
[Style] Add a shared base class for Style WebCore::Length wrappers to reduce
code duplication
https://bugs.webkit.org/show_bug.cgi?id=294811
Reviewed by Darin Adler.
Adds a shared base class for strong Style types that wrap WebCore::Length
that is customizable via template parameters allowing for a nice reduction
in code duplication.
Eventually, these should all use Style::PrimitiveNumericOrKeyword<>, but
to ensure we have no performance regressions, we are first moving to
"zero-cost" wrappers of the existing type, WebCore::Length, to enforce
the type safety without any memory layout changes.
* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/platform/Length.h:
* Source/WebCore/rendering/RenderFlexibleBox.cpp:
* Source/WebCore/rendering/RenderScrollbarPart.cpp:
* Source/WebCore/rendering/RenderTextInlines.h:
* Source/WebCore/rendering/style/StyleFlexibleBoxData.cpp:
* Source/WebCore/style/values/box/StyleMargin.cpp:
* Source/WebCore/style/values/box/StyleMargin.h:
* Source/WebCore/style/values/box/StylePadding.cpp:
* Source/WebCore/style/values/box/StylePadding.h:
* Source/WebCore/style/values/flexbox/StyleFlexBasis.cpp:
* Source/WebCore/style/values/flexbox/StyleFlexBasis.h:
* Source/WebCore/style/values/motion/StyleOffsetDistance.cpp:
* Source/WebCore/style/values/motion/StyleOffsetDistance.h:
* Source/WebCore/style/values/position/StyleInset.cpp:
* Source/WebCore/style/values/position/StyleInset.h:
* Source/WebCore/style/values/primitives/StyleLengthWrapper.h: Added.
* Source/WebCore/style/values/scroll-snap/StyleScrollPadding.cpp:
* Source/WebCore/style/values/scroll-snap/StyleScrollPadding.h:
* Source/WebCore/style/values/sizing/StyleMaximumSize.cpp:
* Source/WebCore/style/values/sizing/StyleMaximumSize.h:
* Source/WebCore/style/values/sizing/StyleMinimumSize.cpp:
* Source/WebCore/style/values/sizing/StyleMinimumSize.h:
* Source/WebCore/style/values/sizing/StylePreferredSize.cpp:
* Source/WebCore/style/values/sizing/StylePreferredSize.h:
Canonical link: https://commits.webkit.org/296527@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