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

Unified Diff: Source/core/html/imports/HTMLImportsController.cpp

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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/html/imports/HTMLImportsController.cpp
diff --git a/Source/core/html/imports/HTMLImportsController.cpp b/Source/core/html/imports/HTMLImportsController.cpp
index 1b2eaa737a6d72ec27f493ecc3c35dc2b131ee8c..b91285c24c8785e8811f343b726a9c920fe0f23e 100644
--- a/Source/core/html/imports/HTMLImportsController.cpp
+++ b/Source/core/html/imports/HTMLImportsController.cpp
@@ -38,16 +38,16 @@
namespace WebCore {
-void HTMLImportsController::provideTo(Document* master)
+void HTMLImportsController::provideTo(Document& master)
{
DEFINE_STATIC_LOCAL(const char*, name, ("HTMLImportsController"));
OwnPtr<HTMLImportsController> controller = adoptPtr(new HTMLImportsController(master));
- master->setImport(controller.get());
+ master.setImport(controller.get());
DocumentSupplement::provideTo(master, name, controller.release());
}
-HTMLImportsController::HTMLImportsController(Document* master)
- : m_master(master)
+HTMLImportsController::HTMLImportsController(Document& master)
+ : m_master(&master)
, m_recalcTimer(this, &HTMLImportsController::recalcTimerFired)
{
recalcTreeState(this); // This recomputes initial state.

Powered by Google App Engine
This is Rietveld 408576698