Ejemplo n.º 1
0
void SVGPathElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{
    SVGAnimatedPropertyBase* property = propertyFromAttribute(name);
    if (property == m_path) {
        SVGAnimatedPath* path = this->path();
        // If this is a <use> instance, return the referenced path to maximize geometry sharing.
        if (const SVGElement* element = correspondingElement())
            path = toSVGPathElement(element)->path();
        addPropertyToPresentationAttributeStyle(style, CSSPropertyD, path->currentValue()->pathValue());
        return;
    }
    SVGGeometryElement::collectStyleForPresentationAttribute(name, value, style);
}
Ejemplo n.º 2
0
void SVGElementInstance::setOnselectstart(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().selectstartEvent, eventListener);
}
Ejemplo n.º 3
0
EventListener* SVGElementInstance::onselectstart() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().selectstartEvent);
}
Ejemplo n.º 4
0
EventListener* SVGElementInstance::ondragleave() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().dragleaveEvent);
}
Ejemplo n.º 5
0
void SVGElementInstance::setOnbeforepaste(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().beforepasteEvent, eventListener);
}
Ejemplo n.º 6
0
EventListener* SVGElementInstance::onbeforepaste() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().beforepasteEvent);
}
Ejemplo n.º 7
0
ScriptExecutionContext* SVGElementInstance::scriptExecutionContext() const
{
    if (SVGElement* element = correspondingElement())
        return element->scriptExecutionContext();
    return 0;
}
Ejemplo n.º 8
0
EventListener* SVGElementInstance::onkeypress() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().keypressEvent);
}
Ejemplo n.º 9
0
void SVGElementInstance::setOncontextmenu(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().contextmenuEvent, eventListener);
}
Ejemplo n.º 10
0
EventListener* SVGElementInstance::ondblclick() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().dblclickEvent);
}
Ejemplo n.º 11
0
EventListener* SVGElementInstance::oncontextmenu() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().contextmenuEvent);
}
Ejemplo n.º 12
0
void SVGElementInstance::removeEventListener(const AtomicString& eventType, EventListener* listener, bool useCapture)
{
    if (SVGElement* element = correspondingElement())
        element->removeEventListener(eventType, listener, useCapture);
}
Ejemplo n.º 13
0
void SVGElementInstance::addEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture)
{
    if (SVGElement* element = correspondingElement())
        element->addEventListener(eventType, listener, useCapture);
}
Ejemplo n.º 14
0
EventListener* SVGElementInstance::onunload() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().unloadEvent);
}
Ejemplo n.º 15
0
EventListener* SVGElementInstance::onmousewheel() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().mousewheelEvent);
}
Ejemplo n.º 16
0
void SVGElementInstance::setOnunload(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().unloadEvent, eventListener);
}
Ejemplo n.º 17
0
void SVGElementInstance::setOnmousewheel(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().mousewheelEvent, eventListener);
}
Ejemplo n.º 18
0
void SVGElement::attach(const AttachContext& context)
{
    Element::attach(context);
    if (SVGElement* element = correspondingElement())
        element->mapInstanceToElement(this);
}
Ejemplo n.º 19
0
void SVGElement::detach(const AttachContext& context)
{
    Element::detach(context);
    if (SVGElement* element = correspondingElement())
        element->removeInstanceMapping(this);
}