OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 CSSPropertyGridColumnEnd, | 85 CSSPropertyGridColumnEnd, |
86 CSSPropertyGridRowStart, | 86 CSSPropertyGridRowStart, |
87 CSSPropertyGridRowEnd, | 87 CSSPropertyGridRowEnd, |
88 CSSPropertyGridColumn, | 88 CSSPropertyGridColumn, |
89 CSSPropertyGridRow, | 89 CSSPropertyGridRow, |
90 CSSPropertyGridArea, | 90 CSSPropertyGridArea, |
91 CSSPropertyGridAutoFlow, | 91 CSSPropertyGridAutoFlow, |
92 CSSPropertyGridTemplate | 92 CSSPropertyGridTemplate |
93 }; | 93 }; |
94 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay
outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); | 94 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay
outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); |
95 CSSPropertyID cssObjectFitPositionProperties[] = { | |
96 CSSPropertyObjectFit, | |
97 CSSPropertyObjectPosition | |
98 }; | |
99 setCSSPropertiesEnabled(cssObjectFitPositionProperties, WTF_ARRAY_LENGTH(css
ObjectFitPositionProperties), RuntimeEnabledFeatures::objectFitPositionEnabled()
); | |
100 | 95 |
101 CSSPropertyID animationProperties[] = { | 96 CSSPropertyID animationProperties[] = { |
102 CSSPropertyAnimation, | 97 CSSPropertyAnimation, |
103 CSSPropertyAnimationName, | 98 CSSPropertyAnimationName, |
104 CSSPropertyAnimationDuration, | 99 CSSPropertyAnimationDuration, |
105 CSSPropertyAnimationTimingFunction, | 100 CSSPropertyAnimationTimingFunction, |
106 CSSPropertyAnimationDelay, | 101 CSSPropertyAnimationDelay, |
107 CSSPropertyAnimationIterationCount, | 102 CSSPropertyAnimationIterationCount, |
108 CSSPropertyAnimationDirection, | 103 CSSPropertyAnimationDirection, |
109 CSSPropertyAnimationFillMode, | 104 CSSPropertyAnimationFillMode, |
110 CSSPropertyAnimationPlayState | 105 CSSPropertyAnimationPlayState |
111 }; | 106 }; |
112 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); | 107 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); |
113 | 108 |
114 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); | 109 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); |
115 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); | 110 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); |
116 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); | 111 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); |
117 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); | 112 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); |
118 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); | 113 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); |
| 114 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyObjectFit, RuntimeEnable
dFeatures::objectFitPositionEnabled()); |
119 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); | 115 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); |
120 } | 116 } |
121 | 117 |
122 static BoolVector& propertySwitches() | 118 static BoolVector& propertySwitches() |
123 { | 119 { |
124 static BoolVector* switches = 0; | 120 static BoolVector* switches = 0; |
125 if (!switches) { | 121 if (!switches) { |
126 switches = new BoolVector; | 122 switches = new BoolVector; |
127 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). | 123 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). |
128 switches->fill(true, lastCSSProperty + 1); | 124 switches->fill(true, lastCSSProperty + 1); |
(...skipping 27 matching lines...) Expand all Loading... |
156 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 152 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
157 { | 153 { |
158 for (unsigned i = 0; i < propertyCount; i++) { | 154 for (unsigned i = 0; i < propertyCount; i++) { |
159 CSSPropertyID property = properties[i]; | 155 CSSPropertyID property = properties[i]; |
160 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 156 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
161 outVector.append(property); | 157 outVector.append(property); |
162 } | 158 } |
163 } | 159 } |
164 | 160 |
165 } // namespace WebCore | 161 } // namespace WebCore |
OLD | NEW |