Turn avoidIntersectionWithNode into Editor member functions to encapsulate delete...
[WebKit-https.git] / Source / WebCore / ChangeLog
index b60c0ac028629c1f77f6fd70bec6d63993931eb5..23b61832870987a75e0769b3c343eff808a48477 100644 (file)
@@ -1,3 +1,29 @@
+2013-02-12  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Turn avoidIntersectionWithNode into Editor member functions to encapsulate delete button controller
+        https://bugs.webkit.org/show_bug.cgi?id=109549
+
+        Reviewed by Tony Chang.
+
+        Renamed avoidIntersectionWithNode to Editor::avoidIntersectionWithDeleteButtonController and added trivial
+        implementations when delete button controllers are disabled (ENABLE_DELETION_UI is 0).
+
+        * editing/DeleteButtonController.cpp:
+        * editing/EditCommand.cpp:
+        (WebCore::EditCommand::EditCommand):
+        * editing/Editor.cpp:
+        (WebCore::Editor::avoidIntersectionWithDeleteButtonController): Moved from htmlediting.cpp and renamed.
+        The version that takes VisibleSelection has been updated to use updatePositionForNodeRemoval to share
+        mode code with that function.
+        (WebCore::Editor::rangeForPoint):
+        * editing/Editor.h:
+        (WebCore::Editor::avoidIntersectionWithDeleteButtonController): Added; trivial implementations.
+        * editing/htmlediting.cpp:
+        * editing/htmlediting.h:
+        * editing/markup.cpp:
+        (WebCore::createMarkupInternal): Extracted from createMarkup.
+        (WebCore::createMarkup):
+
 2013-02-12  Joseph Pecoraro  <pecoraro@apple.com>
 
         [iOS] Enable PAGE_VISIBILITY_API