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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2034363002: Update document marker rects lazily in frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 6 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index ebb654a679723787a0db21ad7ebb065c6e507684..77f90ce4842033647ae6d67d8c6186ea5b9f9cae 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -428,7 +428,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
, m_containsPlugins(false)
, m_updateFocusAppearanceSelectionBahavior(SelectionBehaviorOnFocus::Reset)
, m_ignoreDestructiveWriteCount(0)
- , m_markers(new DocumentMarkerController)
+ , m_markers(new DocumentMarkerController(*this))
, m_updateFocusAppearanceTimer(this, &Document::updateFocusAppearanceTimerFired)
, m_cssTarget(nullptr)
, m_loadEventProgress(LoadEventNotRun)
@@ -1899,7 +1899,7 @@ void Document::layoutUpdated()
if (frame() && frame()->page())
frame()->page()->chromeClient().layoutUpdated(frame());
- markers().updateRenderedRectsForMarkers();
+ markers().invalidateRectsForAllMarkers();
// The layout system may perform layouts with pending stylesheets. When
// recording first layout time, we ignore these layouts, since painting is

Powered by Google App Engine
This is Rietveld 408576698