| 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 82f49a8bee81ba3832f30c691ade2763e8aac5f6..47f76b6a928515ff1092fda38ef17b49f81f0cce 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 = getScrollbarOverlayStyle();
|
| - 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();
|
| @@ -1914,7 +1896,7 @@ void FrameView::setBaseBackgroundColor(const Color& backgroundColor)
|
| if (compositedLayerMapping->mainGraphicsLayer())
|
| compositedLayerMapping->mainGraphicsLayer()->setNeedsDisplay();
|
| }
|
| - recalculateScrollbarOverlayStyle();
|
| + recalculateScrollbarOverlayStyle(documentBackgroundColor());
|
| }
|
|
|
| void FrameView::updateBackgroundRecursively(const Color& backgroundColor, bool transparent)
|
|
|