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()
); |
95 | 100 |
96 CSSPropertyID animationProperties[] = { | 101 CSSPropertyID animationProperties[] = { |
97 CSSPropertyAnimation, | 102 CSSPropertyAnimation, |
98 CSSPropertyAnimationName, | 103 CSSPropertyAnimationName, |
99 CSSPropertyAnimationDuration, | 104 CSSPropertyAnimationDuration, |
100 CSSPropertyAnimationTimingFunction, | 105 CSSPropertyAnimationTimingFunction, |
101 CSSPropertyAnimationDelay, | 106 CSSPropertyAnimationDelay, |
102 CSSPropertyAnimationIterationCount, | 107 CSSPropertyAnimationIterationCount, |
103 CSSPropertyAnimationDirection, | 108 CSSPropertyAnimationDirection, |
104 CSSPropertyAnimationFillMode, | 109 CSSPropertyAnimationFillMode, |
105 CSSPropertyAnimationPlayState | 110 CSSPropertyAnimationPlayState |
106 }; | 111 }; |
107 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); | 112 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); |
108 | 113 |
109 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); | 114 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); |
110 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); | 115 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); |
111 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyIsolation, RuntimeEnable
dFeatures::cssCompositingEnabled()); | 116 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyIsolation, RuntimeEnable
dFeatures::cssCompositingEnabled()); |
112 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); | 117 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); |
113 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); | 118 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); |
114 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); | 119 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); |
115 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyObjectFit, RuntimeEnable
dFeatures::objectFitPositionEnabled()); | |
116 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); | 120 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); |
117 } | 121 } |
118 | 122 |
119 static BoolVector& propertySwitches() | 123 static BoolVector& propertySwitches() |
120 { | 124 { |
121 static BoolVector* switches = 0; | 125 static BoolVector* switches = 0; |
122 if (!switches) { | 126 if (!switches) { |
123 switches = new BoolVector; | 127 switches = new BoolVector; |
124 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). | 128 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). |
125 switches->fill(true, lastCSSProperty + 1); | 129 switches->fill(true, lastCSSProperty + 1); |
(...skipping 27 matching lines...) Expand all Loading... |
153 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 157 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
154 { | 158 { |
155 for (unsigned i = 0; i < propertyCount; i++) { | 159 for (unsigned i = 0; i < propertyCount; i++) { |
156 CSSPropertyID property = properties[i]; | 160 CSSPropertyID property = properties[i]; |
157 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 161 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
158 outVector.append(property); | 162 outVector.append(property); |
159 } | 163 } |
160 } | 164 } |
161 | 165 |
162 } // namespace WebCore | 166 } // namespace WebCore |
OLD | NEW |