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

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

Issue 418483004: Fix scrollbar damage accumulation issue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 76d637ddf702cd4b2734182745896b63e426379b..9dda0b78d2daa9febf173c629ae0e45f484c5569 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -2344,17 +2344,10 @@ void FrameView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rec
IntRect dirtyRect = rect;
dirtyRect.moveBy(scrollbar->location());
- if (isInPerformLayout()) {
- if (scrollbar == verticalScrollbar()) {
- m_verticalBarDamage = dirtyRect;
- m_hasVerticalBarDamage = true;
- } else {
- m_horizontalBarDamage = dirtyRect;
- m_hasHorizontalBarDamage = true;
- }
- } else {
+ if (isInPerformLayout())
+ addScrollbarDamage(scrollbar, rect);
+ else
invalidateRect(dirtyRect);
- }
}
void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const

Powered by Google App Engine
This is Rietveld 408576698