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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 CSSPropertyGridColumn, | 88 CSSPropertyGridColumn, |
89 CSSPropertyGridRow, | 89 CSSPropertyGridRow, |
90 CSSPropertyGridArea, | 90 CSSPropertyGridArea, |
91 CSSPropertyGridAutoFlow | 91 CSSPropertyGridAutoFlow |
92 }; | 92 }; |
93 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay
outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); | 93 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay
outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); |
94 | 94 |
95 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); | 95 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); |
96 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); | 96 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); |
97 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); | 97 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); |
| 98 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); |
98 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); | 99 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); |
99 } | 100 } |
100 | 101 |
101 static BoolVector& propertySwitches() | 102 static BoolVector& propertySwitches() |
102 { | 103 { |
103 static BoolVector* switches = 0; | 104 static BoolVector* switches = 0; |
104 if (!switches) { | 105 if (!switches) { |
105 switches = new BoolVector; | 106 switches = new BoolVector; |
106 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). | 107 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). |
107 switches->fill(true, lastCSSProperty + 1); | 108 switches->fill(true, lastCSSProperty + 1); |
(...skipping 27 matching lines...) Expand all Loading... |
135 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 136 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
136 { | 137 { |
137 for (unsigned i = 0; i < propertyCount; i++) { | 138 for (unsigned i = 0; i < propertyCount; i++) { |
138 CSSPropertyID property = properties[i]; | 139 CSSPropertyID property = properties[i]; |
139 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 140 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
140 outVector.append(property); | 141 outVector.append(property); |
141 } | 142 } |
142 } | 143 } |
143 | 144 |
144 } // namespace WebCore | 145 } // namespace WebCore |
OLD | NEW |