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

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

Issue 2617103002: Use a new Supplement constructor for Supplement<Document> (Part 1) (Closed)
Patch Set: temp Created 3 years, 11 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/DocumentParserTiming.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp b/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp
index 055942495eb99590259217730943669568a99812..3abaf1dba7458ecd030ab3593c1179e7f287b005 100644
--- a/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp
@@ -65,16 +65,15 @@ void DocumentParserTiming::recordParserBlockedOnScriptExecutionDuration(
}
DEFINE_TRACE(DocumentParserTiming) {
- visitor->trace(m_document);
Supplement<Document>::trace(visitor);
}
DocumentParserTiming::DocumentParserTiming(Document& document)
- : m_document(document) {}
+ : Supplement<Document>(document) {}
void DocumentParserTiming::notifyDocumentParserTimingChanged() {
- if (m_document->loader())
- m_document->loader()->didChangePerformanceTiming();
+ if (host()->loader())
+ host()->loader()->didChangePerformanceTiming();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698