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; |