static v8::Handle<v8::Value> stopCallback(const v8::Arguments& args) { INC_STATS("DOM.HTMLMarqueeElement.stop"); HTMLMarqueeElement* imp = V8HTMLMarqueeElement::toNative(args.Holder()); imp->stop(); return v8::Handle<v8::Value>(); }
void setJSHTMLMarqueeElementScrollDelay(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(thisObject); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); ExceptionCode ec = 0; imp->setScrollDelay(value.toInt32(exec), ec); setDOMException(exec, ec); }
JSValue jsHTMLMarqueeElementWidth(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::widthAttr)); return result; }
JSValue jsHTMLMarqueeElementVspace(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); JSValue result = jsNumber(std::max(0, imp->getIntegralAttribute(WebCore::HTMLNames::vspaceAttr))); return result; }
JSValue jsHTMLMarqueeElementTrueSpeed(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::truespeedAttr)); return result; }
JSValue jsHTMLMarqueeElementScrollDelay(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); JSValue result = jsNumber(imp->scrollDelay()); return result; }
JSValue* jsHTMLMarqueeElementPrototypeFunctionStop(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSHTMLMarqueeElement::s_info)) return throwError(exec, TypeError); JSHTMLMarqueeElement* castedThisObj = static_cast<JSHTMLMarqueeElement*>(thisValue); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThisObj->impl()); imp->stop(); return jsUndefined(); }
int RenderMarquee::marqueeSpeed() const { int result = m_layer->renderer()->style()->marqueeSpeed(); Node* n = m_layer->renderer()->node(); if (n && n->hasTagName(marqueeTag)) { HTMLMarqueeElement* marqueeElt = static_cast<HTMLMarqueeElement*>(n); result = max(result, marqueeElt->minimumDelay()); } return result; }
int RenderMarquee::marqueeSpeed() const { int result = style()->marqueeSpeed(); if (Node* node = this->node()) { ASSERT(node->hasTagName(marqueeTag)); HTMLMarqueeElement* marqueeElt = static_cast<HTMLMarqueeElement*>(node); result = max(result, marqueeElt->minimumDelay()); } return result; }
EncodedJSValue JSC_HOST_CALL jsHTMLMarqueeElementPrototypeFunctionStop(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSHTMLMarqueeElement::s_info)) return throwVMTypeError(exec); JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSHTMLMarqueeElement::s_info); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); imp->stop(); return JSValue::encode(jsUndefined()); }
void setJSHTMLMarqueeElementWidth(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(thisObject); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); imp->setAttribute(WebCore::HTMLNames::widthAttr, valueToStringWithNullCheck(exec, value)); }
void setJSHTMLMarqueeElementVspace(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(thisObject); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); imp->setUnsignedIntegralAttribute(WebCore::HTMLNames::vspaceAttr, value.toUInt32(exec)); }
void setJSHTMLMarqueeElementTrueSpeed(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLMarqueeElement* castedThis = static_cast<JSHTMLMarqueeElement*>(thisObject); HTMLMarqueeElement* imp = static_cast<HTMLMarqueeElement*>(castedThis->impl()); imp->setBooleanAttribute(WebCore::HTMLNames::truespeedAttr, value.toBoolean(exec)); }
HTMLMarqueeElement* HTMLMarqueeElement::create(Document& document) { HTMLMarqueeElement* marqueeElement = new HTMLMarqueeElement(document); marqueeElement->ensureUserAgentShadowRoot(); return marqueeElement; }