[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/khtml-svg/xml
From: Nikolas Zimmermann <wildfox () kde ! org>
Date: 2006-03-27 15:44:03
Message-ID: 1143474243.836860.23395.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 523190 by wildfox:
Fix another thing, which would have prevented me to sleep tonite.
getAttrName() & getTagName() worked fine though caching failed...
-> tag & attr cache dict was too small.
We may need to adjust the starting point for the 'svg css props'/
'svg css values'/'svg tags'/'svg attrs' though, as the dict is way
larger than before now.
CCMAIL: buis@kde.org
M +14 -2 dom_docimpl.cpp
--- branches/work/khtml-svg/xml/dom_docimpl.cpp #523189:523190
@@ -348,9 +348,21 @@
pMode = Strict;
hMode = XHtml;
m_textColor = "#000000";
- m_attrMap = new IdNameMapping(ATTR_LAST_ATTR+1);
- m_elementMap = new IdNameMapping(ID_LAST_TAG+1);
+
+ unsigned long lastTag = ID_LAST_TAG;
+ unsigned long lastAttr = ATTR_LAST_ATTR;
+
+#if SVG_SUPPORT
+ // FIXME: Because SVGID_ & SVGATTR_ starts from 10001,
+ // these maps will be waaaay larger than before. hmm.
+ lastTag = SVGID_LAST_TAG;
+ lastAttr = SVGATTR_LAST_ATTR;
+#endif
+
+ m_attrMap = new IdNameMapping(lastAttr + 1);
+ m_elementMap = new IdNameMapping(lastTag + 1);
m_namespaceMap = new IdNameMapping(2);
+
QString xhtml(XHTML_NAMESPACE);
m_namespaceMap->names.insert(noNamespace, new DOMStringImpl(""));
m_namespaceMap->names.insert(xhtmlNamespace, new DOMStringImpl(xhtml.unicode(), xhtml.length()));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic