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

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

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/FontFaceSet.cpp ('k') | Source/core/css/MediaQueryListListener.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryListListener.h
diff --git a/Source/core/css/MediaQueryListListener.h b/Source/core/css/MediaQueryListListener.h
index d6a800c3565301ef66c67f07d5c313856e577001..26a921f77db0951af750df2be4c53f0ca638dfb5 100644
--- a/Source/core/css/MediaQueryListListener.h
+++ b/Source/core/css/MediaQueryListListener.h
@@ -33,11 +33,11 @@ class MediaQueryList;
class MediaQueryListListener : public RefCountedWillBeGarbageCollectedFinalized<MediaQueryListListener> {
public:
- static PassRefPtrWillBeRawPtr<MediaQueryListListener> create(const ScriptValue& value)
+ static PassRefPtrWillBeRawPtr<MediaQueryListListener> create(ScriptState* scriptState, const ScriptValue& value)
{
if (!value.isFunction())
return nullptr;
- return adoptRefWillBeNoop(new MediaQueryListListener(value));
+ return adoptRefWillBeNoop(new MediaQueryListListener(scriptState, value));
}
void queryChanged(MediaQueryList*);
@@ -46,7 +46,7 @@ public:
void trace(Visitor*) { }
private:
- explicit MediaQueryListListener(const ScriptValue&);
+ MediaQueryListListener(ScriptState*, const ScriptValue&);
RefPtr<ScriptState> m_scriptState;
ScriptValue m_function;
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/css/MediaQueryListListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698