[CSS Zoom] Fix zoom factor for inherited letter-spacing#51906
Conversation
|
EWS run on previous version of this PR (hash 654223d) Details |
| auto usedZoom = shouldUseEvaluationTimeZoom(state) ? 1.0f : state.style().usedZoom(); | ||
| return usedZoom * textZoomFactor; | ||
| } | ||
| return state.cssToLengthConversionData().zoom(); |
There was a problem hiding this comment.
the else branch here does not seem to respect the shouldUseEvaluationTimeZoom
There was a problem hiding this comment.
I'm not sure how to produce an observable test that exercises this branch. I've tried playing with a detached doc but I couldn't observe its layout properties.
There was a problem hiding this comment.
looks like the code here is being overly defensive. we can't enter style-resolution without a frame. so, that else branch looks meaningless.
| @@ -1,3 +1,4 @@ | |||
| <!-- webkit-test-runner [ EvaluationTimeZoomEnabled=true ] --> | |||
There was a problem hiding this comment.
no longer needed after the other PRs
654223d to
b438655
Compare
|
EWS run on previous version of this PR (hash b438655) Details
|
|
zoom/letter-spacing.html will be failing until gets merged #52027 |
|
Like with the others, this needs tests for the useSVGZoomRulesForLength cases. |
|
Would also like to see tests to make sure getComputedValue continues to produce the unzoomed value for the various inheritance cases. |
|
I can create a new WPT test for that but we do apply the unzoomed value to RenderStyle and the zoomed value to FontCascade |
b438655 to
0c1def0
Compare
|
EWS run on previous version of this PR (hash 0c1def0) Details |
0c1def0 to
eda344f
Compare
|
EWS run on previous version of this PR (hash eda344f) Details
|
eda344f to
02356eb
Compare
|
EWS run on previous version of this PR (hash 02356eb) Details |
nullhook
left a comment
There was a problem hiding this comment.
computed tests should be housed under ...css/css-viewport/zoom/parsing/ otherwise lgtm.
02356eb to
6104906
Compare
|
EWS run on current version of this PR (hash 6104906) Details |
rdar://162085369 https://bugs.webkit.org/show_bug.cgi?id=300278 Reviewed by Antti Koivisto. We want to store the unzoomed letter-spacing value at RenderStyle and the zoomeed value at FontCascade. Test: imported/w3c/web-platform-tests/css/css-text/parsing/letter-spacing-inherited-computed.html * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/letter-spacing-inherited-computed-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/letter-spacing-inherited-computed.html: Added. * Source/WebCore/style/StyleBuilderState.cpp: (WebCore::Style::BuilderState::updateFontForSizeChange): * Source/WebCore/style/values/text/StyleLetterSpacing.cpp: (WebCore::Style::CSSValueConversion<LetterSpacing>::operator): * Source/WebCore/style/values/text/StyleLetterSpacing.h: Canonical link: https://commits.webkit.org/301269@main
6104906 to
a3cf1b7
Compare
|
Committed 301269@main (a3cf1b7): https://commits.webkit.org/301269@main Reviewed commits have been landed. Closing PR #51906 and removing active labels. |
🛠 ios-apple
a3cf1b7
6104906
🧪 win-tests🧪 ios-wk2-wpt🧪 gtk-wk2