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

Unified Diff: Source/core/css/MediaQueryListListener.cpp

Issue 297513008: Decrease call sites of ScriptState::current() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/core/css/MediaQueryListListener.h ('k') | Source/modules/imagebitmap/ImageBitmapFactories.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryListListener.cpp
diff --git a/Source/core/css/MediaQueryListListener.cpp b/Source/core/css/MediaQueryListListener.cpp
index b0d37160520074a615acb90cad53936b0843213d..66826b058c6b75f706366fc04d29dc7f52dfc645 100644
--- a/Source/core/css/MediaQueryListListener.cpp
+++ b/Source/core/css/MediaQueryListListener.cpp
@@ -25,8 +25,8 @@
namespace WebCore {
-MediaQueryListListener::MediaQueryListListener(const ScriptValue& function)
- : m_scriptState(ScriptState::current(function.isolate()))
+MediaQueryListListener::MediaQueryListListener(ScriptState* scriptState, const ScriptValue& function)
+ : m_scriptState(scriptState)
, m_function(function)
{
ASSERT(m_function.isFunction());
« no previous file with comments | « Source/core/css/MediaQueryListListener.h ('k') | Source/modules/imagebitmap/ImageBitmapFactories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698