本文整理汇总了C++中HTMLMarqueeElement类的典型用法代码示例。如果您正苦于以下问题:C++ HTMLMarqueeElement类的具体用法?C++ HTMLMarqueeElement怎么用?C++ HTMLMarqueeElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HTMLMarqueeElement类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: stopCallback
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>();
}
示例2: setJSHTMLMarqueeElementScrollDelay
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);
}
示例3: jsHTMLMarqueeElementWidth
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;
}
示例4: jsHTMLMarqueeElementVspace
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;
}
示例5: jsHTMLMarqueeElementTrueSpeed
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;
}
示例6: jsHTMLMarqueeElementScrollDelay
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;
}
示例7: jsHTMLMarqueeElementPrototypeFunctionStop
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();
}
示例8: marqueeSpeed
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;
}
示例9: style
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;
}
示例10: jsHTMLMarqueeElementPrototypeFunctionStop
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());
}
示例11: setJSHTMLMarqueeElementWidth
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));
}
示例12: setJSHTMLMarqueeElementVspace
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));
}
示例13: setJSHTMLMarqueeElementTrueSpeed
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));
}
示例14: HTMLMarqueeElement
HTMLMarqueeElement* HTMLMarqueeElement::create(Document& document) {
HTMLMarqueeElement* marqueeElement = new HTMLMarqueeElement(document);
marqueeElement->ensureUserAgentShadowRoot();
return marqueeElement;
}