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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 1738503003: Fix overlay scroll bar color on elements with dark background (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with custom scroll bar style Created 4 years, 10 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/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index 3a8fb5158e1f88eed429fb435c0b12cdfa029957..d7346cc9391379890b7ee7e345c5760289c86ea4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -134,13 +134,13 @@ private:
bool hasHorizontalScrollbar() const { return horizontalScrollbar(); }
bool hasVerticalScrollbar() const { return verticalScrollbar(); }
- void setHasHorizontalScrollbar(bool hasScrollbar);
- void setHasVerticalScrollbar(bool hasScrollbar);
+ void setHasHorizontalScrollbar(bool hasScrollbar, bool useCustomScrollbarStyle);
+ void setHasVerticalScrollbar(bool hasScrollbar, bool useCustomScrollbarStyle);
DECLARE_TRACE();
private:
- PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollbarOrientation);
+ PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollbarOrientation, bool useCustomScrollbarStyle);
void destroyScrollbar(ScrollbarOrientation);
private:
@@ -349,6 +349,7 @@ private:
bool hasScrollableVerticalOverflow() const;
bool visualViewportSuppliesScrollbars() const;
+ bool useCustomScrollbarStyle() const;
bool needsScrollbarReconstruction() const;
void computeScrollDimensions();

Powered by Google App Engine
This is Rietveld 408576698