Reviewed by Richard
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Oct 2004 23:35:19 +0000 (23:35 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Oct 2004 23:35:19 +0000 (23:35 +0000)
        * khtml/css/css_computedstyle.cpp:
        (DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue): Add support to computed style
        for getting -khtml-line-break and -khml-nbsp-mode.

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/css/css_computedstyle.cpp

index 1057cdafb48874f889821e76f9dfa37f3e824068..e9ec18944a7dfdc3ef64df4116c2cd8c8c62fd9f 100644 (file)
@@ -1,3 +1,11 @@
+2004-10-13  Ken Kocienda  <kocienda@apple.com>
+
+        Reviewed by Richard
+
+        * khtml/css/css_computedstyle.cpp:
+        (DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue): Add support to computed style
+        for getting -khtml-line-break and -khml-nbsp-mode.
+
 2004-10-13  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
 2004-10-13  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
index f12ca4a204da1541dce414ffd22312bc3ecaeffd..29ed3fb4e4af124b62a429b8a594756eaf172bd3 100644 (file)
@@ -733,6 +733,24 @@ CSSValueImpl *CSSComputedStyleDeclarationImpl::getPropertyCSSValue(int propertyI
         }
         ASSERT_NOT_REACHED();
         return 0;
         }
         ASSERT_NOT_REACHED();
         return 0;
+    case CSS_PROP__KHTML_LINE_BREAK:
+        switch (style->khtmlLineBreak()) {
+            case khtml::LBNORMAL:
+                return new CSSPrimitiveValueImpl(CSS_VAL_NORMAL);
+            case khtml::AFTER_WHITE_SPACE:
+                return new CSSPrimitiveValueImpl(CSS_VAL_AFTER_WHITE_SPACE);
+        }
+        ASSERT_NOT_REACHED();
+        return 0;
+    case CSS_PROP__KHTML_NBSP_MODE:
+        switch (style->nbspMode()) {
+            case khtml::NBNORMAL:
+                return new CSSPrimitiveValueImpl(CSS_VAL_NORMAL);
+            case khtml::SPACE:
+                return new CSSPrimitiveValueImpl(CSS_VAL_SPACE);
+        }
+        ASSERT_NOT_REACHED();
+        return 0;
     case CSS_PROP_Z_INDEX:
         // FIXME: unimplemented
         break;
     case CSS_PROP_Z_INDEX:
         // FIXME: unimplemented
         break;