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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.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/imagebitmap/ImageBitmapFactories.cpp
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
index 3c2a1a763b01584173f6a23739180fdea6a088f2..f273bc8315d866418e241354cc91ac000b54ba68 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
@@ -130,7 +130,7 @@ ScriptPromise ImageBitmapFactories::createImageBitmap(
const ImageBitmapOptions& options,
ExceptionState& exception_state) {
UseCounter::Feature feature = UseCounter::kCreateImageBitmap;
- UseCounter::Count(script_state->GetExecutionContext(), feature);
+ UseCounter::Count(ExecutionContext::From(script_state), feature);
ImageBitmapSource* bitmap_source_internal = ToImageBitmapSourceInternal(
bitmap_source, exception_state, options, false);
if (!bitmap_source_internal)
@@ -150,7 +150,7 @@ ScriptPromise ImageBitmapFactories::createImageBitmap(
const ImageBitmapOptions& options,
ExceptionState& exception_state) {
UseCounter::Feature feature = UseCounter::kCreateImageBitmap;
- UseCounter::Count(script_state->GetExecutionContext(), feature);
+ UseCounter::Count(ExecutionContext::From(script_state), feature);
ImageBitmapSource* bitmap_source_internal = ToImageBitmapSourceInternal(
bitmap_source, exception_state, options, true);
if (!bitmap_source_internal)
« no previous file with comments | « third_party/WebKit/Source/core/html/FormData.cpp ('k') | third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698