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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp

Issue 2855523002: Deleted Widget/FrameViewBase (Closed)
Patch Set: Add back FrameView::paint_scrollbars_ to hold PaintLayer scrollbars 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
Index: third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp b/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
index 594eab01eab183376164baca798654ea40686dc1..e956249325cf7368211e52ca9e5dd38e33f79629 100644
--- a/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
@@ -99,12 +99,9 @@ LayoutBox* LayoutScrollbar::StyleSource() const {
: 0;
}
-void LayoutScrollbar::SetParent(FrameViewBase* parent) {
- Scrollbar::SetParent(parent);
- if (!parent) {
- // Destroy all of the scrollbar's LayoutBoxes.
- UpdateScrollbarParts(true);
- }
+void LayoutScrollbar::DisconnectFromScrollableArea() {
+ UpdateScrollbarParts(true);
+ Scrollbar::DisconnectFromScrollableArea();
}
void LayoutScrollbar::SetEnabled(bool e) {

Powered by Google App Engine
This is Rietveld 408576698