-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Ignore spaces when determining the length of text to treat as a first-letter pseudo-element #10685
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
Closed
Ahmad-S792
wants to merge
1
commit into
WebKit:main
from
Ahmad-S792:fix251693-first-letter-dynamic-fix
Closed
Ignore spaces when determining the length of text to treat as a first-letter pseudo-element #10685
Ahmad-S792
wants to merge
1
commit into
WebKit:main
from
Ahmad-S792:fix251693-first-letter-dynamic-fix
Conversation
This file contains hidden or 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
Contributor
EWS run on previous version of this PR (hash 4fbfbf2)
|
4fbfbf2
to
d9b86ba
Compare
EWS run on previous version of this PR (hash d9b86ba)
|
d9b86ba
to
555d866
Compare
EWS run on previous version of this PR (hash 555d866)
|
…-letter pseudo-element https://bugs.webkit.org/show_bug.cgi?id=251693 rdar://problem/105278168 Reviewed by NOBODY (OOPS!). This patch is to align WebKit with Gecko / Firefox and Blink / Chromium. Merge - https://chromium.googlesource.com/chromium/blink/+/278a1f2cc8465a1a57307ad95d02f124bac4bde1 Spaces are are neither in the Ps, Pe, Pi, Pf and Po sections of UNICODE, so they should not be considered when determining the length of the first-letter pseudo-element. It will make WebKit consistent with other engines. * Source/WebCore/rendering/updating/RenderTreeBuilderFirstLetter.cpp: (RenderTreeBuilder::FirstLetter:createRenderers): (1) Rename function 'shouldSkipForFirstLetter' to 'isSpaceForFirstLetter' (2) Introduce variable 'textLength' and use everywhere (3) Introduce separate function to account for 'leading punctuation' (4) Introduce bailout function (5) Remove 'isPunctuationForFirstLetter' condition from end * LayoutTests/TestExpectations: Remove 'ImageOnlyFailure' line for 'first-letter-punctuation-dynamic.html' * LayoutTests/fast/css/first-letter-punctuations.html: Update Testcase * LayoutTests/fast/css/first-letter-punctuations-expected.html: Update Testcase Expectations * LayoutTests/fast/css-generated-content/quote-first-letter.html: Add 'fuzzy' header * LayoutTests/platform/gtk/editing/selection/extend-by-word-002-expected.png: Rebaselined * LayoutTests/platform/gtk/editing/selection/extend-by-word-002-expected.txt: Rebaselined * LayoutTests/platform/ios/editing/selection/extend-by-word-002-expected.txt: Rebaselined * LayoutTests/platform/mac/editing/selection/extend-by-word-002-expected.png: Rebaselined * LayoutTests/platform/mac/editing/selection/extend-by-word-002-expected.txt: Rebaselined
555d866
to
df4b0b9
Compare
EWS run on current version of this PR (hash df4b0b9)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
df4b0b9