Changeset 114211 in webkit
- Timestamp:
- Apr 14, 2012 8:51:21 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r114210 r114211 1 2012-04-14 Emil A Eklund <eae@chromium.org> 2 3 Fix pixelSnapping for CalendarPicker, MediaControl and ScrollbarPart 4 https://bugs.webkit.org/show_bug.cgi?id=83929 5 6 Reviewed by Eric Seidel. 7 8 Update CalendarPickerElement and MediaControlElements to use 9 pixelSnappedSize in preparation for turning on subpixel support. 10 Update RenderScrollbarPart to pixel snap rect before painting to ensure 11 that it is painted on device pixel boundaries. 12 13 No new tests, no change in functionality. 14 15 * html/shadow/CalendarPickerElement.cpp: 16 (WebCore::CalendarPickerElement::openPopup): 17 * html/shadow/MediaControlElements.cpp: 18 (WebCore::RenderMediaVolumeSliderContainer::layout): 19 * rendering/RenderScrollbarPart.cpp: 20 (WebCore::RenderScrollbarPart::paintIntoRect): 21 1 22 2012-04-14 Kent Tamura <tkent@chromium.org> 2 23 -
trunk/Source/WebCore/html/shadow/CalendarPickerElement.cpp
r114210 r114211 104 104 if (!document()->view()) 105 105 return; 106 IntRect elementRectInRootView = document()->view()->contentsToRootView(hostInput()->get Rect());106 IntRect elementRectInRootView = document()->view()->contentsToRootView(hostInput()->getPixelSnappedRect()); 107 107 m_popup = chrome->client()->openPagePopup(this, elementRectInRootView); 108 108 } -
trunk/Source/WebCore/html/shadow/MediaControlElements.cpp
r114179 r114211 343 343 LayoutStateDisabler layoutStateDisabler(view()); 344 344 345 LayoutPoint offset = theme()->volumeSliderOffsetFromMuteButton(buttonBox, size());345 IntPoint offset = theme()->volumeSliderOffsetFromMuteButton(buttonBox, pixelSnappedSize()); 346 346 setX(offset.x() + buttonBox->offsetLeft()); 347 347 setY(offset.y() + buttonBox->offsetTop()); -
trunk/Source/WebCore/rendering/RenderScrollbarPart.cpp
r112301 r114211 173 173 174 174 // Now do the paint. 175 PaintInfo paintInfo(graphicsContext, rect, PaintPhaseBlockBackground, false, 0, 0, 0);175 PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, false, 0, 0, 0); 176 176 paint(paintInfo, paintOffset); 177 177 paintInfo.phase = PaintPhaseChildBlockBackgrounds;
Note: See TracChangeset
for help on using the changeset viewer.