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