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

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

Issue 2454913003: MainFrame scrollbars should work with RFV instead of FV (Closed)
Patch Set: Fix broken chromeos bot Created 4 years, 1 month 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/core/paint/ScrollbarManager.cpp
diff --git a/third_party/WebKit/Source/core/paint/ScrollbarManager.cpp b/third_party/WebKit/Source/core/paint/ScrollbarManager.cpp
index 48c01732a52c63857b77cace90c02d835eed21cc..a26706502f64eec505b8f64305c043f1003a06dd 100644
--- a/third_party/WebKit/Source/core/paint/ScrollbarManager.cpp
+++ b/third_party/WebKit/Source/core/paint/ScrollbarManager.cpp
@@ -17,6 +17,15 @@ DEFINE_TRACE(ScrollbarManager) {
visitor->trace(m_vBar);
}
+void ScrollbarManager::setScroller(ScrollableArea* scroller) {
+ DCHECK(m_scrollableArea != scroller);
+ DCHECK(scroller);
+ DCHECK(scroller->isRootFrameViewport() || scroller->isFrameView() ||
+ scroller->isPaintLayerScrollableArea());
+ dispose();
+ m_scrollableArea = scroller;
+}
+
void ScrollbarManager::dispose() {
m_hBarIsAttached = m_vBarIsAttached = 0;
destroyScrollbar(HorizontalScrollbar);
« no previous file with comments | « third_party/WebKit/Source/core/paint/ScrollbarManager.h ('k') | third_party/WebKit/Source/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698