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

Side by Side Diff: Source/core/css/MediaList.h

Issue 189543014: Ensure proper finalization of garbage-collected types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase and sign error in Vector Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSCalculationValue.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 21 matching lines...) Expand all
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class CSSRule; 34 class CSSRule;
35 class CSSStyleSheet; 35 class CSSStyleSheet;
36 class Document; 36 class Document;
37 class ExceptionState; 37 class ExceptionState;
38 class MediaList; 38 class MediaList;
39 class MediaQuery; 39 class MediaQuery;
40 40
41 class MediaQuerySet : public RefCountedWillBeGarbageCollected<MediaQuerySet> { 41 class MediaQuerySet : public RefCountedWillBeGarbageCollected<MediaQuerySet> {
42 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQuerySet);
42 public: 43 public:
43 static PassRefPtrWillBeRawPtr<MediaQuerySet> create() 44 static PassRefPtrWillBeRawPtr<MediaQuerySet> create()
44 { 45 {
45 return adoptRefWillBeNoop(new MediaQuerySet()); 46 return adoptRefWillBeNoop(new MediaQuerySet());
46 } 47 }
47 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin g); 48 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin g);
48 ~MediaQuerySet();
49 49
50 bool set(const String&); 50 bool set(const String&);
51 bool add(const String&); 51 bool add(const String&);
52 bool remove(const String&); 52 bool remove(const String&);
53 53
54 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>); 54 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>);
55 55
56 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> >& queryVector() const { return m_queries; } 56 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> >& queryVector() const { return m_queries; }
57 57
58 String mediaText() const; 58 String mediaText() const;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i s not enabled. 115 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i s not enabled.
116 RawPtrWillBeMember<CSSRule> m_parentRule; 116 RawPtrWillBeMember<CSSRule> m_parentRule;
117 }; 117 };
118 118
119 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media. 119 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media.
120 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); 120 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*);
121 121
122 } // namespace 122 } // namespace
123 123
124 #endif 124 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSCalculationValue.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698