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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 }; | 111 }; |
112 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); | 112 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); |
113 | 113 |
114 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); | 114 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
timeEnabledFeatures::cssCompositingEnabled()); |
115 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); | 115 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); |
116 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyIsolation, RuntimeEnable
dFeatures::cssCompositingEnabled()); | 116 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyIsolation, RuntimeEnable
dFeatures::cssCompositingEnabled()); |
117 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); | 117 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); |
118 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); | 118 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl
edFeatures::svgPaintOrderEnabled()); |
119 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); | 119 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled
Features::cssVariablesEnabled()); |
120 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); | 120 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); |
| 121 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyColumnFill, RuntimeEnabl
edFeatures::regionBasedColumnsEnabled()); |
121 | 122 |
122 // InternalCallback is an implementation detail, rather than an experimental
feature, and should never be exposed to the web. | 123 // InternalCallback is an implementation detail, rather than an experimental
feature, and should never be exposed to the web. |
123 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyInternalCallback, false)
; | 124 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyInternalCallback, false)
; |
124 } | 125 } |
125 | 126 |
126 static BoolVector& propertySwitches() | 127 static BoolVector& propertySwitches() |
127 { | 128 { |
128 static BoolVector* switches = 0; | 129 static BoolVector* switches = 0; |
129 if (!switches) { | 130 if (!switches) { |
130 switches = new BoolVector; | 131 switches = new BoolVector; |
(...skipping 29 matching lines...) Expand all Loading... |
160 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 161 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
161 { | 162 { |
162 for (unsigned i = 0; i < propertyCount; i++) { | 163 for (unsigned i = 0; i < propertyCount; i++) { |
163 CSSPropertyID property = properties[i]; | 164 CSSPropertyID property = properties[i]; |
164 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 165 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
165 outVector.append(property); | 166 outVector.append(property); |
166 } | 167 } |
167 } | 168 } |
168 | 169 |
169 } // namespace WebCore | 170 } // namespace WebCore |
OLD | NEW |