Changeset 67531 in webkit
- Timestamp:
- Sep 14, 2010 8:37:14 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r67530 r67531 1 2010-09-14 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Zoom factor for checkboxes and radios. 6 https://bugs.webkit.org/show_bug.cgi?id=45776 7 8 RenderThemeQt does not consider RenderStyle::effectiveZoom when calculating sizes of 9 checkboxes and radios. 10 11 Even with this change the used QStyle must support different sizes for radios and checkboxes. 12 QWindowStyle and QMacStyle, for example, do not. 13 14 * platform/qt/RenderThemeQt.cpp: 15 (WebCore::RenderThemeQt::computeSizeBasedOnStyle): 16 1 17 2010-09-14 Chris Rogers <crogers@google.com> 2 18 -
trunk/WebCore/platform/qt/RenderThemeQt.cpp
r64965 r67531 381 381 styleOption.state |= QStyle::State_Small; 382 382 int checkBoxWidth = style->pixelMetric(QStyle::PM_IndicatorWidth, &styleOption); 383 checkBoxWidth *= renderStyle->effectiveZoom(); 383 384 size = QSize(checkBoxWidth, checkBoxWidth); 384 385 break; … … 388 389 styleOption.state |= QStyle::State_Small; 389 390 int radioWidth = style->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth, &styleOption); 391 radioWidth *= renderStyle->effectiveZoom(); 390 392 size = QSize(radioWidth, radioWidth); 391 393 break;
Note: See TracChangeset
for help on using the changeset viewer.