| 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 |
| 122 // InternalCallback is an implementation detail, rather than an experimental
feature, and should never be exposed to the web. |
| 123 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyInternalCallback, false)
; |
| 121 } | 124 } |
| 122 | 125 |
| 123 static BoolVector& propertySwitches() | 126 static BoolVector& propertySwitches() |
| 124 { | 127 { |
| 125 static BoolVector* switches = 0; | 128 static BoolVector* switches = 0; |
| 126 if (!switches) { | 129 if (!switches) { |
| 127 switches = new BoolVector; | 130 switches = new BoolVector; |
| 128 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). | 131 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las
tCSSProperty range (eg. CSSPropertyVariable). |
| 129 switches->fill(true, lastCSSProperty + 1); | 132 switches->fill(true, lastCSSProperty + 1); |
| 130 setPropertySwitchesFromRuntimeFeatures(); | 133 setPropertySwitchesFromRuntimeFeatures(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 157 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 160 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
| 158 { | 161 { |
| 159 for (unsigned i = 0; i < propertyCount; i++) { | 162 for (unsigned i = 0; i < propertyCount; i++) { |
| 160 CSSPropertyID property = properties[i]; | 163 CSSPropertyID property = properties[i]; |
| 161 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 164 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
| 162 outVector.append(property); | 165 outVector.append(property); |
| 163 } | 166 } |
| 164 } | 167 } |
| 165 | 168 |
| 166 } // namespace WebCore | 169 } // namespace WebCore |
| OLD | NEW |