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

Unified Diff: third_party/WebKit/Source/modules/sensor/Sensor.cpp

Issue 2790313004: Move ScriptState::domWindow() (Closed)
Patch Set: Rebase again Created 3 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: third_party/WebKit/Source/modules/sensor/Sensor.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.cpp b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
index d47061645ee0c58c3f83411af53705adc8533b66..a383ac37068077c7e5f52389907a79f67c3eb105 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.cpp
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
@@ -112,7 +112,7 @@ DOMHighResTimeStamp Sensor::timestamp(ScriptState* scriptState,
return 0.0;
}
- LocalDOMWindow* window = scriptState->domWindow();
+ LocalDOMWindow* window = LocalDOMWindow::from(scriptState);
if (!window) {
isNull = true;
return 0.0;

Powered by Google App Engine
This is Rietveld 408576698