Debug build fix after r164401. Removed a bogus assertion in comparePositions.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Feb 2014 01:16:56 +0000 (01:16 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Feb 2014 01:16:56 +0000 (01:16 +0000)
When either position is anchored at a detached node, they don't have a tree scope in common.

* editing/htmlediting.cpp:
(WebCore::comparePositions):

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

Source/WebCore/ChangeLog
Source/WebCore/editing/htmlediting.cpp

index af4d9ccd17cf275df8500cd958552930b61c35b4..f1785b995de0ebff4a28c399c9bb06eeddb3aa47 100644 (file)
@@ -1,3 +1,11 @@
+2014-02-19  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Debug build fix after r164401. Removed a bogus assertion in comparePositions.
+        When either position is anchored at a detached node, they don't have a tree scope in common.
+
+        * editing/htmlediting.cpp:
+        (WebCore::comparePositions):
+
 2014-02-19  Ryosuke Niwa  <rniwa@webkit.org>
 
         fieldset:disabled > legend:first-child legend input should not be disabled
index 3b7276572d43743cd75bbd9c76f968000512c204..fedd8c7ab196299b4f0c880f5413a15b97d15392 100644 (file)
@@ -71,7 +71,6 @@ int comparePositions(const Position& a, const Position& b)
 {
     TreeScope* commonScope = commonTreeScope(a.containerNode(), b.containerNode());
 
-    ASSERT(commonScope);
     if (!commonScope)
         return 0;