| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 m_queries[i] = o.m_queries[i]->copy(); | 64 m_queries[i] = o.m_queries[i]->copy(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQuerySet) | 67 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQuerySet) |
| 68 | 68 |
| 69 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
tring) | 69 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
tring) |
| 70 { | 70 { |
| 71 if (mediaString.isEmpty()) | 71 if (mediaString.isEmpty()) |
| 72 return MediaQuerySet::create(); | 72 return MediaQuerySet::create(); |
| 73 | 73 |
| 74 if (RuntimeEnabledFeatures::mediaQueryParserEnabled()) |
| 75 return MediaQueryParser::parse(mediaString); |
| 76 |
| 74 BisonCSSParser parser(strictCSSParserContext()); | 77 BisonCSSParser parser(strictCSSParserContext()); |
| 75 return parser.parseMediaQueryList(mediaString); | 78 return parser.parseMediaQueryList(mediaString); |
| 76 } | 79 } |
| 77 | 80 |
| 78 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::createOffMainThread(const S
tring& mediaString) | 81 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::createOffMainThread(const S
tring& mediaString) |
| 79 { | 82 { |
| 80 if (mediaString.isEmpty()) | 83 if (mediaString.isEmpty()) |
| 81 return MediaQuerySet::create(); | 84 return MediaQuerySet::create(); |
| 82 | 85 |
| 83 return MediaQueryParser::parse(mediaString); | 86 return MediaQueryParser::parse(mediaString); |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 } | 316 } |
| 314 } | 317 } |
| 315 } | 318 } |
| 316 } | 319 } |
| 317 | 320 |
| 318 if (suspiciousValue && !dotsPerPixelUsed) | 321 if (suspiciousValue && !dotsPerPixelUsed) |
| 319 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText(
), suspiciousValue); | 322 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText(
), suspiciousValue); |
| 320 } | 323 } |
| 321 | 324 |
| 322 } | 325 } |
| OLD | NEW |