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

Unified 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 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 8d992beee1db5f49898c82e651197c1585ac4744..352b13a4e3b15d763b3ea60bf1552b3d47a55204 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1078,7 +1078,8 @@ void FrameView::layout()
if (frame().page())
frame().page()->chrome().client().layoutUpdated(m_frame.get());
- frame().document()->markers().updateRenderedRectsForMarkers();
+ DocumentMarkerController& markers = frame().document()->markers();
chrishtr 2015/04/20 17:53:25 The change here looks unnecessary.
Xianzhu 2015/04/20 18:13:48 Done.
+ markers.updateRenderedRectsForMarkers();
}
// The plan is to move to compositor-queried paint invalidation, in which case this
@@ -2233,6 +2234,12 @@ void FrameView::scrollTo(const DoublePoint& newPosition)
frame().loader().client()->didChangeScrollOffset();
}
+void FrameView::invalidatePaintForTickmarks() const
+{
+ if (Scrollbar* scrollbar = verticalScrollbar())
+ scrollbar->invalidate();
+}
+
void FrameView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
{
// Add in our offset within the FrameView.

Powered by Google App Engine
This is Rietveld 408576698