Rolled out a couple of assertion-related changes I accidentally checked in.
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Mar 2005 15:39:05 +0000 (15:39 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Mar 2005 15:39:05 +0000 (15:39 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8792 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/khtml/editing/htmlediting.cpp

index 87a234a6236587ae776e74f43785229de98ab9b0..c3de16db87eca821b1156b2afed83621694049ab 100644 (file)
@@ -1268,10 +1268,7 @@ void AppendNodeCommand::doApply()
 
     int exceptionCode = 0;
     m_parentNode->appendChild(m_appendChild, exceptionCode);
-    if (exceptionCode != 0) {
-        ERROR("exceptionCode in AppendNodeCommand::doApply() was %d", exceptionCode);
-    }
-//    ASSERT(exceptionCode == 0);
+    ASSERT(exceptionCode == 0);
 }
 
 void AppendNodeCommand::doUnapply()
@@ -1872,8 +1869,7 @@ void ApplyStyleCommand::removeInlineStyle(CSSMutableStyleDeclarationImpl *style,
     ASSERT(end.isNotNull());
     ASSERT(start.node()->inDocument());
     ASSERT(end.node()->inDocument());
-//    ASSERT(RangeImpl::compareBoundaryPoints(start, end) < 0);
-    ASSERT(RangeImpl::compareBoundaryPoints(start, end) <= 0);
+    ASSERT(RangeImpl::compareBoundaryPoints(start, end) < 0);
     
     CSSValueImpl *textDecorationSpecialProperty = style->getPropertyCSSValue(CSS_PROP__KHTML_TEXT_DECORATIONS_IN_EFFECT);