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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.h

Issue 1422493003: Change Widget subclasses to use a CullRect instead of an IntRect for painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/platform/scroll/ScrollbarThemeMacNonOverlayAPI.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.h b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.h
index bf9cc292e8dbf4d85068285d7531f011e6c2511b..21c69f43ba0aaccb220dda7ffe0f7611c1cf3e88 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.h
@@ -35,13 +35,15 @@
namespace blink {
+class CullRect;
+
class PLATFORM_EXPORT ScrollbarThemeMacNonOverlayAPI : public ScrollbarThemeMacCommon {
public:
int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override;
bool usesOverlayScrollbars() const override { return false; }
ScrollbarButtonsPlacement buttonsPlacement() const override;
- bool paint(const ScrollbarThemeClient*, GraphicsContext*, const IntRect& damageRect) override;
+ bool paint(const ScrollbarThemeClient*, GraphicsContext*, const CullRect&) override;
protected:
IntRect trackRect(const ScrollbarThemeClient*, bool painting = false) override;

Powered by Google App Engine
This is Rietveld 408576698