-
Notifications
You must be signed in to change notification settings - Fork 1.7k
text-spacing: text-spacing-trim: implement trim-all for simple path #35099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text-spacing: text-spacing-trim: implement trim-all for simple path #35099
Conversation
EWS run on previous version of this PR (hash 6817f64) |
Safer C++ Build #1451❌ Found 1 new failure. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
6817f64
to
247e5d4
Compare
EWS run on previous version of this PR (hash 247e5d4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a few nits, but I don't need to review this again. Please do correct the naming of ...IdentifierKey
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we need the allow-end
or space-first
unused items any longer? Are they covered by the space-all
and other grammars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason all of this doesn't live in a FontCoreText.mm
file? Then all of this could be done using Objective-C iterations, etc.
Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp
Outdated
Show resolved
Hide resolved
This patch is rebased on top of #35074. So I'm resolving Brent's review regarding the first patch there. |
247e5d4
to
696738a
Compare
EWS run on previous version of this PR (hash 696738a) |
696738a
to
ddb25f5
Compare
EWS run on current version of this PR (hash ddb25f5) |
https://bugs.webkit.org/show_bug.cgi?id=281371 rdar://137795775 Reviewed by Brent Fulgham. Implementing text-spacing: trim-all for the simple path (WidthIterator). * Source/WTF/wtf/text/CharacterProperties.h: (WTF::isFullwidthMiddleDotPunctuation): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/CSSValueKeywords.in: * Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp: (WebCore::CSSPropertyParserHelpers::consumeTextSpacingTrim): Deleted. * Source/WebCore/css/parser/CSSPropertyParserHelpers.h: * Source/WebCore/platform/graphics/WidthIterator.cpp: (WebCore::WidthIterator::advanceInternal): * Source/WebCore/platform/text/TextSpacing.cpp: (WebCore::TextSpacingTrim::shouldTrimSpacing const): (WebCore::TextSpacing::characterClass): * Source/WebCore/platform/text/TextSpacing.h: (WebCore::operator<<): * Source/WebCore/style/StyleBuilderConverter.h: (WebCore::Style::BuilderConverter::convertTextSpacingTrim): Canonical link: https://commits.webkit.org/285287@main
ddb25f5
to
43585a4
Compare
Committed 285287@main (43585a4): https://commits.webkit.org/285287@main Reviewed commits have been landed. Closing PR #35099 and removing active labels. |
43585a4
ddb25f5
🛠 wpe🧪 wpe-wk2🧪 win-tests🧪 api-wpe🛠 🧪 jsc🧪 api-ios🧪 mac-AS-debug-wk2🧪 gtk-wk2🧪 api-gtk🧪 mac-intel-wk2🛠 mac-safer-cpp