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, 2010, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved. |
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 { | 56 { |
57 } | 57 } |
58 | 58 |
59 MediaQuerySet::MediaQuerySet(const MediaQuerySet& o) | 59 MediaQuerySet::MediaQuerySet(const MediaQuerySet& o) |
60 : m_queries(o.m_queries.size()) | 60 : m_queries(o.m_queries.size()) |
61 { | 61 { |
62 for (unsigned i = 0; i < m_queries.size(); ++i) | 62 for (unsigned i = 0; i < m_queries.size(); ++i) |
63 m_queries[i] = o.m_queries[i]->copy(); | 63 m_queries[i] = o.m_queries[i]->copy(); |
64 } | 64 } |
65 | 65 |
66 MediaQuerySet::~MediaQuerySet() | 66 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQuerySet) |
67 { | |
68 } | |
69 | 67 |
70 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
tring) | 68 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
tring) |
71 { | 69 { |
72 if (mediaString.isEmpty()) | 70 if (mediaString.isEmpty()) |
73 return MediaQuerySet::create(); | 71 return MediaQuerySet::create(); |
74 | 72 |
75 BisonCSSParser parser(strictCSSParserContext()); | 73 BisonCSSParser parser(strictCSSParserContext()); |
76 return parser.parseMediaQueryList(mediaString); | 74 return parser.parseMediaQueryList(mediaString); |
77 } | 75 } |
78 | 76 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 if ((primitiveValue->isDotsPerInch() || primitiveValue->isDo
tsPerCentimeter()) && !overriden.contains(expression->mediaFeature())) | 299 if ((primitiveValue->isDotsPerInch() || primitiveValue->isDo
tsPerCentimeter()) && !overriden.contains(expression->mediaFeature())) |
302 addResolutionWarningMessageToConsole(document, mediaQuer
ySet->mediaText(), primitiveValue); | 300 addResolutionWarningMessageToConsole(document, mediaQuer
ySet->mediaText(), primitiveValue); |
303 } | 301 } |
304 overriden.add(expression->mediaFeature()); | 302 overriden.add(expression->mediaFeature()); |
305 } | 303 } |
306 } | 304 } |
307 } | 305 } |
308 } | 306 } |
309 | 307 |
310 } | 308 } |
OLD | NEW |