Changeset 113484 in webkit
- Timestamp:
- Apr 6, 2012 12:54:28 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r113481 r113484 1 2012-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 1 18 2012-04-06 Kenneth Russell <kbr@google.com> 2 19 -
trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp
r110907 r113484 436 436 { 437 437 // Compute an offset between the part renderer and the input renderer. 438 IntSize offsetFromInputRenderer = - (partRenderer->offsetFromAncestorContainer(inputRenderer));438 IntSize offsetFromInputRenderer = -roundedIntSize(partRenderer->offsetFromAncestorContainer(inputRenderer)); 439 439 // Move the rect into partRenderer's coords. 440 440 partRect.move(offsetFromInputRenderer); … … 455 455 return false; 456 456 RenderBox* inputRenderBox = toRenderBox(input->renderer()); 457 IntRect inputContentBox = inputRenderBox->contentBoxRect();457 IntRect inputContentBox = pixelSnappedIntRect(inputRenderBox->contentBoxRect()); 458 458 459 459 // Make sure the scaled button stays square and will fit in its parent's box. -
trunk/Source/WebKit/qt/ChangeLog
r113361 r113484 1 2012-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 1 14 2012-04-05 Patrick Gansterer <paroga@webkit.org> 2 15 -
trunk/Source/WebKit/qt/WebCoreSupport/RenderThemeQStyle.cpp
r109542 r113484 500 500 501 501 QStyleOptionProgressBarV2 option; 502 option.rect.setSize(renderProgress-> size());502 option.rect.setSize(renderProgress->pixelSnappedSize()); 503 503 // FIXME: Until http://bugreports.qt.nokia.com/browse/QTBUG-9171 is fixed, 504 504 // we simulate one square animating across the progress bar.
Note: See TracChangeset
for help on using the changeset viewer.