25 #include "wtf/Platform.h"
39 SVGStyleElement::SVGStyleElement(
const QualifiedName& tagName, Document* doc)
40 : SVGElement(tagName, doc)
41 , m_createdByParser(false)
46 DOMString SVGStyleElement::xmlspace()
const
49 return getAttribute(ATTR_XML_SPACE);
52 void SVGStyleElement::setXmlspace(
const DOMString&, ExceptionCode& ec)
54 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
57 const DOMString SVGStyleElement::type()
const
60 DOMString n = getAttribute(ATTR_TYPE);
64 void SVGStyleElement::setType(
const DOMString&, ExceptionCode& ec)
66 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
69 const DOMString SVGStyleElement::media()
const
72 DOMString n = getAttribute(ATTR_MEDIA);
76 void SVGStyleElement::setMedia(
const DOMString&, ExceptionCode& ec)
78 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
81 String SVGStyleElement::title()
const
83 return getAttribute(ATTR_TITLE);
86 void SVGStyleElement::setTitle(
const DOMString&, ExceptionCode& ec)
88 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
91 void 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);
100 void SVGStyleElement::finishParsingChildren()
103 m_createdByParser =
false;
104 SVGElement::finishParsingChildren();
107 void SVGStyleElement::insertedIntoDocument()
109 SVGElement::insertedIntoDocument();
114 kDebug() <<
"not implemented" << endl;
117 void SVGStyleElement::removedFromDocument()
119 SVGElement::removedFromDocument();
122 kDebug() <<
"not implemented" << endl;
125 void 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;
138 StyleSheet* SVGStyleElement::sheet()
144 bool SVGStyleElement::sheetLoaded()
147 document()->styleSheetLoaded();
152 quint32 SVGStyleElement::id()
const
160 #endif // ENABLE(SVG)
DOM::QualifiedName styleTag
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString defaultValue(const QString &t)