| 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) {
|
|
|