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

Side by Side Diff: Source/core/css/resolver/CSSPropertyPriority.h

Issue 943463002: Initial implementation of font-size-adjust (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add some tests which need a rebaseline to TestExpectation Created 5 years, 9 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/parser/CSSPropertyParser.cpp ('k') | Source/core/css/resolver/FontBuilder.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSPropertyPriority_h 5 #ifndef CSSPropertyPriority_h
6 #define CSSPropertyPriority_h 6 #define CSSPropertyPriority_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 21 matching lines...) Expand all
32 template<> 32 template<>
33 inline CSSPropertyID CSSPropertyPriorityData<HighPropertyPriority>::first() 33 inline CSSPropertyID CSSPropertyPriorityData<HighPropertyPriority>::first()
34 { 34 {
35 static_assert(CSSPropertyColor == firstCSSProperty, "CSSPropertyColor should be the first high priority property"); 35 static_assert(CSSPropertyColor == firstCSSProperty, "CSSPropertyColor should be the first high priority property");
36 return CSSPropertyColor; 36 return CSSPropertyColor;
37 } 37 }
38 38
39 template<> 39 template<>
40 inline CSSPropertyID CSSPropertyPriorityData<HighPropertyPriority>::last() 40 inline CSSPropertyID CSSPropertyPriorityData<HighPropertyPriority>::last()
41 { 41 {
42 static_assert(CSSPropertyZoom == CSSPropertyColor + 16, "CSSPropertyZoom sho uld be the end of the high priority property range"); 42 static_assert(CSSPropertyZoom == CSSPropertyColor + 17, "CSSPropertyZoom sho uld be the end of the high priority property range");
43 static_assert(CSSPropertyTextRendering == CSSPropertyZoom - 1, "CSSPropertyT extRendering should be immediately before CSSPropertyZoom"); 43 static_assert(CSSPropertyTextRendering == CSSPropertyZoom - 1, "CSSPropertyT extRendering should be immediately before CSSPropertyZoom");
44 return CSSPropertyZoom; 44 return CSSPropertyZoom;
45 } 45 }
46 46
47 template<> 47 template<>
48 inline CSSPropertyID CSSPropertyPriorityData<LowPropertyPriority>::first() 48 inline CSSPropertyID CSSPropertyPriorityData<LowPropertyPriority>::first()
49 { 49 {
50 static_assert(CSSPropertyAlignContent == CSSPropertyZoom + 1, "CSSPropertyAl ignContent should be the first low priority property"); 50 static_assert(CSSPropertyAlignContent == CSSPropertyZoom + 1, "CSSPropertyAl ignContent should be the first low priority property");
51 return CSSPropertyAlignContent; 51 return CSSPropertyAlignContent;
52 } 52 }
53 53
54 template<> 54 template<>
55 inline CSSPropertyID CSSPropertyPriorityData<LowPropertyPriority>::last() 55 inline CSSPropertyID CSSPropertyPriorityData<LowPropertyPriority>::last()
56 { 56 {
57 return static_cast<CSSPropertyID>(lastCSSProperty); 57 return static_cast<CSSPropertyID>(lastCSSProperty);
58 } 58 }
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // CSSPropertyPriority_h 62 #endif // CSSPropertyPriority_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/css/resolver/FontBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698