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 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); | 101 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); |
97 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); | 102 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); |
98 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); | 103 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); |
99 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); | 104 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); |
100 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); | 105 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); |
101 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyObjectFit, RuntimeEnable
dFeatures::objectFitPositionEnabled()); | |
102 } | 106 } |
103 | 107 |
104 static BoolVector& propertySwitches() | 108 static BoolVector& propertySwitches() |
105 { | 109 { |
106 static BoolVector* switches = 0; | 110 static BoolVector* switches = 0; |
107 if (!switches) { | 111 if (!switches) { |
108 switches = new BoolVector; | 112 switches = new BoolVector; |
109 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). | 113 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). |
110 switches->fill(true, lastCSSProperty + 1); | 114 switches->fill(true, lastCSSProperty + 1); |
111 setPropertySwitchesFromRuntimeFeatures(); | 115 setPropertySwitchesFromRuntimeFeatures(); |
(...skipping 26 matching lines...) Expand all Loading... |
138 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 142 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
139 { | 143 { |
140 for (unsigned i = 0; i < propertyCount; i++) { | 144 for (unsigned i = 0; i < propertyCount; i++) { |
141 CSSPropertyID property = properties[i]; | 145 CSSPropertyID property = properties[i]; |
142 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 146 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
143 outVector.append(property); | 147 outVector.append(property); |
144 } | 148 } |
145 } | 149 } |
146 | 150 |
147 } // namespace WebCore | 151 } // namespace WebCore |
OLD | NEW |