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 |