RESOLVED FIXED 217661
transform-origin is applied on top of invidivual CSS transform properties on composited layers
https://bugs.webkit.org/show_bug.cgi?id=217661
Summary transform-origin is applied on top of invidivual CSS transform properties on ...
Antoine Quint
Reported 2020-10-13 11:57:05 PDT
transform-origin is applied on top of invidivual CSS transform properties on composited layers
Attachments
Patch (7.65 KB, patch)
2020-10-13 12:02 PDT, Antoine Quint
simon.fraser: review+
Radar WebKit Bug Importer
Comment 1 2020-10-13 11:58:05 PDT
Antoine Quint
Comment 2 2020-10-13 12:02:11 PDT
Antoine Quint
Comment 3 2020-10-13 12:02:16 PDT
Simon Fraser (smfr)
Comment 4 2020-10-13 13:48:54 PDT
Comment on attachment 411234 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=411234&action=review > Source/WebCore/rendering/style/RenderStyle.cpp:1389 > + bool applyTransformOrigin = options.contains(RenderStyle::TransformOperationOption::TransformOrigin) && (m_rareNonInheritedData->rotate || m_rareNonInheritedData->scale || transformOperations.affectedByTransformOrigin()); m_rareNonInheritedData->rotate and m_rareNonInheritedData->scale may still be no-op values.
Antoine Quint
Comment 5 2020-10-14 00:13:03 PDT
(In reply to Simon Fraser (smfr) from comment #4) > Comment on attachment 411234 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=411234&action=review > > > Source/WebCore/rendering/style/RenderStyle.cpp:1389 > > + bool applyTransformOrigin = options.contains(RenderStyle::TransformOperationOption::TransformOrigin) && (m_rareNonInheritedData->rotate || m_rareNonInheritedData->scale || transformOperations.affectedByTransformOrigin()); > > m_rareNonInheritedData->rotate and m_rareNonInheritedData->scale may still > be no-op values. I'll add a affectedByTransformOrigin() call for those as well in the commit.
Antoine Quint
Comment 6 2020-10-14 00:17:52 PDT
Note You need to log in before you can comment on or make changes to this bug.