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

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

Issue 1406133005: Calculate paint invalidation rect for scrollbars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/RootFrameViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
index 8c5e302ec8714ccf913bfcd215ec51719d8cf264..6bc56742629f03c8eac56ce52cf05704c2ab6741 100644
--- a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
@@ -210,14 +210,9 @@ bool RootFrameViewport::shouldPlaceVerticalScrollbarOnLeft() const
return layoutViewport().shouldPlaceVerticalScrollbarOnLeft();
}
-void RootFrameViewport::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
+void RootFrameViewport::scrollControlWasSetNeedsPaintInvalidation()
{
- layoutViewport().invalidateScrollbarRect(scrollbar, rect);
-}
-
-void RootFrameViewport::invalidateScrollCornerRect(const IntRect& rect)
-{
- layoutViewport().invalidateScrollCornerRect(rect);
+ layoutViewport().scrollControlWasSetNeedsPaintInvalidation();
}
GraphicsLayer* RootFrameViewport::layerForContainer() const

Powered by Google App Engine
This is Rietveld 408576698