[webkit-changes] [WebKit/WebKit] 1f695b: Allow extraction of transform from inline renderer
Commit Queue
noreply at github.com
Mon Oct 30 01:10:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1f695bbf944909f67885000dbbc9091b8a42e470
https://github.com/WebKit/WebKit/commit/1f695bbf944909f67885000dbbc9091b8a42e470
Author: Joone Hur <joone at webkit.org>
Date: 2023-10-30 (Mon, 30 Oct 2023)
Changed paths:
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-transform-expected.txt
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-transform.html
M Source/WebCore/css/ComputedStyleExtractor.cpp
Log Message:
-----------
Allow extraction of transform from inline renderer
https://bugs.webkit.org/show_bug.cgi?id=263699
rdar://problem/117523629
Reviewed by Antoine Quint.
Previously, inline elements would return a null transform value
when using the getComputedStyle method. This change ensures that
getComputedStyle now provides a valid transform value for inline
elements.
Updated LayoutTests/fast/css/getComputedStyle/getComputedStyle-transform.html and rebaselined expectations:
The test below was removed because the matrix of 50% translation is dependent on
the element size and the result should not differ between div and span elements
{ 'transform' : 'translate(10px, 50%)', 'result' : 'matrix(1, 0, 0, 1, 10, 60)' },
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::computedTransform):
* LayoutTests/fast/css/getComputedStyle/getComputedStyle-transform-expected.txt:
* LayoutTests/fast/css/getComputedStyle/getComputedStyle-transform.html:
Canonical link: https://commits.webkit.org/269920@main
More information about the webkit-changes
mailing list