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); }
void SVGElementInstance::setOnselectstart(PassRefPtr<EventListener> eventListener) { correspondingElement()->setInlineEventListenerForType(eventNames().selectstartEvent, eventListener); }
EventListener* SVGElementInstance::onselectstart() const { return correspondingElement()->inlineEventListenerForType(eventNames().selectstartEvent); }
EventListener* SVGElementInstance::ondragleave() const { return correspondingElement()->inlineEventListenerForType(eventNames().dragleaveEvent); }
void SVGElementInstance::setOnbeforepaste(PassRefPtr<EventListener> eventListener) { correspondingElement()->setInlineEventListenerForType(eventNames().beforepasteEvent, eventListener); }
EventListener* SVGElementInstance::onbeforepaste() const { return correspondingElement()->inlineEventListenerForType(eventNames().beforepasteEvent); }
ScriptExecutionContext* SVGElementInstance::scriptExecutionContext() const { if (SVGElement* element = correspondingElement()) return element->scriptExecutionContext(); return 0; }
EventListener* SVGElementInstance::onkeypress() const { return correspondingElement()->inlineEventListenerForType(eventNames().keypressEvent); }
void SVGElementInstance::setOncontextmenu(PassRefPtr<EventListener> eventListener) { correspondingElement()->setInlineEventListenerForType(eventNames().contextmenuEvent, eventListener); }
EventListener* SVGElementInstance::ondblclick() const { return correspondingElement()->inlineEventListenerForType(eventNames().dblclickEvent); }
EventListener* SVGElementInstance::oncontextmenu() const { return correspondingElement()->inlineEventListenerForType(eventNames().contextmenuEvent); }
void SVGElementInstance::removeEventListener(const AtomicString& eventType, EventListener* listener, bool useCapture) { if (SVGElement* element = correspondingElement()) element->removeEventListener(eventType, listener, useCapture); }
void SVGElementInstance::addEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture) { if (SVGElement* element = correspondingElement()) element->addEventListener(eventType, listener, useCapture); }
EventListener* SVGElementInstance::onunload() const { return correspondingElement()->inlineEventListenerForType(eventNames().unloadEvent); }
EventListener* SVGElementInstance::onmousewheel() const { return correspondingElement()->inlineEventListenerForType(eventNames().mousewheelEvent); }
void SVGElementInstance::setOnunload(PassRefPtr<EventListener> eventListener) { correspondingElement()->setInlineEventListenerForType(eventNames().unloadEvent, eventListener); }
void SVGElementInstance::setOnmousewheel(PassRefPtr<EventListener> eventListener) { correspondingElement()->setInlineEventListenerForType(eventNames().mousewheelEvent, eventListener); }
void SVGElement::attach(const AttachContext& context) { Element::attach(context); if (SVGElement* element = correspondingElement()) element->mapInstanceToElement(this); }
void SVGElement::detach(const AttachContext& context) { Element::detach(context); if (SVGElement* element = correspondingElement()) element->removeInstanceMapping(this); }