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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 CSSPropertyAnimationDelay, | 91 CSSPropertyAnimationDelay, |
92 CSSPropertyAnimationIterationCount, | 92 CSSPropertyAnimationIterationCount, |
93 CSSPropertyAnimationDirection, | 93 CSSPropertyAnimationDirection, |
94 CSSPropertyAnimationFillMode, | 94 CSSPropertyAnimationFillMode, |
95 CSSPropertyAnimationPlayState | 95 CSSPropertyAnimationPlayState |
96 }; | 96 }; |
97 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); | 97 setCSSPropertiesEnabled(animationProperties, WTF_ARRAY_LENGTH(animationPrope
rties), RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()); |
98 | 98 |
99 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); | 99 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
bledFeatures::cssCompositingEnabled()); |
100 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyIsolation, RuntimeEnable
dFeatures::cssCompositingEnabled()); | 100 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyIsolation, RuntimeEnable
dFeatures::cssCompositingEnabled()); |
101 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab
ledFeatures::cssTouchActionEnabled()); | |
102 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchActionDelay, Runtim
eEnabledFeatures::cssTouchActionDelayEnabled()); | 101 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchActionDelay, Runtim
eEnabledFeatures::cssTouchActionDelayEnabled()); |
103 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); | 102 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMaskSourceType, RuntimeE
nabledFeatures::cssMaskSourceTypeEnabled()); |
104 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyColumnFill, RuntimeEnabl
edFeatures::regionBasedColumnsEnabled()); | 103 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyColumnFill, RuntimeEnabl
edFeatures::regionBasedColumnsEnabled()); |
105 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyScrollBehavior, RuntimeE
nabledFeatures::cssomSmoothScrollEnabled()); | 104 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyScrollBehavior, RuntimeE
nabledFeatures::cssomSmoothScrollEnabled()); |
106 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyWillChange, RuntimeEnabl
edFeatures::cssWillChangeEnabled()); | 105 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyWillChange, RuntimeEnabl
edFeatures::cssWillChangeEnabled()); |
107 | 106 |
108 // InternalCallback is an implementation detail, rather than an experimental
feature, and should never be exposed to the web. | 107 // InternalCallback is an implementation detail, rather than an experimental
feature, and should never be exposed to the web. |
109 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyInternalCallback, false)
; | 108 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyInternalCallback, false)
; |
110 } | 109 } |
111 | 110 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 147 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
149 { | 148 { |
150 for (unsigned i = 0; i < propertyCount; i++) { | 149 for (unsigned i = 0; i < propertyCount; i++) { |
151 CSSPropertyID property = properties[i]; | 150 CSSPropertyID property = properties[i]; |
152 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 151 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
153 outVector.append(property); | 152 outVector.append(property); |
154 } | 153 } |
155 } | 154 } |
156 | 155 |
157 } // namespace blink | 156 } // namespace blink |
OLD | NEW |