| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 { | 50 { |
| 51 return adoptRef(new MediaQuerySet(mediaString, true)); | 51 return adoptRef(new MediaQuerySet(mediaString, true)); |
| 52 } | 52 } |
| 53 ~MediaQuerySet(); | 53 ~MediaQuerySet(); |
| 54 | 54 |
| 55 bool parse(const String&); | 55 bool parse(const String&); |
| 56 bool add(const String&); | 56 bool add(const String&); |
| 57 bool remove(const String&); | 57 bool remove(const String&); |
| 58 | 58 |
| 59 void addMediaQuery(PassOwnPtr<MediaQuery>); | 59 void addMediaQuery(PassOwnPtr<MediaQuery>); |
| 60 void replaceLastMediaQuery(PassOwnPtr<MediaQuery>); |
| 60 | 61 |
| 61 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; } | 62 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; } |
| 62 | 63 |
| 63 int lastLine() const { return m_lastLine; } | 64 int lastLine() const { return m_lastLine; } |
| 64 void setLastLine(int lastLine) { m_lastLine = lastLine; } | 65 void setLastLine(int lastLine) { m_lastLine = lastLine; } |
| 65 | 66 |
| 66 String mediaText() const; | 67 String mediaText() const; |
| 67 | 68 |
| 68 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(*
this)); } | 69 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(*
this)); } |
| 69 | 70 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 #if ENABLE(RESOLUTION_MEDIA_QUERY) | 125 #if ENABLE(RESOLUTION_MEDIA_QUERY) |
| 125 // Adds message to inspector console whenever dpi or dpcm values are used for "s
creen" media. | 126 // Adds message to inspector console whenever dpi or dpcm values are used for "s
creen" media. |
| 126 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); | 127 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); |
| 127 #endif | 128 #endif |
| 128 | 129 |
| 129 } // namespace | 130 } // namespace |
| 130 | 131 |
| 131 #endif | 132 #endif |
| OLD | NEW |