![]() 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 |
||
---|---|---|
.. | ||
__init__.py | ||
changelog.py | ||
changelog_unittest.py | ||
cmake.py | ||
cmake_unittest.py | ||
common.py | ||
common_unittest.py | ||
contributors.py | ||
cpp.py | ||
cpp_unittest.py | ||
featuredefines.py | ||
inclusive_language.py | ||
js.py | ||
js_unittest.py | ||
jsonchecker.py | ||
jsonchecker_unittest.py | ||
jstest.py | ||
jstest_unittest.py | ||
messagesin.py | ||
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 |