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

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.h

Issue 1528613006: Oilpan: make ScrollableAreaTest.ScrollbarTrackAndThumbRepaint work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: third_party/WebKit/Source/platform/scroll/Scrollbar.h
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.h b/third_party/WebKit/Source/platform/scroll/Scrollbar.h
index a8f404e58930389e9ef27b9f1086a6d24dd573fc..0cf202f7f0ed9c1afe03aeacaca0b12e4176bfa1 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.h
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.h
@@ -48,6 +48,8 @@ class ScrollbarTheme;
class PLATFORM_EXPORT Scrollbar : public Widget, public ScrollbarThemeClient {
public:
static PassRefPtrWillBeRawPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize);
+
+ // Theme object ownership remains with the caller and it must outlive the scrollbar.
static PassRefPtrWillBeRawPtr<Scrollbar> createForTesting(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize, ScrollbarTheme*);
~Scrollbar() override;

Powered by Google App Engine
This is Rietveld 408576698