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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.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 test after rebase Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « AUTHORS ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void updateAcceleratedCompositingSettings(); 150 void updateAcceleratedCompositingSettings();
151 151
152 void recalcOverflowAfterStyleChange(); 152 void recalcOverflowAfterStyleChange();
153 153
154 bool isEnclosedInCompositingLayer() const; 154 bool isEnclosedInCompositingLayer() const;
155 155
156 void dispose() override; 156 void dispose() override;
157 void detachScrollbars(); 157 void detachScrollbars();
158 void recalculateCustomScrollbarStyle(); 158 void recalculateCustomScrollbarStyle();
159 void invalidateAllCustomScrollbarsOnActiveChanged(); 159 void invalidateAllCustomScrollbarsOnActiveChanged();
160 virtual void recalculateScrollbarOverlayStyle();
161 160
162 void clear(); 161 void clear();
163 162
164 bool isTransparent() const; 163 bool isTransparent() const;
165 void setTransparent(bool isTransparent); 164 void setTransparent(bool isTransparent);
166 165
167 // True if the FrameView is not transparent, and the base background color i s opaque. 166 // True if the FrameView is not transparent, and the base background color i s opaque.
168 bool hasOpaqueBackground() const; 167 bool hasOpaqueBackground() const;
169 168
170 Color baseBackgroundColor() const; 169 Color baseBackgroundColor() const;
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 928 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
930 setIsVisuallyNonEmpty(); 929 setIsVisuallyNonEmpty();
931 } 930 }
932 931
933 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 932 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
934 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 933 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
935 934
936 } // namespace blink 935 } // namespace blink
937 936
938 #endif // FrameView_h 937 #endif // FrameView_h
OLDNEW
« no previous file with comments | « AUTHORS ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698