Changeset 114764 in webkit
- Timestamp:
- Apr 20, 2012 11:12:47 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r114763 r114764 1 2012-04-20 Emil A Eklund <eae@chromium.org> 2 3 [win] Update windows platform code to use pixel snapped values 4 https://bugs.webkit.org/show_bug.cgi?id=84283 5 6 Reviewed by Eric Seidel. 7 8 No new tests, no change in functionality. 9 10 * accessibility/AccessibilityObject.h: 11 (WebCore::AccessibilityObject::pixelSnappedElementRect): 12 Use pixel snapped values when computing screenRect. 13 14 * platform/win/PopupMenuWin.cpp: 15 (WebCore::PopupMenuWin::calculatePositionAndSize): 16 (WebCore::PopupMenuWin::paint): 17 Cast client padding to ints as they are guaranteed to align with device pixels. 18 1 19 2012-04-20 Dana Jansens <danakj@chromium.org> 2 20 -
trunk/Source/WebCore/accessibility/AccessibilityObject.h
r114031 r114764 507 507 IntRect pixelSnappedBoundingBoxRect() const { return pixelSnappedIntRect(boundingBoxRect()); } 508 508 virtual LayoutRect elementRect() const = 0; 509 IntRect pixelSnappedElementRect() const { return pixelSnappedIntRect(elementRect()); } 509 510 LayoutSize size() const { return elementRect().size(); } 510 511 IntSize pixelSnappedSize() const { return elementRect().pixelSnappedSize(); } -
trunk/Source/WebCore/platform/win/PopupMenuWin.cpp
r112198 r114764 342 342 343 343 // Add padding to align the popup text with the <select> text 344 popupWidth += max (0, client()->clientPaddingRight() - client()->clientInsetRight()) + max(0, client()->clientPaddingLeft() - client()->clientInsetLeft());344 popupWidth += max<int>(0, client()->clientPaddingRight() - client()->clientInsetRight()) + max<int>(0, client()->clientPaddingLeft() - client()->clientInsetLeft()); 345 345 346 346 // Leave room for the border … … 654 654 // Draw the item text 655 655 if (itemStyle.isVisible()) { 656 int textX = max (0, client()->clientPaddingLeft() - client()->clientInsetLeft());656 int textX = max<int>(0, client()->clientPaddingLeft() - client()->clientInsetLeft()); 657 657 if (RenderTheme::defaultTheme()->popupOptionSupportsTextIndent() && itemStyle.textDirection() == LTR) 658 658 textX += minimumValueForLength(itemStyle.textIndent(), itemRect.width()); -
trunk/Source/WebKit/win/AccessibleBase.cpp
r103112 r114764 499 499 return E_FAIL; 500 500 501 IntRect screenRect(childObj->documentFrameView()->contentsToScreen(childObj-> elementRect()));501 IntRect screenRect(childObj->documentFrameView()->contentsToScreen(childObj->pixelSnappedElementRect())); 502 502 *left = screenRect.x(); 503 503 *top = screenRect.y(); -
trunk/Source/WebKit/win/ChangeLog
r114499 r114764 1 2012-04-20 Emil A Eklund <eae@chromium.org> 2 3 [win] Update windows platform code to use pixel snapped values 4 https://bugs.webkit.org/show_bug.cgi?id=84283 5 6 Reviewed by Eric Seidel. 7 8 * AccessibleBase.cpp: 9 (AccessibleBase::accLocation): 10 1 11 2012-04-18 Vivek Galatage <vivekgalatage@gmail.com> 2 12
Note: See TracChangeset
for help on using the changeset viewer.