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

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

Issue 1458703010: Mac: Don't repaint scrollbars every frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master2
Patch Set: Rebase and resolve Created 5 years, 1 month 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/ScrollbarThemeMock.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.h b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.h
index b651210215e944fef0b53060f2939ebbc6198f18..f14f4b5cad99c0cdb3d0e4c9c485a8d1747f2d95 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.h
@@ -33,10 +33,13 @@ namespace blink {
// Scrollbar theme used in image snapshots, to eliminate appearance differences between platforms.
class PLATFORM_EXPORT ScrollbarThemeMock : public ScrollbarTheme {
public:
+ static void setShouldRepaintAllPartsOnInvalidation(bool);
+
int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override;
bool usesOverlayScrollbars() const override;
protected:
+ bool shouldRepaintAllPartsOnInvalidation() const override;
bool hasButtons(const ScrollbarThemeClient*) override { return false; }
bool hasThumb(const ScrollbarThemeClient*) override { return true; }

Powered by Google App Engine
This is Rietveld 408576698