| OLD | NEW |
| 1 /* | 1 /* |
| 2 * CSS Media Query | 2 * CSS Media Query |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. | 4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. |
| 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 6 * Copyright (C) 2013 Apple Inc. All rights reserved. | 6 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "core/css/MediaQueryExp.h" | 30 #include "core/css/MediaQueryExp.h" |
| 31 | 31 |
| 32 #include "core/css/parser/CSSParserToken.h" | 32 #include "core/css/parser/CSSParserToken.h" |
| 33 #include "core/html/parser/HTMLParserIdioms.h" | 33 #include "core/html/parser/HTMLParserIdioms.h" |
| 34 #include "platform/Decimal.h" | 34 #include "platform/Decimal.h" |
| 35 #include "platform/RuntimeEnabledFeatures.h" | 35 #include "platform/RuntimeEnabledFeatures.h" |
| 36 #include "wtf/text/StringBuffer.h" | 36 #include "platform/wtf/text/StringBuffer.h" |
| 37 #include "wtf/text/StringBuilder.h" | 37 #include "platform/wtf/text/StringBuilder.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 using namespace MediaFeatureNames; | 41 using namespace MediaFeatureNames; |
| 42 | 42 |
| 43 static inline bool FeatureWithValidIdent(const String& media_feature, | 43 static inline bool FeatureWithValidIdent(const String& media_feature, |
| 44 CSSValueID ident) { | 44 CSSValueID ident) { |
| 45 if (media_feature == displayModeMediaFeature) | 45 if (media_feature == displayModeMediaFeature) |
| 46 return ident == CSSValueFullscreen || ident == CSSValueStandalone || | 46 return ident == CSSValueFullscreen || ident == CSSValueStandalone || |
| 47 ident == CSSValueMinimalUi || ident == CSSValueBrowser; | 47 ident == CSSValueMinimalUi || ident == CSSValueBrowser; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 output.Append('/'); | 330 output.Append('/'); |
| 331 output.Append(PrintNumber(denominator)); | 331 output.Append(PrintNumber(denominator)); |
| 332 } else if (is_id) { | 332 } else if (is_id) { |
| 333 output.Append(getValueName(id)); | 333 output.Append(getValueName(id)); |
| 334 } | 334 } |
| 335 | 335 |
| 336 return output.ToString(); | 336 return output.ToString(); |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace blink | 339 } // namespace blink |
| OLD | NEW |