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

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..14df42375bea22387cd76221c69ce76a2722d24f 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1078,7 +1078,12 @@ void FrameView::layout()
if (frame().page())
frame().page()->chrome().client().layoutUpdated(m_frame.get());
- frame().document()->markers().updateRenderedRectsForMarkers();
+ DocumentMarkerController& markers = frame().document()->markers();
+ markers.updateRenderedRectsForMarkers();
+ if (markers.textMatchMarkersRemovedOrChanged()) {
+ invalidatePaintOfTickmarks();
+ markers.resetTextMatchMarkersRemovedOrChanged();
+ }
}
// The plan is to move to compositor-queried paint invalidation, in which case this
@@ -2233,6 +2238,12 @@ void FrameView::scrollTo(const DoublePoint& newPosition)
frame().loader().client()->didChangeScrollOffset();
}
+void FrameView::invalidatePaintOfTickmarks() 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