Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: Source/core/css/MediaFeatureNames.h

Issue 14408004: Fix incorrect evaluation of resolution media queries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSStyleSheet.cpp ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 17 matching lines...) Expand all
28 #define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \ 28 #define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \
29 macro(color, "color") \ 29 macro(color, "color") \
30 macro(grid, "grid") \ 30 macro(grid, "grid") \
31 macro(monochrome, "monochrome") \ 31 macro(monochrome, "monochrome") \
32 macro(height, "height") \ 32 macro(height, "height") \
33 macro(hover, "hover") \ 33 macro(hover, "hover") \
34 macro(width, "width") \ 34 macro(width, "width") \
35 macro(orientation, "orientation") \ 35 macro(orientation, "orientation") \
36 macro(aspect_ratio, "aspect-ratio") \ 36 macro(aspect_ratio, "aspect-ratio") \
37 macro(device_aspect_ratio, "device-aspect-ratio") \ 37 macro(device_aspect_ratio, "device-aspect-ratio") \
38 macro(device_pixel_ratio, "-webkit-device-pixel-ratio") \ 38 macro(devicePixelRatio, "-webkit-device-pixel-ratio") \
39 macro(device_height, "device-height") \ 39 macro(device_height, "device-height") \
40 macro(device_width, "device-width") \ 40 macro(device_width, "device-width") \
41 macro(max_color, "max-color") \ 41 macro(max_color, "max-color") \
42 macro(max_aspect_ratio, "max-aspect-ratio") \ 42 macro(max_aspect_ratio, "max-aspect-ratio") \
43 macro(max_device_aspect_ratio, "max-device-aspect-ratio") \ 43 macro(max_device_aspect_ratio, "max-device-aspect-ratio") \
44 macro(max_device_pixel_ratio, "-webkit-max-device-pixel-ratio") \ 44 macro(maxDevicePixelRatio, "-webkit-max-device-pixel-ratio") \
45 macro(max_device_height, "max-device-height") \ 45 macro(max_device_height, "max-device-height") \
46 macro(max_device_width, "max-device-width") \ 46 macro(max_device_width, "max-device-width") \
47 macro(max_height, "max-height") \ 47 macro(max_height, "max-height") \
48 macro(max_monochrome, "max-monochrome") \ 48 macro(max_monochrome, "max-monochrome") \
49 macro(max_width, "max-width") \ 49 macro(max_width, "max-width") \
50 macro(max_resolution, "max-resolution") \ 50 macro(max_resolution, "max-resolution") \
51 macro(min_color, "min-color") \ 51 macro(min_color, "min-color") \
52 macro(min_aspect_ratio, "min-aspect-ratio") \ 52 macro(min_aspect_ratio, "min-aspect-ratio") \
53 macro(min_device_aspect_ratio, "min-device-aspect-ratio") \ 53 macro(min_device_aspect_ratio, "min-device-aspect-ratio") \
54 macro(min_device_pixel_ratio, "-webkit-min-device-pixel-ratio") \ 54 macro(minDevicePixelRatio, "-webkit-min-device-pixel-ratio") \
55 macro(min_device_height, "min-device-height") \ 55 macro(min_device_height, "min-device-height") \
56 macro(min_device_width, "min-device-width") \ 56 macro(min_device_width, "min-device-width") \
57 macro(min_height, "min-height") \ 57 macro(min_height, "min-height") \
58 macro(min_monochrome, "min-monochrome") \ 58 macro(min_monochrome, "min-monochrome") \
59 macro(min_width, "min-width") \ 59 macro(min_width, "min-width") \
60 macro(min_resolution, "min-resolution") \ 60 macro(min_resolution, "min-resolution") \
61 macro(pointer, "pointer") \ 61 macro(pointer, "pointer") \
62 macro(resolution, "resolution") \ 62 macro(resolution, "resolution") \
63 macro(transform_2d, "-webkit-transform-2d") \ 63 macro(transform_2d, "-webkit-transform-2d") \
64 macro(transform_3d, "-webkit-transform-3d") \ 64 macro(transform_3d, "-webkit-transform-3d") \
65 macro(transition, "-webkit-transition") \ 65 macro(transition, "-webkit-transition") \
66 macro(animation, "-webkit-animation") \ 66 macro(animation, "-webkit-animation") \
67 macro(view_mode, "-webkit-view-mode") 67 macro(view_mode, "-webkit-view-mode")
68 68
69 // end of macro 69 // end of macro
70 70
71 #ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS 71 #ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS
72 #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const AtomicString na me##MediaFeature; 72 #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const AtomicString na me##MediaFeature;
73 CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE) 73 CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE)
74 #undef CSS_MEDIAQUERY_NAMES_DECLARE 74 #undef CSS_MEDIAQUERY_NAMES_DECLARE
75 #endif 75 #endif
76 76
77 void init(); 77 void init();
78 78
79 } // namespace MediaFeatureNames 79 } // namespace MediaFeatureNames
80 } // namespace WebCore 80 } // namespace WebCore
81 81
82 #endif // MediaFeatureNames_h 82 #endif // MediaFeatureNames_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleSheet.cpp ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698