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

Unified Diff: third_party/WebKit/Source/core/events/Event.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/core/events/Event.cpp
diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
index 7fb74576dd084320d1ba50977d5f71ce7ee0020e..7b1ffdcffdda7ae24f002c456a3c185c7d9b787f 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -341,9 +341,9 @@ EventTarget* Event::currentTarget() const {
double Event::timeStamp(ScriptState* scriptState) const {
double timeStamp = 0;
- if (scriptState && scriptState->domWindow()) {
+ if (scriptState && LocalDOMWindow::from(scriptState)) {
Performance* performance =
- DOMWindowPerformance::performance(*scriptState->domWindow());
+ DOMWindowPerformance::performance(*LocalDOMWindow::from(scriptState));
double timestampSeconds = (m_platformTimeStamp - TimeTicks()).InSecondsF();
timeStamp =
performance->monotonicTimeToDOMHighResTimeStamp(timestampSeconds);

Powered by Google App Engine
This is Rietveld 408576698