Changeset 92319 in webkit
- Timestamp:
- Aug 3, 2011 3:42:46 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r92316 r92319 1 2011-08-03 Sailesh Agrawal <sail@chromium.org> 2 3 Chromium Mac: Fix position of search tickmarks 4 https://bugs.webkit.org/show_bug.cgi?id=65575 5 6 This change adjusts the position of search tickmarks so that they are correctly centered. 7 8 Also, insetting the tickmark rect by 5 pixels caused tickmarks on the overlay scrollbar to look very small. I changed this to inset by 4 pixels instead. The tickmark is the same width as the overlay scrollbar which looks much better. 9 10 Reviewed by James Robinson. 11 12 * platform/chromium/ScrollbarThemeChromiumMac.mm: 13 (WebCore::ScrollbarThemeChromiumMac::paint): 14 1 15 2011-08-03 Sailesh Agrawal <sail@chromium.org> 2 16 -
trunk/Source/WebCore/platform/chromium/ScrollbarThemeChromiumMac.mm
r92248 r92319 492 492 493 493 IntRect tickmarkTrackRect(IntPoint(), trackRect(scrollbar, false).size()); 494 // Inset by 2 on the left and 3 on the right. 495 tickmarkTrackRect.setX(tickmarkTrackRect.x() + 2); 496 tickmarkTrackRect.setWidth(tickmarkTrackRect.width() - 3); 494 if (tickmarkTrackRect.width() <= 10) { 495 // For narrow scrollbars inset by 1 on the left and 3 on the right. 496 tickmarkTrackRect.setX(tickmarkTrackRect.x() + 1); 497 tickmarkTrackRect.setWidth(tickmarkTrackRect.width() - 4); 498 } else { 499 // For wide scrollbars inset by 2 on the left and 3 on the right. 500 tickmarkTrackRect.setX(tickmarkTrackRect.x() + 2); 501 tickmarkTrackRect.setWidth(tickmarkTrackRect.width() - 5); 502 } 497 503 paintTickmarks(context, scrollbar, tickmarkTrackRect); 498 504 … … 567 573 // Inset by 2 on the left and 3 on the right. 568 574 tickmarkTrackRect.setX(tickmarkTrackRect.x() + 2); 569 tickmarkTrackRect.setWidth(tickmarkTrackRect.width() - 3);575 tickmarkTrackRect.setWidth(tickmarkTrackRect.width() - 5); 570 576 paintTickmarks(drawingContext, scrollbar, tickmarkTrackRect); 571 577
Note: See TracChangeset
for help on using the changeset viewer.