[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kdom (silent)
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2005-12-03 19:40:36
Message-ID: 1133638836.905224.25397.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 485320 by buis:

SVN_SILENT: use more xml names.


 M  +4 -3      core/NodeImpl.cpp  
 M  +2 -3      css/CSSStyleSelector.cpp  


--- trunk/kdenonbeta/kdom/core/NodeImpl.cpp #485319:485320
@@ -41,6 +41,7 @@
 #include "NamedAttrMapImpl.h"
 #include "MutationEventImpl.h"
 #include "DOMImplementationImpl.h"
+#include "XMLNames.h"
 //Added by qt3to4:
 #include <Q3PtrList>
 #include <qtextstream.h>
@@ -1350,11 +1351,11 @@
         case ELEMENT_NODE:
         {
             const ElementImpl *me = static_cast<const ElementImpl *>(this);
-            DOMString mine(me->getAttribute(new DOMStringImpl("xml:base")));
-            myBase = mine.string();
+            const AtomicString &mine = me->getAttribute(XMLNames::baseAttr);
+            myBase = mine.qstring();
 
             if(!KURL::isRelativeURL(myBase))
-                return KURL(mine.string());
+                return KURL(myBase);
 
             break;
         }
--- trunk/kdenonbeta/kdom/css/CSSStyleSelector.cpp #485319:485320
@@ -69,6 +69,7 @@
 #include "AtomicString.h"
 #include "AtomicStringList.h"
 #include "XLinkNames.h"
+#include "XMLNames.h"
 
 #include "cssvalues.h"
 #include "cssproperties.h"
@@ -4225,9 +4226,7 @@
 
 DOMStringImpl *CSSStyleSelector::getLangAttribute(ElementImpl *e)
 {
-    // TODO: Check NS_XML & friends...
-	int ignoreException;
-    return e->getAttributeNS(NS_XML.impl(), DOMString("xml:lang").impl(), ignoreException);
+    return e->getAttribute(XMLNames::langAttr).impl();
 }
 
 // vim:ts=4:noet
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic