Title: [93574] trunk/Source/WebCore
Revision
93574
Author
[email protected]
Date
2011-08-22 19:07:03 -0700 (Mon, 22 Aug 2011)

Log Message

Range::setEnd(const Position&, ExceptionCode) calls setStart() instead of setEnd()
https://bugs.webkit.org/show_bug.cgi?id=66638

Patch by Alice Boxhall <[email protected]> on 2011-08-22
Reviewed by Ryosuke Niwa.

Relevant layout test coming in a future patch (see https://bugs.webkit.org/show_bug.cgi?id=65900)

* dom/Range.cpp:
(WebCore::Range::setEnd):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (93573 => 93574)


--- trunk/Source/WebCore/ChangeLog	2011-08-23 02:05:48 UTC (rev 93573)
+++ trunk/Source/WebCore/ChangeLog	2011-08-23 02:07:03 UTC (rev 93574)
@@ -1,3 +1,15 @@
+2011-08-22  Alice Boxhall  <[email protected]>
+
+        Range::setEnd(const Position&, ExceptionCode) calls setStart() instead of setEnd()
+        https://bugs.webkit.org/show_bug.cgi?id=66638
+
+        Reviewed by Ryosuke Niwa.
+
+        Relevant layout test coming in a future patch (see https://bugs.webkit.org/show_bug.cgi?id=65900)
+
+        * dom/Range.cpp:
+        (WebCore::Range::setEnd):
+
 2011-08-22  Adam Barth  <[email protected]>
 
         Remove PLATFORM(ANDROID)

Modified: trunk/Source/WebCore/dom/Range.cpp (93573 => 93574)


--- trunk/Source/WebCore/dom/Range.cpp	2011-08-23 02:05:48 UTC (rev 93573)
+++ trunk/Source/WebCore/dom/Range.cpp	2011-08-23 02:07:03 UTC (rev 93574)
@@ -283,7 +283,7 @@
 void Range::setEnd(const Position& end, ExceptionCode& ec)
 {
     Position parentAnchored = end.parentAnchoredEquivalent();
-    setStart(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), ec);
+    setEnd(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), ec);
 }
 
 void Range::collapse(bool toStart, ExceptionCode& ec)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to