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

Unified Diff: Source/modules/device_light/DeviceLightController.cpp

Issue 1060813005: Componentization: fix SupplementTracing<0>::~SupplementTracing<0>(void) already defined. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/modules/device_light/DeviceLightController.cpp
diff --git a/Source/modules/device_light/DeviceLightController.cpp b/Source/modules/device_light/DeviceLightController.cpp
index 73dd5660a2658622c5d60b91e33b5347a13f9ef2..836319a65b8034aaff27c63837ab62884d9e1bfa 100644
--- a/Source/modules/device_light/DeviceLightController.cpp
+++ b/Source/modules/device_light/DeviceLightController.cpp
@@ -32,10 +32,10 @@ const char* DeviceLightController::supplementName()
DeviceLightController& DeviceLightController::from(Document& document)
{
- DeviceLightController* controller = static_cast<DeviceLightController*>(DocumentSupplement::from(document, supplementName()));
+ DeviceLightController* controller = static_cast<DeviceLightController*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
if (!controller) {
controller = new DeviceLightController(document);
- DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
+ WillBeHeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
}
return *controller;
}
@@ -75,7 +75,7 @@ const AtomicString& DeviceLightController::eventTypeName() const
DEFINE_TRACE(DeviceLightController)
{
DeviceSingleWindowEventController::trace(visitor);
- DocumentSupplement::trace(visitor);
+ WillBeHeapSupplement<Document>::trace(visitor);
}
« no previous file with comments | « Source/modules/device_light/DeviceLightController.h ('k') | Source/modules/device_orientation/DeviceMotionController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698