Changeset 113484 in webkit


Ignore:
Timestamp:
Apr 6, 2012 12:54:28 PM (12 years ago)
Author:
leviw@chromium.org
Message:

Correct LayoutUnit usgae in RenderThemeQt and RenderThemeQStyle
https://bugs.webkit.org/show_bug.cgi?id=83376

Reviewed by Eric Seidel.

Source/WebCore:

Correcting LayoutUnit usage in QT RenderTheme code.

No new tests. No change in behavior.

  • platform/qt/RenderThemeQt.cpp:

(WebCore::RenderThemeQt::convertToPaintingRect): Rounding the ancestor offset before
applying it to the pixel snapped partRect.
(WebCore::RenderThemeQt::paintSearchFieldCancelButton): Also rounding the ancestor
offset, and also pixel snapping the content rect before painting.

Source/WebKit/qt:

Calculating the progress animation using the pixel-snapped RenderProgress size instead
of the internal sub-pixel version.

  • WebCoreSupport/RenderThemeQStyle.cpp:

(WebCore::RenderThemeQStyle::animationDurationForProgressBar):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r113481 r113484  
     12012-04-06  Levi Weintraub  <leviw@chromium.org>
     2
     3        Correct LayoutUnit usgae in RenderThemeQt and RenderThemeQStyle
     4        https://bugs.webkit.org/show_bug.cgi?id=83376
     5
     6        Reviewed by Eric Seidel.
     7
     8        Correcting LayoutUnit usage in QT RenderTheme code.
     9
     10        No new tests. No change in behavior.
     11
     12        * platform/qt/RenderThemeQt.cpp:
     13        (WebCore::RenderThemeQt::convertToPaintingRect): Rounding the ancestor offset before
     14        applying it to the pixel snapped partRect.
     15        (WebCore::RenderThemeQt::paintSearchFieldCancelButton): Also rounding the ancestor
     16        offset, and also pixel snapping the content rect before painting.
     17
    1182012-04-06  Kenneth Russell  <kbr@google.com>
    219
  • trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp

    r110907 r113484  
    436436{
    437437    // Compute an offset between the part renderer and the input renderer.
    438     IntSize offsetFromInputRenderer = -(partRenderer->offsetFromAncestorContainer(inputRenderer));
     438    IntSize offsetFromInputRenderer = -roundedIntSize(partRenderer->offsetFromAncestorContainer(inputRenderer));
    439439    // Move the rect into partRenderer's coords.
    440440    partRect.move(offsetFromInputRenderer);
     
    455455        return false;
    456456    RenderBox* inputRenderBox = toRenderBox(input->renderer());
    457     IntRect inputContentBox = inputRenderBox->contentBoxRect();
     457    IntRect inputContentBox = pixelSnappedIntRect(inputRenderBox->contentBoxRect());
    458458
    459459    // Make sure the scaled button stays square and will fit in its parent's box.
  • trunk/Source/WebKit/qt/ChangeLog

    r113361 r113484  
     12012-04-06  Levi Weintraub  <leviw@chromium.org>
     2
     3        Correct LayoutUnit usgae in RenderThemeQt and RenderThemeQStyle
     4        https://bugs.webkit.org/show_bug.cgi?id=83376
     5
     6        Reviewed by Eric Seidel.
     7
     8        Calculating the progress animation using the pixel-snapped RenderProgress size instead
     9        of the internal sub-pixel version.
     10
     11        * WebCoreSupport/RenderThemeQStyle.cpp:
     12        (WebCore::RenderThemeQStyle::animationDurationForProgressBar):
     13
    1142012-04-05  Patrick Gansterer  <paroga@webkit.org>
    215
  • trunk/Source/WebKit/qt/WebCoreSupport/RenderThemeQStyle.cpp

    r109542 r113484  
    500500
    501501    QStyleOptionProgressBarV2 option;
    502     option.rect.setSize(renderProgress->size());
     502    option.rect.setSize(renderProgress->pixelSnappedSize());
    503503    // FIXME: Until http://bugreports.qt.nokia.com/browse/QTBUG-9171 is fixed,
    504504    // we simulate one square animating across the progress bar.
Note: See TracChangeset for help on using the changeset viewer.