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