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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

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/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 d6cf5262ca000d515f6127e503003f14f40d8aa9..4fa3a37d883248119a6202fce3a1ee4b29b922ab 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2075,8 +2075,10 @@ void FrameView::scrollTo(const DoublePoint& newPosition)
void FrameView::invalidatePaintForTickmarks()
{
- if (Scrollbar* scrollbar = verticalScrollbar())
+ if (Scrollbar* scrollbar = verticalScrollbar()) {
+ scrollbar->setTrackNeedsRepaint(true);
setScrollbarNeedsPaintInvalidation(scrollbar);
+ }
}
void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | third_party/WebKit/Source/platform/exported/WebScrollbarThemeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698