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

List:       kde-commits
Subject:    kdenonbeta/khtml2/impl
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2005-06-01 21:12:47
Message-ID: 1117660367.452173.28002.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 420945 by buis:

Do not use "using namespace KDOM" here.


 M  +7 -8      HTMLBRElementImpl.cc  
 M  +4 -5      HTMLFontElementImpl.cc  


--- trunk/kdenonbeta/khtml2/impl/HTMLBRElementImpl.cc #420944:420945
@@ -37,9 +37,8 @@
 #include "htmlattrs.h"
 
 using namespace KHTML;
-using namespace KDOM;
 
-HTMLBRElementImpl::HTMLBRElementImpl(DocumentImpl *doc) : HTMLElementImpl(doc)
+HTMLBRElementImpl::HTMLBRElementImpl(KDOM::DocumentImpl *doc) : HTMLElementImpl(doc)
 {
 }
 
@@ -48,18 +47,18 @@
 }
 
 
-NodeImpl::Id HTMLBRElementImpl::id() const
+KDOM::NodeImpl::Id HTMLBRElementImpl::id() const
 {
 	return ID_BR;
 }
 
-void HTMLBRElementImpl::parseAttribute(AttributeImpl *attr)
+void HTMLBRElementImpl::parseAttribute(KDOM::AttributeImpl *attr)
 {
 	switch(attr->id())
 	{
 		case ATTR_CLEAR:
 		{
-			DOMString str = attr->value().lower();
+			KDOM::DOMString str = attr->value().lower();
 			if(str.isEmpty()) str = "none";
 			else if(strcmp (str, "all") == 0) str = "both";
 			addCSSProperty(CSS_PROP_CLEAR, str);
@@ -78,9 +77,9 @@
 
 	if(parentNode()->renderer())
 	{
-		RenderStyle *style = getDocument()->styleSelector()->styleForElement(this);
+		KDOM::RenderStyle *style = getDocument()->styleSelector()->styleForElement(this);
 		style->ref();
-		if(style->display() != DS_NONE)
+		if(style->display() != KDOM::DS_NONE)
 		{
 			//m_renderer = new (getDocument()->renderArena()) RenderBR(this);
 			//m_renderer->setStyle(style);
@@ -89,7 +88,7 @@
 		style->deref();
 	}
 
-	NodeImpl::attach();
+	KDOM::NodeImpl::attach();
 }
 
 // vim:ts=4:noet
--- trunk/kdenonbeta/khtml2/impl/HTMLFontElementImpl.cc #420944:420945
@@ -32,9 +32,8 @@
 #include "htmlattrs.h"
 
 using namespace KHTML;
-using namespace KDOM;
 
-HTMLFontElementImpl::HTMLFontElementImpl(DocumentImpl *doc) : HTMLElementImpl(doc)
+HTMLFontElementImpl::HTMLFontElementImpl(KDOM::DocumentImpl *doc) : HTMLElementImpl(doc)
 {
 }
 
@@ -43,18 +42,18 @@
 }
 
 
-NodeImpl::Id HTMLFontElementImpl::id() const
+KDOM::NodeImpl::Id HTMLFontElementImpl::id() const
 {
 	return ID_FONT;
 }
 
-void HTMLFontElementImpl::parseAttribute(AttributeImpl *attr)
+void HTMLFontElementImpl::parseAttribute(KDOM::AttributeImpl *attr)
 {
 	switch(attr->id())
 	{
 		case ATTR_SIZE:
 		{
-			DOMStringImpl* v = attr->val();
+			KDOM::DOMStringImpl* v = attr->val();
 			if(v)
 			{
 				const QChar* s = v->unicode();
[prev in list] [next in list] [prev in thread] [next in thread] 

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