haikuwebkit/Tools/Scripts/webkitpy/style/checkers
Oriol Brufau c2c9a085a5 [css-logical] Implement logical property groups
https://bugs.webkit.org/show_bug.cgi?id=226878

Reviewed by Antti Koivisto.

Source/WebCore:

In order to have proper CSSOM support for logical properties, we will
need to determine whether two properties belong to the same logical
property group but with a different mapping logic.

Before this patch, we only knew the physical properties belonging to the
same logical property group as a given logical property. But given a
physical property, we didn't know if there were logical properties that
could map to it.

Therefore this patch changes CSSProperties.json so that both logical and
physical properties specify their logical property group.

The code for resolving a logical property into its physical equivalent
is now automatically generated.

The CSSOM fix will be done in a follow-up (bug 226461).

This patch introduces no behavior changes.

* css/CSSProperties.json:
* css/CSSProperty.cpp:
* css/makeprop.pl:
(nameToId):
(addProperty):
* platform/RectEdges.h:
(WebCore::RectEdges::before):
(WebCore::RectEdges::after):
(WebCore::RectEdges::start):
(WebCore::RectEdges::end):
(WebCore::RectEdges::before const):
(WebCore::RectEdges::after const):
(WebCore::RectEdges::start const):
(WebCore::RectEdges::end const):
* platform/text/WritingMode.h:
(WebCore::mapLogicalAxisToPhysicalAxis):

Tools:

Add validator for new codegen property "logical-property-group",
replacing the old "direction-aware-property".

* Scripts/webkitpy/style/checkers/jsonchecker.py:
(JSONCSSPropertiesChecker.validate_logical_property_group):
(JSONCSSPropertiesChecker.check_codegen_properties):


Canonical link: https://commits.webkit.org/238911@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-17 13:13:49 +00:00
..
__init__.py
changelog.py Fix Python 3.6+ DeprecationWarnings about unknown escapes 2021-05-21 10:16:11 +00:00
changelog_unittest.py
cmake.py Fix Python 3.6+ DeprecationWarnings about unknown escapes 2021-05-21 10:16:11 +00:00
cmake_unittest.py
common.py
common_unittest.py
contributors.py
cpp.py Remove <wtf/Optional.h> 2021-06-02 06:45:51 +00:00
cpp_unittest.py Remove WTF::Optional synonym for std::optional, using that class template directly instead 2021-05-30 16:11:40 +00:00
featuredefines.py
inclusive_language.py
js.py
js_unittest.py
jsonchecker.py [css-logical] Implement logical property groups 2021-06-17 13:13:49 +00:00
jsonchecker_unittest.py
jstest.py [check-webkit-style] failing in JS checker due to python byte string 2021-06-11 18:37:27 +00:00
jstest_unittest.py [check-webkit-style] failing in JS checker due to python byte string 2021-06-11 18:37:27 +00:00
messagesin.py Fix Python 3.6+ DeprecationWarnings about unknown escapes 2021-05-21 10:16:11 +00:00
messagesin_unittest.py
png.py
png_unittest.py
python.py
python_unittest.py
python_unittest_falsepositives.py
python_unittest_input.py
sdkvariant.py
test_expectations.py
test_expectations_unittest.py
text.py
text_unittest.py
watchlist.py
watchlist_unittest.py
xcodeproj.py
xcodeproj_unittest.py
xml.py
xml_unittest.py