Changeset 67531 in webkit


Ignore:
Timestamp:
Sep 14, 2010 8:37:14 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-09-14 Luiz Agostini <luiz.agostini@openbossa.org>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Zoom factor for checkboxes and radios.
https://bugs.webkit.org/show_bug.cgi?id=45776

RenderThemeQt does not consider RenderStyle::effectiveZoom when calculating sizes of
checkboxes and radios.

Even with this change the used QStyle must support different sizes for radios and checkboxes.
QWindowStyle and QMacStyle, for example, do not.

  • platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r67530 r67531  
     12010-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
    1172010-09-14  Chris Rogers  <crogers@google.com>
    218
  • trunk/WebCore/platform/qt/RenderThemeQt.cpp

    r64965 r67531  
    381381        styleOption.state |= QStyle::State_Small;
    382382        int checkBoxWidth = style->pixelMetric(QStyle::PM_IndicatorWidth, &styleOption);
     383        checkBoxWidth *= renderStyle->effectiveZoom();
    383384        size = QSize(checkBoxWidth, checkBoxWidth);
    384385        break;
     
    388389        styleOption.state |= QStyle::State_Small;
    389390        int radioWidth = style->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth, &styleOption);
     391        radioWidth *= renderStyle->effectiveZoom();
    390392        size = QSize(radioWidth, radioWidth);
    391393        break;
Note: See TracChangeset for help on using the changeset viewer.