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));
}
Пример #3
0
void RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyID propertyId, bool enable)
{
    propertySwitches()[indexForProperty(propertyId)] = enable;
}
Пример #4
0
bool RuntimeCSSEnabled::isCSSPropertyEnabled(CSSPropertyID propertyId)
{
    return propertySwitches()[indexForProperty(propertyId)];
}