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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 1511143002: Reland of Fix several corner case issues of scrollbar paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
index 14086dc9317f532ec5a0990aaaec68201984456a..5b9880da1de221909a6418e50b6d87150edbf9a0 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -406,21 +406,11 @@
void ScrollableArea::setScrollbarNeedsPaintInvalidation(Scrollbar* scrollbar)
{
if (scrollbar == horizontalScrollbar()) {
- if (GraphicsLayer* graphicsLayer = layerForHorizontalScrollbar()) {
- graphicsLayer->setNeedsDisplay();
- graphicsLayer->setContentsNeedsDisplay();
- return;
- }
m_horizontalScrollbarNeedsPaintInvalidation = true;
scrollControlWasSetNeedsPaintInvalidation();
return;
}
if (scrollbar == verticalScrollbar()) {
- if (GraphicsLayer* graphicsLayer = layerForVerticalScrollbar()) {
- graphicsLayer->setNeedsDisplay();
- graphicsLayer->setContentsNeedsDisplay();
- return;
- }
m_verticalScrollbarNeedsPaintInvalidation = true;
scrollControlWasSetNeedsPaintInvalidation();
return;
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698