25#include "wtf/Platform.h"
39SVGStyleElement::SVGStyleElement(
const QualifiedName& tagName, Document* doc)
40 : SVGElement(tagName, doc)
41 , m_createdByParser(false)
46DOMString SVGStyleElement::xmlspace()
const
49 return getAttribute(ATTR_XML_SPACE);
52void SVGStyleElement::setXmlspace(
const DOMString&, ExceptionCode& ec)
54 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
57const DOMString SVGStyleElement::type()
const
60 DOMString n = getAttribute(ATTR_TYPE);
64void SVGStyleElement::setType(
const DOMString&, ExceptionCode& ec)
66 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
69const DOMString SVGStyleElement::media()
const
72 DOMString n = getAttribute(ATTR_MEDIA);
76void SVGStyleElement::setMedia(
const DOMString&, ExceptionCode& ec)
78 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
81String SVGStyleElement::title()
const
83 return getAttribute(ATTR_TITLE);
86void SVGStyleElement::setTitle(
const DOMString&, ExceptionCode& ec)
88 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
91void SVGStyleElement::parseMappedAttribute(MappedAttribute* attr)
93 kDebug() <<
"parse: " << attr->id() << attr->localName() << attr->value() << endl;
94 if (attr->id() == ATTR_TITLE && m_sheet)
97 SVGElement::parseMappedAttribute(attr);
100void SVGStyleElement::finishParsingChildren()
103 m_createdByParser =
false;
104 SVGElement::finishParsingChildren();
107void SVGStyleElement::insertedIntoDocument()
109 SVGElement::insertedIntoDocument();
114 kDebug() <<
"not implemented" << endl;
117void SVGStyleElement::removedFromDocument()
119 SVGElement::removedFromDocument();
122 kDebug() <<
"not implemented" << endl;
125void SVGStyleElement::childrenChanged(
bool changedByParser, Node* beforeChange, Node* afterChange,
int childCountDelta)
127 Q_UNUSED(changedByParser);
128 Q_UNUSED(beforeChange);
129 Q_UNUSED(afterChange);
130 Q_UNUSED(childCountDelta);
132 SVGElement::childrenChanged();
135 kDebug() <<
"not implemented" << endl;
138StyleSheet* SVGStyleElement::sheet()
144bool SVGStyleElement::sheetLoaded()
147 document()->styleSheetLoaded();
152quint32 SVGStyleElement::id()
const
154 return SVGNames::styleTag.id();
QString defaultValue(const QString &t)