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

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

Issue 697893003: Oilpan: avoid invoking some no-op finalizers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove Finalized<> for StyleSheetList Created 6 years, 1 month 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 | « no previous file | Source/core/css/MediaList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaList.h
diff --git a/Source/core/css/MediaList.h b/Source/core/css/MediaList.h
index 834689537d171185e3bc2c3a12a366574d9ac3aa..3c44ce9c1f9ee29b9dcb0cde6d1f1534d6485bc6 100644
--- a/Source/core/css/MediaList.h
+++ b/Source/core/css/MediaList.h
@@ -70,20 +70,20 @@ private:
WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> > m_queries;
};
-class MediaList : public RefCountedWillBeGarbageCollectedFinalized<MediaList>, public ScriptWrappable {
+class MediaList final : public RefCountedWillBeGarbageCollected<MediaList>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
+ DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaList);
public:
static PassRefPtrWillBeRawPtr<MediaList> create(MediaQuerySet* mediaQueries, CSSStyleSheet* parentSheet)
{
return adoptRefWillBeNoop(new MediaList(mediaQueries, parentSheet));
}
+
static PassRefPtrWillBeRawPtr<MediaList> create(MediaQuerySet* mediaQueries, CSSRule* parentRule)
{
return adoptRefWillBeNoop(new MediaList(mediaQueries, parentRule));
}
- ~MediaList();
-
unsigned length() const { return m_mediaQueries->queryVector().size(); }
String item(unsigned index) const;
void deleteMedium(const String& oldMedium, ExceptionState&);
« no previous file with comments | « no previous file | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698