OLD | NEW |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 } | 47 } |
48 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin
g); | 48 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin
g); |
49 static PassRefPtrWillBeRawPtr<MediaQuerySet> createOffMainThread(const Strin
g& mediaString); | 49 static PassRefPtrWillBeRawPtr<MediaQuerySet> createOffMainThread(const Strin
g& mediaString); |
50 | 50 |
51 bool set(const String&); | 51 bool set(const String&); |
52 bool add(const String&); | 52 bool add(const String&); |
53 bool remove(const String&); | 53 bool remove(const String&); |
54 | 54 |
55 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>); | 55 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>); |
56 | 56 |
57 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> >& queryVector() const
{ return m_queries; } | 57 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery>>& queryVector() const
{ return m_queries; } |
58 | 58 |
59 String mediaText() const; | 59 String mediaText() const; |
60 | 60 |
61 PassRefPtrWillBeRawPtr<MediaQuerySet> copy() const { return adoptRefWillBeNo
op(new MediaQuerySet(*this)); } | 61 PassRefPtrWillBeRawPtr<MediaQuerySet> copy() const { return adoptRefWillBeNo
op(new MediaQuerySet(*this)); } |
62 | 62 |
63 DECLARE_TRACE(); | 63 DECLARE_TRACE(); |
64 | 64 |
65 private: | 65 private: |
66 MediaQuerySet(); | 66 MediaQuerySet(); |
67 MediaQuerySet(const MediaQuerySet&); | 67 MediaQuerySet(const MediaQuerySet&); |
68 | 68 |
69 WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> > m_queries; | 69 WillBeHeapVector<OwnPtrWillBeMember<MediaQuery>> m_queries; |
70 }; | 70 }; |
71 | 71 |
72 class MediaList final : public RefCountedWillBeGarbageCollected<MediaList>, publ
ic ScriptWrappable { | 72 class MediaList final : public RefCountedWillBeGarbageCollected<MediaList>, publ
ic ScriptWrappable { |
73 DEFINE_WRAPPERTYPEINFO(); | 73 DEFINE_WRAPPERTYPEINFO(); |
74 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaList); | 74 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaList); |
75 public: | 75 public: |
76 static PassRefPtrWillBeRawPtr<MediaList> create(MediaQuerySet* mediaQueries,
CSSStyleSheet* parentSheet) | 76 static PassRefPtrWillBeRawPtr<MediaList> create(MediaQuerySet* mediaQueries,
CSSStyleSheet* parentSheet) |
77 { | 77 { |
78 return adoptRefWillBeNoop(new MediaList(mediaQueries, parentSheet)); | 78 return adoptRefWillBeNoop(new MediaList(mediaQueries, parentSheet)); |
79 } | 79 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; | 113 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; |
114 // Cleared in ~CSSStyleSheet destructor when oilpan is not enabled. | 114 // Cleared in ~CSSStyleSheet destructor when oilpan is not enabled. |
115 RawPtrWillBeMember<CSSStyleSheet> m_parentStyleSheet; | 115 RawPtrWillBeMember<CSSStyleSheet> m_parentStyleSheet; |
116 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i
s not enabled. | 116 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i
s not enabled. |
117 RawPtrWillBeMember<CSSRule> m_parentRule; | 117 RawPtrWillBeMember<CSSRule> m_parentRule; |
118 }; | 118 }; |
119 | 119 |
120 } // namespace blink | 120 } // namespace blink |
121 | 121 |
122 #endif | 122 #endif |
OLD | NEW |