Ejemplo n.º 1
0
JSValue jsWebKitCSSKeyframeRuleStyle(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSWebKitCSSKeyframeRule* castedThis = static_cast<JSWebKitCSSKeyframeRule*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    WebKitCSSKeyframeRule* imp = static_cast<WebKitCSSKeyframeRule*>(castedThis->impl());
    JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
    return result;
}
Ejemplo n.º 2
0
JSValue jsWebKitCSSKeyframeRuleKeyText(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSWebKitCSSKeyframeRule* castedThis = static_cast<JSWebKitCSSKeyframeRule*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    WebKitCSSKeyframeRule* imp = static_cast<WebKitCSSKeyframeRule*>(castedThis->impl());
    JSValue result = jsString(exec, imp->keyText());
    return result;
}
Ejemplo n.º 3
0
WebKitCSSKeyframesRule::~WebKitCSSKeyframesRule()
{
    for (unsigned i = 0; i < length(); ++i) {
        WebKitCSSKeyframeRule* rule = item(i);
        if (CSSMutableStyleDeclaration* style = rule->style())
            style->setParentRule(0);
        rule->setParentRule(0);
    }
}
Ejemplo n.º 4
0
void WebKitCSSKeyframesRule::deleteRule(const String& s)
{
    int i = findRuleIndex(s);
    if (i < 0)
        return;

    WebKitCSSKeyframeRule* rule = item(i);
    if (CSSMutableStyleDeclaration* style = rule->style())
        style->setParentRule(0);

    rule->setParentRule(0);
    m_lstCSSRules->deleteRule(i);
}
Ejemplo n.º 5
0
void setJSWebKitCSSKeyframeRuleKeyText(ExecState* exec, JSObject* thisObject, JSValue value)
{
    JSWebKitCSSKeyframeRule* castedThis = static_cast<JSWebKitCSSKeyframeRule*>(thisObject);
    WebKitCSSKeyframeRule* imp = static_cast<WebKitCSSKeyframeRule*>(castedThis->impl());
    imp->setKeyText(ustringToString(value.toString(exec)));
}