void RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyID propertyId, bool enable) { size_t propertyIndex = indexForProperty(propertyId); if (enable) propertySwitches().set(propertyIndex); else propertySwitches().clear(propertyIndex); }
bool RuntimeCSSEnabled::isCSSPropertyEnabled(CSSPropertyID propertyId) { // Internal properties shouldn't be exposed to the web // so they are considered to be always disabled. if (isInternalProperty(propertyId)) return false; return propertySwitches().get(indexForProperty(propertyId)); }
void RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyID propertyId, bool enable) { propertySwitches()[indexForProperty(propertyId)] = enable; }
bool RuntimeCSSEnabled::isCSSPropertyEnabled(CSSPropertyID propertyId) { return propertySwitches()[indexForProperty(propertyId)]; }