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

Side by Side Diff: third_party/WebKit/Source/core/css/MediaQueryList.cpp

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 20 matching lines...) Expand all
31 MediaQueryMatcher* matcher, 31 MediaQueryMatcher* matcher,
32 MediaQuerySet* media) { 32 MediaQuerySet* media) {
33 MediaQueryList* list = new MediaQueryList(context, matcher, media); 33 MediaQueryList* list = new MediaQueryList(context, matcher, media);
34 list->suspendIfNeeded(); 34 list->suspendIfNeeded();
35 return list; 35 return list;
36 } 36 }
37 37
38 MediaQueryList::MediaQueryList(ExecutionContext* context, 38 MediaQueryList::MediaQueryList(ExecutionContext* context,
39 MediaQueryMatcher* matcher, 39 MediaQueryMatcher* matcher,
40 MediaQuerySet* media) 40 MediaQuerySet* media)
41 : ActiveScriptWrappable(this), 41 : ActiveScriptWrappable<MediaQueryList>(this),
42 SuspendableObject(context), 42 SuspendableObject(context),
43 m_matcher(matcher), 43 m_matcher(matcher),
44 m_media(media), 44 m_media(media),
45 m_matchesDirty(true), 45 m_matchesDirty(true),
46 m_matches(false) { 46 m_matches(false) {
47 m_matcher->addMediaQueryList(this); 47 m_matcher->addMediaQueryList(this);
48 updateMatches(); 48 updateMatches();
49 } 49 }
50 50
51 MediaQueryList::~MediaQueryList() {} 51 MediaQueryList::~MediaQueryList() {}
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 const AtomicString& MediaQueryList::interfaceName() const { 128 const AtomicString& MediaQueryList::interfaceName() const {
129 return EventTargetNames::MediaQueryList; 129 return EventTargetNames::MediaQueryList;
130 } 130 }
131 131
132 ExecutionContext* MediaQueryList::getExecutionContext() const { 132 ExecutionContext* MediaQueryList::getExecutionContext() const {
133 return SuspendableObject::getExecutionContext(); 133 return SuspendableObject::getExecutionContext();
134 } 134 }
135 135
136 } // namespace blink 136 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryList.h ('k') | third_party/WebKit/Source/core/dom/MessagePort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698