| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 05c65b4af6f909da3e4182b525a67d124ed1a954..9bce6c9366ea35141621d66abfb939acf5ee148b 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -361,24 +361,6 @@ void FrameView::invalidateAllCustomScrollbarsOnActiveChanged()
|
| recalculateCustomScrollbarStyle();
|
| }
|
|
|
| -void FrameView::recalculateScrollbarOverlayStyle()
|
| -{
|
| - ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle();
|
| - ScrollbarOverlayStyle overlayStyle = ScrollbarOverlayStyleDefault;
|
| -
|
| - Color backgroundColor = documentBackgroundColor();
|
| - // Reduce the background color from RGB to a lightness value
|
| - // and determine which scrollbar style to use based on a lightness
|
| - // heuristic.
|
| - double hue, saturation, lightness;
|
| - backgroundColor.getHSL(hue, saturation, lightness);
|
| - if (lightness <= .5)
|
| - overlayStyle = ScrollbarOverlayStyleLight;
|
| -
|
| - if (oldOverlayStyle != overlayStyle)
|
| - setScrollbarOverlayStyle(overlayStyle);
|
| -}
|
| -
|
| void FrameView::clear()
|
| {
|
| reset();
|
| @@ -1921,7 +1903,7 @@ void FrameView::setBaseBackgroundColor(const Color& backgroundColor)
|
| if (compositedLayerMapping->mainGraphicsLayer())
|
| compositedLayerMapping->mainGraphicsLayer()->setNeedsDisplay();
|
| }
|
| - recalculateScrollbarOverlayStyle();
|
| + recalculateScrollbarOverlayStyle(documentBackgroundColor());
|
| }
|
|
|
| void FrameView::updateBackgroundRecursively(const Color& backgroundColor, bool transparent)
|
|
|