diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2016-09-30 18:02:56 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2016-09-30 18:15:50 +0000 |
commit | dbc4556842aa6541b9c8ce48fe34a36811709e64 (patch) | |
tree | d9d4c15ce8a30110b6f93d0b09d6fd147b0a703e /Source/WebKit/qt/WidgetApi/qwebframe.h | |
parent | 0a5b725090f1db7d68b9293b11782411b7820f01 (diff) |
Fixed checkbox and radiobutton indicators
When layout rect is smaller than indicator its edges may not be
repainted properly. Now we center indicator repsectively to layout rect
and inflate repaint rect to cover edges.
Also, when layout rect is larger than indicator, QStyle code paints it
at the top-left corner of given rect. Now indicator is centered, like
other browser engines do.
Note that when layout has auto size for checkbox or radiobutton, their
sizes are adjust beforehand in RenderThemeQStyle::computeSizeBasedOnStyle().
This code path is require only when layout forces checkbox or radiobutton
to be smaller than optimal indicator size.
Task-number: QTBUG-56302
Change-Id: Idaefffc5775055514a430216ea265af2b3a039b4
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebframe.h')
0 files changed, 0 insertions, 0 deletions