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 27 matching lines...) Expand all Loading... |
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 public: | 42 public: |
43 static PassRefPtrWillBeRawPtr<MediaQuerySet> create() | 43 static PassRefPtrWillBeRawPtr<MediaQuerySet> create() |
44 { | 44 { |
45 return adoptRefWillBeNoop(new MediaQuerySet()); | 45 return adoptRefWillBeNoop(new MediaQuerySet()); |
46 } | 46 } |
47 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin
g); | 47 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin
g); |
| 48 #if !ENABLE(OILPAN) |
48 ~MediaQuerySet(); | 49 ~MediaQuerySet(); |
| 50 #endif |
49 | 51 |
50 bool set(const String&); | 52 bool set(const String&); |
51 bool add(const String&); | 53 bool add(const String&); |
52 bool remove(const String&); | 54 bool remove(const String&); |
53 | 55 |
54 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>); | 56 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>); |
55 | 57 |
56 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> >& queryVector() const
{ return m_queries; } | 58 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> >& queryVector() const
{ return m_queries; } |
57 | 59 |
58 String mediaText() const; | 60 String mediaText() const; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i
s not enabled. | 117 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i
s not enabled. |
116 RawPtrWillBeMember<CSSRule> m_parentRule; | 118 RawPtrWillBeMember<CSSRule> m_parentRule; |
117 }; | 119 }; |
118 | 120 |
119 // Adds message to inspector console whenever dpi or dpcm values are used for "s
creen" media. | 121 // Adds message to inspector console whenever dpi or dpcm values are used for "s
creen" media. |
120 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); | 122 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); |
121 | 123 |
122 } // namespace | 124 } // namespace |
123 | 125 |
124 #endif | 126 #endif |
OLD | NEW |