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

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 1053123007: Invalidate paint of tickmarks on document change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/web/TextFinder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2221 m_scrollPosition = newPosition; 2221 m_scrollPosition = newPosition;
2222 2222
2223 if (!scrollbarsSuppressed()) 2223 if (!scrollbarsSuppressed())
2224 m_pendingScrollDelta += scrollDelta; 2224 m_pendingScrollDelta += scrollDelta;
2225 2225
2226 updateLayersAndCompositingAfterScrollIfNeeded(); 2226 updateLayersAndCompositingAfterScrollIfNeeded();
2227 scrollPositionChanged(); 2227 scrollPositionChanged();
2228 frame().loader().client()->didChangeScrollOffset(); 2228 frame().loader().client()->didChangeScrollOffset();
2229 } 2229 }
2230 2230
2231 void FrameView::invalidatePaintForTickmarks() const
2232 {
2233 if (Scrollbar* scrollbar = verticalScrollbar())
2234 scrollbar->invalidate();
2235 }
2236
2231 void FrameView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rec t) 2237 void FrameView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rec t)
2232 { 2238 {
2233 // Add in our offset within the FrameView. 2239 // Add in our offset within the FrameView.
2234 IntRect dirtyRect = rect; 2240 IntRect dirtyRect = rect;
2235 dirtyRect.moveBy(scrollbar->location()); 2241 dirtyRect.moveBy(scrollbar->location());
2236 2242
2237 layoutView()->invalidateDisplayItemClient(*scrollbar); 2243 layoutView()->invalidateDisplayItemClient(*scrollbar);
2238 2244
2239 if (isInPerformLayout()) 2245 if (isInPerformLayout())
2240 addScrollbarDamage(scrollbar, rect); 2246 addScrollbarDamage(scrollbar, rect);
(...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after
4063 { 4069 {
4064 Settings* settings = frame().settings(); 4070 Settings* settings = frame().settings();
4065 if (!settings || !settings->rootLayerScrolls()) 4071 if (!settings || !settings->rootLayerScrolls())
4066 return this; 4072 return this;
4067 4073
4068 LayoutView* layoutView = this->layoutView(); 4074 LayoutView* layoutView = this->layoutView();
4069 return layoutView ? layoutView->scrollableArea() : nullptr; 4075 return layoutView ? layoutView->scrollableArea() : nullptr;
4070 } 4076 }
4071 4077
4072 } // namespace blink 4078 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/web/TextFinder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698