Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5015f9ffc28bc5615e5087d41401c6af25e9aa3d
https://github.com/WebKit/WebKit/commit/5015f9ffc28bc5615e5087d41401c6af25e9aa3d
Author: Sam Weinig <[email protected]>
Date: 2025-02-04 (Tue, 04 Feb 2025)
Changed paths:
M Source/WebCore/css/CSSProperty.cpp
M Source/WebCore/css/CSSProperty.h
M Source/WebCore/css/process-css-properties.py
Log Message:
-----------
Generate logical property group predicates for CSSProperties.h/cpp
https://bugs.webkit.org/show_bug.cgi?id=287029
Reviewed by Tim Nguyen.
Adds generation of predicate functions that check if a property is part
of a specific logical property group, allowing us to remove two hand
written functions and make the rest of the groups available for future
use as well.
CSSProperty::isSizingProperty remains hand written as it represents
multiple logical property groups.
* Source/WebCore/css/CSSProperty.cpp:
(WebCore::CSSProperty::isInsetProperty): Deleted.
(WebCore::CSSProperty::isMarginProperty): Deleted.
* Source/WebCore/css/CSSProperty.h:
* Source/WebCore/css/process-css-properties.py:
(StyleProperties.__init__):
(StyleProperties):
(GenerateCSSPropertyNames):
Canonical link: https://commits.webkit.org/289825@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