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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/modules/device_orientation/DeviceOrientationAbsoluteController.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp
index 85636f9bcd43e317fb2e4e629b59a99c6023c8a6..88221a67feb0b3b088213ee35ee3868cec43723b 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp
@@ -29,10 +29,10 @@ const char* DeviceOrientationAbsoluteController::supplementName()
DeviceOrientationAbsoluteController& DeviceOrientationAbsoluteController::from(Document& document)
{
- DeviceOrientationAbsoluteController* controller = static_cast<DeviceOrientationAbsoluteController*>(HeapSupplement<Document>::from(document, DeviceOrientationAbsoluteController::supplementName()));
+ DeviceOrientationAbsoluteController* controller = static_cast<DeviceOrientationAbsoluteController*>(Supplement<Document>::from(document, DeviceOrientationAbsoluteController::supplementName()));
if (!controller) {
controller = new DeviceOrientationAbsoluteController(document);
- HeapSupplement<Document>::provideTo(document, DeviceOrientationAbsoluteController::supplementName(), controller);
+ Supplement<Document>::provideTo(document, DeviceOrientationAbsoluteController::supplementName(), controller);
}
return *controller;
}

Powered by Google App Engine
This is Rietveld 408576698