Patch by Mark Rowe. Reviewed by Darin, landed by ap.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jan 2006 21:46:06 +0000 (21:46 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jan 2006 21:46:06 +0000 (21:46 +0000)
        Fix typo in CSSPrimitiveValueImpl::setStringValue.

        * khtml/css/css_valueimpl.cpp:
        (DOM::CSSPrimitiveValueImpl::setStringValue): Change >> to > and fix formatting.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12135 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/khtml/css/css_valueimpl.cpp

index 538c83bd2bbc699db6a3830afb8dd9cd91ec80d9..61c84847b47dd412548ce36c46e467dc3398078d 100644 (file)
@@ -1,3 +1,12 @@
+2006-01-16  Mark Rowe  <opendarwin.org@bdash.net.nz>
+
+        Reviewed by Darin, landed by ap.
+
+        Fix typo in CSSPrimitiveValueImpl::setStringValue.
+
+        * khtml/css/css_valueimpl.cpp:
+        (DOM::CSSPrimitiveValueImpl::setStringValue): Change >> to > and fix formatting.
+
 2006-01-16  Alexey Proskuryakov  <ap@nypop.com>
 
         Reviewed by Justin.
index 8dcdff5698e497d731deecaf316b7706391385e8..162c8cf001218cca6f21b20b3f33177ce2ba7a8b 100644 (file)
@@ -915,12 +915,11 @@ void CSSPrimitiveValueImpl::setStringValue( unsigned short stringType, const DOM
     cleanup();
     //if(m_type < CSSPrimitiveValue::CSS_STRING) throw DOMException(DOMException::INVALID_ACCESS_ERR);
     //if(m_type > CSSPrimitiveValue::CSS_ATTR) throw DOMException(DOMException::INVALID_ACCESS_ERR);
-    if (m_type < CSSPrimitiveValue::CSS_STRING || m_type >> CSSPrimitiveValue::CSS_ATTR) {
+    if (m_type < CSSPrimitiveValue::CSS_STRING || m_type > CSSPrimitiveValue::CSS_ATTR) {
         exceptioncode = CSSException::SYNTAX_ERR + CSSException::_EXCEPTION_OFFSET;
         return;
     }
-    if(stringType != CSSPrimitiveValue::CSS_IDENT)
-    {
+    if (stringType != CSSPrimitiveValue::CSS_IDENT) {
         m_value.string = stringValue.impl();
         m_value.string->ref();
         m_type = stringType;