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

Unified Diff: Source/modules/device_orientation/DeviceOrientationController.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_orientation/DeviceOrientationController.cpp
diff --git a/Source/modules/device_orientation/DeviceOrientationController.cpp b/Source/modules/device_orientation/DeviceOrientationController.cpp
index 933b49c328d976fcdb259ae662968157a82f3430..64e1989ad142c05efd5cded3256e54b03211ab74 100644
--- a/Source/modules/device_orientation/DeviceOrientationController.cpp
+++ b/Source/modules/device_orientation/DeviceOrientationController.cpp
@@ -43,10 +43,10 @@ const char* DeviceOrientationController::supplementName()
DeviceOrientationController& DeviceOrientationController::from(Document& document)
{
- DeviceOrientationController* controller = static_cast<DeviceOrientationController*>(DocumentSupplement::from(document, supplementName()));
+ DeviceOrientationController* controller = static_cast<DeviceOrientationController*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
if (!controller) {
controller = new DeviceOrientationController(document);
- DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
+ WillBeHeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
}
return *controller;
}
@@ -129,7 +129,7 @@ DEFINE_TRACE(DeviceOrientationController)
{
visitor->trace(m_overrideOrientationData);
DeviceSingleWindowEventController::trace(visitor);
- DocumentSupplement::trace(visitor);
+ WillBeHeapSupplement<Document>::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698