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

Unified Diff: Source/core/rendering/RenderLayerScrollableArea.cpp

Issue 418483004: Fix scrollbar damage accumulation issue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 6 years, 5 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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerScrollableArea.cpp
diff --git a/Source/core/rendering/RenderLayerScrollableArea.cpp b/Source/core/rendering/RenderLayerScrollableArea.cpp
index 052e0aa3c0c2db3ff6961f0c9a125a5eec6405b8..ddb82d4bb8005178be439e4618d2a7420a411344 100644
--- a/Source/core/rendering/RenderLayerScrollableArea.cpp
+++ b/Source/core/rendering/RenderLayerScrollableArea.cpp
@@ -205,18 +205,10 @@ void RenderLayerScrollableArea::invalidateScrollbarRect(Scrollbar* scrollbar, co
IntRect intRect = pixelSnappedIntRect(repaintRect);
- if (box().frameView()->isInPerformLayout()) {
- if (scrollbar == m_vBar.get()) {
- m_verticalBarDamage = intRect;
- m_hasVerticalBarDamage = true;
- } else {
- m_horizontalBarDamage = intRect;
- m_hasHorizontalBarDamage = true;
- }
-
- } else {
+ if (box().frameView()->isInPerformLayout())
+ addScrollbarDamage(scrollbar, intRect);
+ else
box().invalidatePaintRectangle(intRect);
- }
}
void RenderLayerScrollableArea::invalidateScrollCornerRect(const IntRect& rect)
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698