25 #include "wtf/Platform.h"
39 SVGStyleElement::SVGStyleElement(
const QualifiedName& tagName, Document* doc)
40 : SVGElement(tagName, doc)
41 , m_createdByParser(false)
45 DOMString SVGStyleElement::xmlspace()
const
48 return getAttribute(ATTR_XML_SPACE);
51 void SVGStyleElement::setXmlspace(
const DOMString&, ExceptionCode& ec)
53 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
56 const DOMString SVGStyleElement::type()
const
59 DOMString n = getAttribute(ATTR_TYPE);
63 void SVGStyleElement::setType(
const DOMString&, ExceptionCode& ec)
65 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
68 const DOMString SVGStyleElement::media()
const
71 DOMString n = getAttribute(ATTR_MEDIA);
75 void SVGStyleElement::setMedia(
const DOMString&, ExceptionCode& ec)
77 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
80 String SVGStyleElement::title()
const
82 return getAttribute(ATTR_TITLE);
85 void SVGStyleElement::setTitle(
const DOMString&, ExceptionCode& ec)
87 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
90 void SVGStyleElement::parseMappedAttribute(MappedAttribute* attr)
92 kDebug() <<
"parse: " << attr->id() << attr->localName() << attr->value() << endl;
93 if (attr->id() == ATTR_TITLE && m_sheet)
96 SVGElement::parseMappedAttribute(attr);
99 void SVGStyleElement::finishParsingChildren()
102 m_createdByParser =
false;
103 SVGElement::finishParsingChildren();
106 void SVGStyleElement::insertedIntoDocument()
108 SVGElement::insertedIntoDocument();
113 kDebug() <<
"not implemented" << endl;
116 void SVGStyleElement::removedFromDocument()
118 SVGElement::removedFromDocument();
121 kDebug() <<
"not implemented" << endl;
124 void SVGStyleElement::childrenChanged(
bool changedByParser, Node* beforeChange, Node* afterChange,
int childCountDelta)
126 Q_UNUSED(changedByParser);
127 Q_UNUSED(beforeChange);
128 Q_UNUSED(afterChange);
129 Q_UNUSED(childCountDelta);
131 SVGElement::childrenChanged();
134 kDebug() <<
"not implemented" << endl;
137 StyleSheet* SVGStyleElement::sheet()
143 bool SVGStyleElement::sheetLoaded()
146 document()->styleSheetLoaded();
151 quint32 SVGStyleElement::id()
const
159 #endif // ENABLE(SVG)
DOM::QualifiedName styleTag
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString defaultValue(const QString &t)