-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor computeUnzoomedNonCalcLengthDouble to only take a single Fon…
…tCascade https://bugs.webkit.org/show_bug.cgi?id=260650 rdar://114370210 Reviewed by Darin Adler. This is in preparation of the implementation of the new root font units. Since: - the font cascade contains both the font metrics & font description - we'll need the root font metrics for the new root font units - we should only be using either (not both) the current font metrics or the current root font metrics depending on the unit Instead of having 3 separate arguments to computeUnzoomedNonCalcLengthDouble for the metrics, description, root font description, only pass a single font cascade, which is either the root style font cascade or the current style font cascade depending on the unit. * Source/WebCore/css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::computeUnzoomedNonCalcLengthDouble): (WebCore::CSSPrimitiveValue::computeNonCalcLengthDouble): * Source/WebCore/css/CSSPrimitiveValue.h: (WebCore::CSSPrimitiveValue::isRootFontRelativeLength): * Source/WebCore/style/StyleBuilderState.h: * Source/WebCore/style/StyleResolveForFontRaw.cpp: (WebCore::Style::resolveForFontRaw): Canonical link: https://commits.webkit.org/267227@main
- Loading branch information
Showing
4 changed files
with
40 additions
and
33 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