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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp 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/clipboard/DataTransferItem.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp b/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
index e0daa9bdbb7169b6bf0dbd5d39565f9c90e1f325..737248f2b3b3f938e1ca75ea646467a08734c96c 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
@@ -33,6 +33,7 @@
#include "bindings/core/v8/V8Binding.h"
#include "core/clipboard/DataObjectItem.h"
#include "core/clipboard/DataTransfer.h"
+#include "core/dom/ExecutionContext.h"
#include "core/dom/StringCallback.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/probe/CoreProbes.h"
@@ -83,7 +84,7 @@ void DataTransferItem::getAsString(ScriptState* script_state,
if (!callback || item_->Kind() != DataObjectItem::kStringKind)
return;
- ExecutionContext* context = script_state->GetExecutionContext();
+ ExecutionContext* context = ExecutionContext::From(script_state);
probe::AsyncTaskScheduled(context, "DataTransferItem.getAsString", callback);
TaskRunnerHelper::Get(TaskType::kUserInteraction, script_state)
->PostTask(BLINK_FROM_HERE,
« no previous file with comments | « third_party/WebKit/Source/core/animation/ElementAnimation.h ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698