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 #if !ENABLE(OILPAN) |
66 MediaQuerySet::~MediaQuerySet() | 67 MediaQuerySet::~MediaQuerySet() |
67 { | 68 { |
68 } | 69 } |
| 70 #endif |
69 | 71 |
70 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
tring) | 72 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
tring) |
71 { | 73 { |
72 if (mediaString.isEmpty()) | 74 if (mediaString.isEmpty()) |
73 return MediaQuerySet::create(); | 75 return MediaQuerySet::create(); |
74 | 76 |
75 BisonCSSParser parser(strictCSSParserContext()); | 77 BisonCSSParser parser(strictCSSParserContext()); |
76 return parser.parseMediaQueryList(mediaString); | 78 return parser.parseMediaQueryList(mediaString); |
77 } | 79 } |
78 | 80 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(cssV
alue); | 301 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(cssV
alue); |
300 if (primitiveValue->isDotsPerInch() || primitiveValue->isDot
sPerCentimeter()) | 302 if (primitiveValue->isDotsPerInch() || primitiveValue->isDot
sPerCentimeter()) |
301 addResolutionWarningMessageToConsole(document, mediaQuer
ySet->mediaText(), primitiveValue); | 303 addResolutionWarningMessageToConsole(document, mediaQuer
ySet->mediaText(), primitiveValue); |
302 } | 304 } |
303 } | 305 } |
304 } | 306 } |
305 } | 307 } |
306 } | 308 } |
307 | 309 |
308 } | 310 } |
OLD | NEW |