Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Resolve logical viewport units properly in font-size
https://bugs.webkit.org/show_bug.cgi?id=238982 Reviewed by Antti Koivisto. Logical viewport units depend on the current element's writing mode, and they can be used in font-size, so that means we need to: - Make sure writing-mode is always applied first and introduce a new top-priority property type - Stop passing in unconditionally the parentStyle into CSSToLengthConversionData, since viewport units use the current element's writing mode, not the parent element's * LayoutTests/TestExpectations: * Source/WebCore/css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::computeNonCalcLengthDouble): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/CSSToLengthConversionData.h: (WebCore::CSSToLengthConversionData::fontCascadeForFontUnits const): (WebCore::CSSToLengthConversionData::computedLineHeightForFontUnits const): (WebCore::CSSToLengthConversionData::copyForFontSize const): (WebCore::CSSToLengthConversionData::copyForFontSizeWithParentStyle const): Deleted. * Source/WebCore/css/makeprop.pl: (addProperty): (sortByDescendingPriorityAndName): * Source/WebCore/style/StyleBuilder.cpp: (WebCore::Style::Builder::applyAllProperties): (WebCore::Style::Builder::applyTopPriorityProperties): (WebCore::Style::Builder::applyHighPriorityProperties): * Source/WebCore/style/StyleBuilderCustom.h: (WebCore::Style::BuilderCustom::applyValueFontSize): * Source/WebCore/style/StyleResolver.cpp: (WebCore::Style::Resolver::applyMatchedProperties): * Tools/Scripts/webkitpy/style/checkers/jsonchecker.py: Canonical link: https://commits.webkit.org/253087@main
- Loading branch information
Showing
11 changed files
with
75 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters