Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2377453004: Scrollbar width is set using thickness to compute correct rect size (Closed)
Patch Set: Resolved merge conflicts for update bots and Updated Layout Test HTML Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/hidpi/scrollbar-appearance-increase-device-scale-factor-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index c7b948180fb715adbd86b7663e94cd60effbd650..1eff0d03b5f69ad73abafef6cab1dea943abfccb 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -949,7 +949,7 @@ IntRect PaintLayerScrollableArea::rectForHorizontalScrollbar(const IntRect& bord
return IntRect(horizontalScrollbarStart(borderBoxRect.x()),
borderBoxRect.maxY() - box().borderBottom() - horizontalScrollbar()->height(),
borderBoxRect.width() - (box().borderLeft() + box().borderRight()) - scrollCorner.width(),
- horizontalScrollbar()->height());
+ horizontalScrollbar()->scrollbarThickness());
}
IntRect PaintLayerScrollableArea::rectForVerticalScrollbar(const IntRect& borderBoxRect) const
@@ -961,7 +961,7 @@ IntRect PaintLayerScrollableArea::rectForVerticalScrollbar(const IntRect& border
return IntRect(verticalScrollbarStart(borderBoxRect.x(), borderBoxRect.maxX()),
borderBoxRect.y() + box().borderTop(),
- verticalScrollbar()->width(),
+ verticalScrollbar()->scrollbarThickness(),
borderBoxRect.height() - (box().borderTop() + box().borderBottom()) - scrollCorner.height());
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/hidpi/scrollbar-appearance-increase-device-scale-factor-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698