Reviewed by John
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jan 2005 00:01:58 +0000 (00:01 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jan 2005 00:01:58 +0000 (00:01 +0000)
        * khtml/editing/htmlediting.cpp:
        (khtml::InsertParagraphSeparatorCommand::applyStyleAfterInsertion): Small, cosmetic change John and I decided
        to do on my last checkin, but I forgot to do before landing.

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp

index fc1f8e973d1ab990e88a5fa49d1b5237fdee9eb8..e86be158a53884022cbbd82ca8f033d9f5b9519c 100644 (file)
@@ -1,3 +1,11 @@
+2005-01-19  Ken Kocienda  <kocienda@apple.com>
+
+        Reviewed by John
+
+        * khtml/editing/htmlediting.cpp:
+        (khtml::InsertParagraphSeparatorCommand::applyStyleAfterInsertion): Small, cosmetic change John and I decided
+        to do on my last checkin, but I forgot to do before landing.
+
 2005-01-19  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
index 196958c559e6fff911c10e4202828023a5b60da5..d168ec20d36b6a06df6483209206eb6ba0c5595f 100644 (file)
@@ -2596,11 +2596,7 @@ void InsertParagraphSeparatorCommand::applyStyleAfterInsertion()
 
     CSSComputedStyleDeclarationImpl endingStyle(endingSelection().start().node());
     endingStyle.diff(m_style);
-    if (!m_style->length()) {
-        m_style->deref();
-        m_style = 0;
-    }
-    else {
+    if (m_style->length() > 0) {
         applyStyle(m_style);
     }
 }