예제 #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);
}
예제 #2
0
void SVGElementInstance::setOnselectstart(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().selectstartEvent, eventListener);
}
예제 #3
0
EventListener* SVGElementInstance::onselectstart() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().selectstartEvent);
}
예제 #4
0
EventListener* SVGElementInstance::ondragleave() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().dragleaveEvent);
}
예제 #5
0
void SVGElementInstance::setOnbeforepaste(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().beforepasteEvent, eventListener);
}
예제 #6
0
EventListener* SVGElementInstance::onbeforepaste() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().beforepasteEvent);
}
예제 #7
0
ScriptExecutionContext* SVGElementInstance::scriptExecutionContext() const
{
    if (SVGElement* element = correspondingElement())
        return element->scriptExecutionContext();
    return 0;
}
예제 #8
0
EventListener* SVGElementInstance::onkeypress() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().keypressEvent);
}
예제 #9
0
void SVGElementInstance::setOncontextmenu(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().contextmenuEvent, eventListener);
}
예제 #10
0
EventListener* SVGElementInstance::ondblclick() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().dblclickEvent);
}
예제 #11
0
EventListener* SVGElementInstance::oncontextmenu() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().contextmenuEvent);
}
예제 #12
0
void SVGElementInstance::removeEventListener(const AtomicString& eventType, EventListener* listener, bool useCapture)
{
    if (SVGElement* element = correspondingElement())
        element->removeEventListener(eventType, listener, useCapture);
}
예제 #13
0
void SVGElementInstance::addEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture)
{
    if (SVGElement* element = correspondingElement())
        element->addEventListener(eventType, listener, useCapture);
}
예제 #14
0
EventListener* SVGElementInstance::onunload() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().unloadEvent);
}
예제 #15
0
EventListener* SVGElementInstance::onmousewheel() const
{
    return correspondingElement()->inlineEventListenerForType(eventNames().mousewheelEvent);
}
예제 #16
0
void SVGElementInstance::setOnunload(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().unloadEvent, eventListener);
}
예제 #17
0
void SVGElementInstance::setOnmousewheel(PassRefPtr<EventListener> eventListener)
{
    correspondingElement()->setInlineEventListenerForType(eventNames().mousewheelEvent, eventListener);
}
예제 #18
0
void SVGElement::attach(const AttachContext& context)
{
    Element::attach(context);
    if (SVGElement* element = correspondingElement())
        element->mapInstanceToElement(this);
}
예제 #19
0
void SVGElement::detach(const AttachContext& context)
{
    Element::detach(context);
    if (SVGElement* element = correspondingElement())
        element->removeInstanceMapping(this);
}