Index: Source/core/dom/ContextFeatures.cpp |
diff --git a/Source/core/dom/ContextFeatures.cpp b/Source/core/dom/ContextFeatures.cpp |
index 980dde13bfbc69ef0d5d7bb449b805cd8045b7d4..547e44490fed86e60450cfd79c849cb22590ebcb 100644 |
--- a/Source/core/dom/ContextFeatures.cpp |
+++ b/Source/core/dom/ContextFeatures.cpp |
@@ -84,17 +84,17 @@ bool ContextFeatures::pushStateEnabled(Document* document) |
return document->contextFeatures()->isEnabled(document, PushState, true); |
} |
-void provideContextFeaturesTo(Page* page, ContextFeaturesClient* client) |
+void provideContextFeaturesTo(Page& page, ContextFeaturesClient* client) |
{ |
RefCountedSupplement<Page, ContextFeatures>::provideTo(page, ContextFeatures::supplementName(), ContextFeatures::create(client)); |
} |
-void provideContextFeaturesToDocumentFrom(Document* document, Page* page) |
+void provideContextFeaturesToDocumentFrom(Document& document, Page& page) |
{ |
ContextFeatures* provided = static_cast<ContextFeatures*>(RefCountedSupplement<Page, ContextFeatures>::from(page, ContextFeatures::supplementName())); |
if (!provided) |
return; |
- document->setContextFeatures(provided); |
+ document.setContextFeatures(provided); |
} |
} |