Пример #1
0
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;
}
Пример #2
0
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;
}