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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp

Issue 2824263002: Replace getBaseLayerSize() with the size passed to DrawingRecorder. (Closed)
Patch Set: scrollbarbaselayer: . Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
index a8c226868f1d8ffb2bd2282ee5f13bfea8c86840..b978eecd5211803858547d78baee97e6b730dabc 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
@@ -209,7 +209,7 @@ void ScrollbarThemeOverlay::PaintThumb(GraphicsContext& context,
// Horizontally flip the canvas if it is left vertical scrollbar.
if (scrollbar.IsLeftSideVerticalScrollbar()) {
canvas->save();
- canvas->translate(canvas->getBaseLayerSize().width(), 0);
+ canvas->translate(rect.Width(), 0);
canvas->scale(-1, 1);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698