Reviewed by Geoff Garen
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Nov 2006 18:12:53 +0000 (18:12 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Nov 2006 18:12:53 +0000 (18:12 +0000)
        * editing/Selection.cpp:
        (WebCore::Selection::showTreeForThis):
        this debugging method now displays start offset and end offset, at Darin's suggestion

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

WebCore/ChangeLog
WebCore/editing/Selection.cpp

index 7ddbd1e39873c4f8adca615f7aadbecf66b1160a..2b3f6ad037394324327b9141e9b11557f4304a66 100644 (file)
@@ -1,3 +1,11 @@
+2006-11-02  John Sullivan  <sullivan@apple.com>
+
+        Reviewed by Geoff Garen
+
+        * editing/Selection.cpp:
+        (WebCore::Selection::showTreeForThis):
+        this debugging method now displays start offset and end offset, at Darin's suggestion
+
 2006-11-01  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by darin
index 98fcc987b0e952993cf32d48c0c9dda7898f2fcf..ffe73795ee1a8552beceba74a76df2d9076c6261 100644 (file)
@@ -490,8 +490,10 @@ void Selection::formatForDebugger(char* buffer, unsigned length) const
 
 void Selection::showTreeForThis() const
 {
-    if (start().node())
+    if (start().node()) {
         start().node()->showTreeAndMark(start().node(), "S", end().node(), "E");
+        fprintf(stderr, "start offset: %d, end offset: %d\n", start().offset(), end().offset());
+    }
 }
 
 #endif