[Qt] Broken controls rendering when transform is applied.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 May 2012 12:18:04 +0000 (12:18 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 May 2012 12:18:04 +0000 (12:18 +0000)
commit514a6441184fec55fa7588d80f3e968d3601c518
tree406ff21d8abd22e96023f0de45db2bfd4056d791
parent03fea7577e2fccb1e97a6811829e6fcd7f0facdc
[Qt] Broken controls rendering when transform is applied.
https://bugs.webkit.org/show_bug.cgi?id=87483

Patch by Zalan Bujtas <zbujtas@gmail.com> on 2012-05-25
Reviewed by Simon Hausmann.

.:

* ManualTests/qt/control_paiting_with_transforms.html: Added.

Source/WebCore:

Use only the scaling transform value to determine the size of
the control to be drawn. When other transforms present such as
rotate or skew, ignore them, unless scaling also involved. In
that case, calculate the scaling value out of the transformation.

* ManualTests/qt/control_paiting_with_transforms.html: Added.

* platform/qt/RenderThemeQtMobile.cpp:
(WebCore::painterScale):
(WebCore):
(WebCore::StylePainterMobile::sizeForPainterScale):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
ManualTests/qt/control_paiting_with_transforms.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/qt/RenderThemeQtMobile.cpp