[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-1414-gc69ee75

eric at webkit.org eric at webkit.org
Thu Oct 29 20:40:24 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit ed962cc3f69b9d9da7f79c91262151a94d939eed
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Oct 6 17:24:26 2009 +0000

    2009-10-06  Zan Dobersek  <zandobersek at gmail.com>
    
            Reviewed by Eric Seidel.
    
            [Gtk][Layout tests] Generate results for editing tests
            https://bugs.webkit.org/show_bug.cgi?id=30061
    
            Add results for editing tests and enable these tests in the Skipped.
            Also moves some improperly placed tests to the 'failing' section.
    
            * platform/gtk/Skipped:
            * platform/gtk/editing/deleting/4922367-expected.txt: Added.
            * platform/gtk/editing/deleting/5026848-1-expected.txt: Added.
            * platform/gtk/editing/deleting/5026848-2-expected.txt: Added.
            * platform/gtk/editing/deleting/5026848-3-expected.txt: Added.
            * platform/gtk/editing/deleting/5032066-expected.txt: Added.
            * platform/gtk/editing/deleting/5091898-expected.txt: Added.
            * platform/gtk/editing/deleting/5099303-expected.txt: Added.
            * platform/gtk/editing/deleting/5115601-expected.txt: Added.
            * platform/gtk/editing/deleting/5126166-expected.txt: Added.
            * platform/gtk/editing/deleting/5156801-2-expected.txt: Added.
            * platform/gtk/editing/deleting/5206311-1-expected.txt: Added.
            * platform/gtk/editing/deleting/5206311-2-expected.txt: Added.
            * platform/gtk/editing/deleting/5272440-expected.txt: Added.
            * platform/gtk/editing/deleting/5369009-expected.txt: Added.
            * platform/gtk/editing/deleting/5390681-2-expected.txt: Added.
            * platform/gtk/editing/deleting/5390681-expected.txt: Added.
            * platform/gtk/editing/deleting/5433862-2-expected.txt: Added.
            * platform/gtk/editing/deleting/5483370-expected.txt: Added.
            * platform/gtk/editing/deleting/collapse-whitespace-3587601-fix-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-3608430-fix-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-3608445-fix-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-3608462-fix-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-3775172-fix-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-3800834-fix-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-3959464-fix-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-and-undo-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-contents-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-contents-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-contents-003-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-merge-contents-010-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-merge-contents-012-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-merge-contents-013-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-merge-contents-014-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-merge-contents-015-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-merge-contents-016-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-block-merge-contents-017-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-003-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-004-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-005-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-006-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-007-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-010-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-br-013-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-by-word-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-contiguous-ws-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-image-004-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-leading-ws-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-005-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-006-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-007-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-008-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-009-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-010-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-011-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-012-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-013-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-014-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-end-ws-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-line-end-ws-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-listitem-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-listitem-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-select-all-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-select-all-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-tab-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-tab-004-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-to-select-table-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-trailing-ws-002-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-ws-fixup-001-expected.txt: Added.
            * platform/gtk/editing/deleting/delete-ws-fixup-002-expected.txt: Added.
            * platform/gtk/editing/deleting/forward-delete-expected.txt: Added.
            * platform/gtk/editing/deleting/merge-whitespace-pre-expected.txt: Added.
            * platform/gtk/editing/deleting/move-nodes-001-expected.txt: Added.
            * platform/gtk/editing/deleting/type-delete-after-quote-expected.txt: Added.
            * platform/gtk/editing/execCommand/4580583-1-expected.txt: Added.
            * platform/gtk/editing/execCommand/4580583-2-expected.txt: Added.
            * platform/gtk/editing/execCommand/4747450-expected.txt: Added.
            * platform/gtk/editing/execCommand/4786404-1-expected.txt: Added.
            * platform/gtk/editing/execCommand/4786404-2-expected.txt: Added.
            * platform/gtk/editing/execCommand/4916402-expected.txt: Added.
            * platform/gtk/editing/execCommand/4916541-expected.txt: Added.
            * platform/gtk/editing/execCommand/4920488-expected.txt: Added.
            * platform/gtk/editing/execCommand/4920742-1-expected.txt: Added.
            * platform/gtk/editing/execCommand/4924441-expected.txt: Added.
            * platform/gtk/editing/execCommand/5049671-expected.txt: Added.
            * platform/gtk/editing/execCommand/5080333-1-expected.txt: Added.
            * platform/gtk/editing/execCommand/5080333-2-expected.txt: Added.
            * platform/gtk/editing/execCommand/5136770-expected.txt: Added.
            * platform/gtk/editing/execCommand/5138441-expected.txt: Added.
            * platform/gtk/editing/execCommand/5142012-1-expected.txt: Added.
            * platform/gtk/editing/execCommand/5142012-2-expected.txt: Added.
            * platform/gtk/editing/execCommand/5190926-expected.txt: Added.
            * platform/gtk/editing/execCommand/5481523-expected.txt: Added.
            * platform/gtk/editing/execCommand/5482023-expected.txt: Added.
            * platform/gtk/editing/execCommand/5569741-expected.txt: Added.
            * platform/gtk/editing/execCommand/5573879-expected.txt: Added.
            * platform/gtk/editing/execCommand/insert-list-empty-div-expected.txt: Added.
            * platform/gtk/editing/inserting/12882-expected.txt: Added.
            * platform/gtk/editing/inserting/4840662-expected.txt: Added.
            * platform/gtk/editing/inserting/4875189-1-expected.txt: Added.
            * platform/gtk/editing/inserting/4875189-2-expected.txt: Added.
            * platform/gtk/editing/inserting/4959067-expected.txt: Added.
            * platform/gtk/editing/inserting/4960120-2-expected.txt: Added.
            * platform/gtk/editing/inserting/5002441-expected.txt: Added.
            * platform/gtk/editing/inserting/5058163-1-expected.txt: Added.
            * platform/gtk/editing/inserting/5058163-2-expected.txt: Added.
            * platform/gtk/editing/inserting/5156401-2-expected.txt: Added.
            * platform/gtk/editing/inserting/5418891-expected.txt: Added.
            * platform/gtk/editing/inserting/5510537-expected.txt: Added.
            * platform/gtk/editing/inserting/5549929-2-expected.txt: Added.
            * platform/gtk/editing/inserting/5549929-3-expected.txt: Added.
            * platform/gtk/editing/inserting/6633727-expected.txt: Added.
            * platform/gtk/editing/inserting/6703873-expected.txt: Added.
            * platform/gtk/editing/inserting/editable-inline-element-expected.txt: Added.
            * platform/gtk/editing/inserting/edited-whitespace-1-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-3654864-fix-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-3659587-fix-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-3775316-fix-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-3800346-fix-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-3851164-fix-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-3907422-fix-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-after-delete-001-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-bg-font-expected.txt: Copied from LayoutTests/platform/mac/editing/inserting/insert-bg-font-expected.txt.
            * platform/gtk/editing/inserting/insert-br-005-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-div-001-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-div-002-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-div-003-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-div-004-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-div-005-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-div-009-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-div-024-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-space-in-empty-doc-expected.txt: Added.
            * platform/gtk/editing/inserting/insert-text-with-newlines-expected.txt: Added.
            * platform/gtk/editing/inserting/redo-expected.txt: Added.
            * platform/gtk/editing/inserting/typing-001-expected.txt: Added.
            * platform/gtk/editing/inserting/typing-002-expected.txt: Added.
            * platform/gtk/editing/inserting/typing-003-expected.txt: Added.
            * platform/gtk/editing/inserting/typing-around-br-001-expected.txt: Added.
            * platform/gtk/editing/inserting/typing-around-image-001-expected.txt: Added.
            * platform/gtk/editing/pasteboard/4076267-2-expected.txt: Added.
            * platform/gtk/editing/pasteboard/4076267-3-expected.txt: Added.
            * platform/gtk/editing/pasteboard/4076267-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5032095-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5071074-2-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5075944-3-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5089327-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5134759-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5156401-1-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5387578-expected.txt: Added.
            * platform/gtk/editing/pasteboard/5483567-expected.txt: Added.
            * platform/gtk/editing/pasteboard/7955-expected.txt: Added.
            * platform/gtk/editing/pasteboard/cut-text-001-expected.txt: Added.
            * platform/gtk/editing/pasteboard/innerText-inline-table-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-1-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-2-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-3-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-table-001-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-001-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-002-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-003-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-004-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-005-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-006-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-007-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-008-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-009-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-010-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-text-015-expected.txt: Added.
            * platform/gtk/editing/pasteboard/paste-xml-expected.txt: Added.
            * platform/gtk/editing/pasteboard/select-element-1-expected.txt: Added.
            * platform/gtk/editing/selection/13804-expected.txt: Added.
            * platform/gtk/editing/selection/14971-expected.txt: Added.
            * platform/gtk/editing/selection/4818145-expected.txt: Added.
            * platform/gtk/editing/selection/4866671-expected.txt: Added.
            * platform/gtk/editing/selection/4889598-expected.txt: Added.
            * platform/gtk/editing/selection/4895428-2-expected.txt: Added.
            * platform/gtk/editing/selection/4960116-expected.txt: Added.
            * platform/gtk/editing/selection/4960137-expected.txt: Added.
            * platform/gtk/editing/selection/4983858-expected.txt: Added.
            * platform/gtk/editing/selection/5007143-2-expected.txt: Added.
            * platform/gtk/editing/selection/5007143-expected.txt: Added.
            * platform/gtk/editing/selection/5057506-2-expected.txt: Added.
            * platform/gtk/editing/selection/5057506-expected.txt: Added.
            * platform/gtk/editing/selection/5076323-1-expected.txt: Added.
            * platform/gtk/editing/selection/5076323-2-expected.txt: Added.
            * platform/gtk/editing/selection/5076323-3-expected.txt: Added.
            * platform/gtk/editing/selection/5081257-1-expected.txt: Added.
            * platform/gtk/editing/selection/5081257-2-expected.txt: Added.
            * platform/gtk/editing/selection/5099303-expected.txt: Added.
            * platform/gtk/editing/selection/5109817-expected.txt: Added.
            * platform/gtk/editing/selection/5131716-1-expected.txt: Added.
            * platform/gtk/editing/selection/5131716-2-expected.txt: Added.
            * platform/gtk/editing/selection/5131716-3-expected.txt: Added.
            * platform/gtk/editing/selection/5131716-4-expected.txt: Added.
            * platform/gtk/editing/selection/5232159-expected.txt: Added.
            * platform/gtk/editing/selection/5234383-1-expected.txt: Added.
            * platform/gtk/editing/selection/5234383-2-expected.txt: Added.
            * platform/gtk/editing/selection/5333725-expected.txt: Added.
            * platform/gtk/editing/selection/5354455-1-expected.txt: Added.
            * platform/gtk/editing/selection/5354455-2-expected.txt: Added.
            * platform/gtk/editing/selection/addRange-expected.txt: Added.
            * platform/gtk/editing/selection/drag-in-iframe-expected.txt: Added.
            * platform/gtk/editing/selection/extend-by-character-002-expected.txt: Added.
            * platform/gtk/editing/selection/extend-by-character-003-expected.txt: Added.
            * platform/gtk/editing/selection/extend-by-character-004-expected.txt: Added.
            * platform/gtk/editing/selection/extend-by-character-005-expected.txt: Added.
            * platform/gtk/editing/selection/fake-drag-expected.txt: Added.
            * platform/gtk/editing/selection/iframe-expected.txt: Added.
            * platform/gtk/editing/selection/inline-closest-leaf-child-expected.txt: Added.
            * platform/gtk/editing/selection/inline-table-expected.txt: Added.
            * platform/gtk/editing/selection/mixed-editability-6-expected.txt: Added.
            * platform/gtk/editing/selection/mixed-editability-7-expected.txt: Added.
            * platform/gtk/editing/selection/move-backwords-by-word-001-expected.txt: Added.
            * platform/gtk/editing/selection/move-between-blocks-no-001-expected.txt: Added.
            * platform/gtk/editing/selection/move-between-blocks-yes-001-expected.txt: Added.
            * platform/gtk/editing/selection/move-by-character-001-expected.txt: Added.
            * platform/gtk/editing/selection/move-by-character-002-expected.txt: Added.
            * platform/gtk/editing/selection/move-by-character-003-expected.txt: Added.
            * platform/gtk/editing/selection/move-by-character-004-expected.txt: Added.
            * platform/gtk/editing/selection/move-by-character-005-expected.txt: Added.
            * platform/gtk/editing/selection/move-by-sentence-001-expected.txt: Added.
            * platform/gtk/editing/selection/move-by-sentence-linebreak-expected.txt: Added.
            * platform/gtk/editing/selection/move-past-trailing-space-expected.txt: Added.
            * platform/gtk/editing/selection/select-box-expected.txt: Added.
            * platform/gtk/editing/selection/selectNode-expected.txt: Added.
            * platform/gtk/editing/selection/selectNodeContents-expected.txt: Added.
            * platform/gtk/editing/selection/wrapped-line-caret-1-expected.txt: Added.
            * platform/gtk/editing/selection/wrapped-line-caret-2-expected.txt: Added.
            * platform/gtk/editing/spelling/spelling-expected.txt: Added.
            * platform/gtk/editing/spelling/spelling-linebreak-expected.txt: Added.
            * platform/gtk/editing/style/4916887-expected.txt: Added.
            * platform/gtk/editing/style/5017613-1-expected.txt: Added.
            * platform/gtk/editing/style/5017613-2-expected.txt: Added.
            * platform/gtk/editing/style/5046875-1-expected.txt: Added.
            * platform/gtk/editing/style/5046875-2-expected.txt: Added.
            * platform/gtk/editing/style/5084241-expected.txt: Added.
            * platform/gtk/editing/style/5228141-expected.txt: Added.
            * platform/gtk/editing/style/5279521-expected.txt: Added.
            * platform/gtk/editing/style/block-style-003-expected.txt: Added.
            * platform/gtk/editing/style/fontsize-1-expected.txt: Added.
            * platform/gtk/editing/style/highlight-expected.txt: Added.
            * platform/gtk/editing/style/relative-font-size-change-001-expected.txt: Added.
            * platform/gtk/editing/style/style-3681552-fix-001-expected.txt: Added.
            * platform/gtk/editing/style/style-3681552-fix-002-expected.txt: Added.
            * platform/gtk/editing/style/style-3690704-fix-expected.txt: Added.
            * platform/gtk/editing/style/typing-style-001-expected.txt: Added.
            * platform/gtk/editing/style/typing-style-002-expected.txt: Added.
            * platform/gtk/editing/style/typing-style-003-expected.txt: Added.
            * platform/gtk/editing/style/unbold-in-bold-expected.txt: Added.
            * platform/gtk/editing/undo/4063751-expected.txt: Added.
            * platform/gtk/editing/undo/5378473-expected.txt: Added.
            * platform/gtk/editing/undo/redo-typing-001-expected.txt: Added.
            * platform/gtk/editing/undo/undo-combined-delete-boundary-expected.txt: Added.
            * platform/gtk/editing/undo/undo-combined-delete-expected.txt: Added.
            * platform/gtk/editing/undo/undo-delete-boundary-expected.txt: Added.
            * platform/gtk/editing/undo/undo-delete-expected.txt: Added.
            * platform/gtk/editing/undo/undo-forward-delete-boundary-expected.txt: Added.
            * platform/gtk/editing/undo/undo-forward-delete-expected.txt: Added.
            * platform/gtk/editing/undo/undo-misspellings-expected.txt: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49192 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 1bc5f6a..44ede9f 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,283 @@
+2009-10-06  Zan Dobersek  <zandobersek at gmail.com>
+
+        Reviewed by Eric Seidel.
+
+        [Gtk][Layout tests] Generate results for editing tests
+        https://bugs.webkit.org/show_bug.cgi?id=30061
+
+        Add results for editing tests and enable these tests in the Skipped.
+        Also moves some improperly placed tests to the 'failing' section.
+
+        * platform/gtk/Skipped:
+        * platform/gtk/editing/deleting/4922367-expected.txt: Added.
+        * platform/gtk/editing/deleting/5026848-1-expected.txt: Added.
+        * platform/gtk/editing/deleting/5026848-2-expected.txt: Added.
+        * platform/gtk/editing/deleting/5026848-3-expected.txt: Added.
+        * platform/gtk/editing/deleting/5032066-expected.txt: Added.
+        * platform/gtk/editing/deleting/5091898-expected.txt: Added.
+        * platform/gtk/editing/deleting/5099303-expected.txt: Added.
+        * platform/gtk/editing/deleting/5115601-expected.txt: Added.
+        * platform/gtk/editing/deleting/5126166-expected.txt: Added.
+        * platform/gtk/editing/deleting/5156801-2-expected.txt: Added.
+        * platform/gtk/editing/deleting/5206311-1-expected.txt: Added.
+        * platform/gtk/editing/deleting/5206311-2-expected.txt: Added.
+        * platform/gtk/editing/deleting/5272440-expected.txt: Added.
+        * platform/gtk/editing/deleting/5369009-expected.txt: Added.
+        * platform/gtk/editing/deleting/5390681-2-expected.txt: Added.
+        * platform/gtk/editing/deleting/5390681-expected.txt: Added.
+        * platform/gtk/editing/deleting/5433862-2-expected.txt: Added.
+        * platform/gtk/editing/deleting/5483370-expected.txt: Added.
+        * platform/gtk/editing/deleting/collapse-whitespace-3587601-fix-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-3608430-fix-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-3608445-fix-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-3608462-fix-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-3775172-fix-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-3800834-fix-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-3959464-fix-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-and-undo-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-contents-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-contents-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-contents-003-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-merge-contents-010-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-merge-contents-012-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-merge-contents-013-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-merge-contents-014-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-merge-contents-015-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-merge-contents-016-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-block-merge-contents-017-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-003-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-004-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-005-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-006-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-007-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-010-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-br-013-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-by-word-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-contiguous-ws-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-image-004-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-leading-ws-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-005-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-006-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-007-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-008-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-009-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-010-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-011-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-012-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-013-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-014-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-end-ws-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-line-end-ws-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-listitem-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-listitem-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-select-all-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-select-all-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-tab-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-tab-004-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-to-select-table-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-trailing-ws-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-ws-fixup-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/delete-ws-fixup-002-expected.txt: Added.
+        * platform/gtk/editing/deleting/forward-delete-expected.txt: Added.
+        * platform/gtk/editing/deleting/merge-whitespace-pre-expected.txt: Added.
+        * platform/gtk/editing/deleting/move-nodes-001-expected.txt: Added.
+        * platform/gtk/editing/deleting/type-delete-after-quote-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4580583-1-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4580583-2-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4747450-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4786404-1-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4786404-2-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4916402-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4916541-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4920488-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4920742-1-expected.txt: Added.
+        * platform/gtk/editing/execCommand/4924441-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5049671-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5080333-1-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5080333-2-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5136770-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5138441-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5142012-1-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5142012-2-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5190926-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5481523-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5482023-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5569741-expected.txt: Added.
+        * platform/gtk/editing/execCommand/5573879-expected.txt: Added.
+        * platform/gtk/editing/execCommand/insert-list-empty-div-expected.txt: Added.
+        * platform/gtk/editing/inserting/12882-expected.txt: Added.
+        * platform/gtk/editing/inserting/4840662-expected.txt: Added.
+        * platform/gtk/editing/inserting/4875189-1-expected.txt: Added.
+        * platform/gtk/editing/inserting/4875189-2-expected.txt: Added.
+        * platform/gtk/editing/inserting/4959067-expected.txt: Added.
+        * platform/gtk/editing/inserting/4960120-2-expected.txt: Added.
+        * platform/gtk/editing/inserting/5002441-expected.txt: Added.
+        * platform/gtk/editing/inserting/5058163-1-expected.txt: Added.
+        * platform/gtk/editing/inserting/5058163-2-expected.txt: Added.
+        * platform/gtk/editing/inserting/5156401-2-expected.txt: Added.
+        * platform/gtk/editing/inserting/5418891-expected.txt: Added.
+        * platform/gtk/editing/inserting/5510537-expected.txt: Added.
+        * platform/gtk/editing/inserting/5549929-2-expected.txt: Added.
+        * platform/gtk/editing/inserting/5549929-3-expected.txt: Added.
+        * platform/gtk/editing/inserting/6633727-expected.txt: Added.
+        * platform/gtk/editing/inserting/6703873-expected.txt: Added.
+        * platform/gtk/editing/inserting/editable-inline-element-expected.txt: Added.
+        * platform/gtk/editing/inserting/edited-whitespace-1-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-3654864-fix-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-3659587-fix-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-3775316-fix-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-3800346-fix-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-3851164-fix-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-3907422-fix-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-after-delete-001-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-bg-font-expected.txt: Copied from LayoutTests/platform/mac/editing/inserting/insert-bg-font-expected.txt.
+        * platform/gtk/editing/inserting/insert-br-005-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-div-001-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-div-002-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-div-003-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-div-004-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-div-005-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-div-009-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-div-024-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-space-in-empty-doc-expected.txt: Added.
+        * platform/gtk/editing/inserting/insert-text-with-newlines-expected.txt: Added.
+        * platform/gtk/editing/inserting/redo-expected.txt: Added.
+        * platform/gtk/editing/inserting/typing-001-expected.txt: Added.
+        * platform/gtk/editing/inserting/typing-002-expected.txt: Added.
+        * platform/gtk/editing/inserting/typing-003-expected.txt: Added.
+        * platform/gtk/editing/inserting/typing-around-br-001-expected.txt: Added.
+        * platform/gtk/editing/inserting/typing-around-image-001-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/4076267-2-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/4076267-3-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/4076267-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5032095-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5071074-2-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5075944-3-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5089327-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5134759-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5156401-1-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5387578-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/5483567-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/7955-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/cut-text-001-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/innerText-inline-table-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-1-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-2-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-3-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-table-001-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-001-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-002-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-003-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-004-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-005-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-006-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-007-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-008-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-009-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-010-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-text-015-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/paste-xml-expected.txt: Added.
+        * platform/gtk/editing/pasteboard/select-element-1-expected.txt: Added.
+        * platform/gtk/editing/selection/13804-expected.txt: Added.
+        * platform/gtk/editing/selection/14971-expected.txt: Added.
+        * platform/gtk/editing/selection/4818145-expected.txt: Added.
+        * platform/gtk/editing/selection/4866671-expected.txt: Added.
+        * platform/gtk/editing/selection/4889598-expected.txt: Added.
+        * platform/gtk/editing/selection/4895428-2-expected.txt: Added.
+        * platform/gtk/editing/selection/4960116-expected.txt: Added.
+        * platform/gtk/editing/selection/4960137-expected.txt: Added.
+        * platform/gtk/editing/selection/4983858-expected.txt: Added.
+        * platform/gtk/editing/selection/5007143-2-expected.txt: Added.
+        * platform/gtk/editing/selection/5007143-expected.txt: Added.
+        * platform/gtk/editing/selection/5057506-2-expected.txt: Added.
+        * platform/gtk/editing/selection/5057506-expected.txt: Added.
+        * platform/gtk/editing/selection/5076323-1-expected.txt: Added.
+        * platform/gtk/editing/selection/5076323-2-expected.txt: Added.
+        * platform/gtk/editing/selection/5076323-3-expected.txt: Added.
+        * platform/gtk/editing/selection/5081257-1-expected.txt: Added.
+        * platform/gtk/editing/selection/5081257-2-expected.txt: Added.
+        * platform/gtk/editing/selection/5099303-expected.txt: Added.
+        * platform/gtk/editing/selection/5109817-expected.txt: Added.
+        * platform/gtk/editing/selection/5131716-1-expected.txt: Added.
+        * platform/gtk/editing/selection/5131716-2-expected.txt: Added.
+        * platform/gtk/editing/selection/5131716-3-expected.txt: Added.
+        * platform/gtk/editing/selection/5131716-4-expected.txt: Added.
+        * platform/gtk/editing/selection/5232159-expected.txt: Added.
+        * platform/gtk/editing/selection/5234383-1-expected.txt: Added.
+        * platform/gtk/editing/selection/5234383-2-expected.txt: Added.
+        * platform/gtk/editing/selection/5333725-expected.txt: Added.
+        * platform/gtk/editing/selection/5354455-1-expected.txt: Added.
+        * platform/gtk/editing/selection/5354455-2-expected.txt: Added.
+        * platform/gtk/editing/selection/addRange-expected.txt: Added.
+        * platform/gtk/editing/selection/drag-in-iframe-expected.txt: Added.
+        * platform/gtk/editing/selection/extend-by-character-002-expected.txt: Added.
+        * platform/gtk/editing/selection/extend-by-character-003-expected.txt: Added.
+        * platform/gtk/editing/selection/extend-by-character-004-expected.txt: Added.
+        * platform/gtk/editing/selection/extend-by-character-005-expected.txt: Added.
+        * platform/gtk/editing/selection/fake-drag-expected.txt: Added.
+        * platform/gtk/editing/selection/iframe-expected.txt: Added.
+        * platform/gtk/editing/selection/inline-closest-leaf-child-expected.txt: Added.
+        * platform/gtk/editing/selection/inline-table-expected.txt: Added.
+        * platform/gtk/editing/selection/mixed-editability-6-expected.txt: Added.
+        * platform/gtk/editing/selection/mixed-editability-7-expected.txt: Added.
+        * platform/gtk/editing/selection/move-backwords-by-word-001-expected.txt: Added.
+        * platform/gtk/editing/selection/move-between-blocks-no-001-expected.txt: Added.
+        * platform/gtk/editing/selection/move-between-blocks-yes-001-expected.txt: Added.
+        * platform/gtk/editing/selection/move-by-character-001-expected.txt: Added.
+        * platform/gtk/editing/selection/move-by-character-002-expected.txt: Added.
+        * platform/gtk/editing/selection/move-by-character-003-expected.txt: Added.
+        * platform/gtk/editing/selection/move-by-character-004-expected.txt: Added.
+        * platform/gtk/editing/selection/move-by-character-005-expected.txt: Added.
+        * platform/gtk/editing/selection/move-by-sentence-001-expected.txt: Added.
+        * platform/gtk/editing/selection/move-by-sentence-linebreak-expected.txt: Added.
+        * platform/gtk/editing/selection/move-past-trailing-space-expected.txt: Added.
+        * platform/gtk/editing/selection/select-box-expected.txt: Added.
+        * platform/gtk/editing/selection/selectNode-expected.txt: Added.
+        * platform/gtk/editing/selection/selectNodeContents-expected.txt: Added.
+        * platform/gtk/editing/selection/wrapped-line-caret-1-expected.txt: Added.
+        * platform/gtk/editing/selection/wrapped-line-caret-2-expected.txt: Added.
+        * platform/gtk/editing/spelling/spelling-expected.txt: Added.
+        * platform/gtk/editing/spelling/spelling-linebreak-expected.txt: Added.
+        * platform/gtk/editing/style/4916887-expected.txt: Added.
+        * platform/gtk/editing/style/5017613-1-expected.txt: Added.
+        * platform/gtk/editing/style/5017613-2-expected.txt: Added.
+        * platform/gtk/editing/style/5046875-1-expected.txt: Added.
+        * platform/gtk/editing/style/5046875-2-expected.txt: Added.
+        * platform/gtk/editing/style/5084241-expected.txt: Added.
+        * platform/gtk/editing/style/5228141-expected.txt: Added.
+        * platform/gtk/editing/style/5279521-expected.txt: Added.
+        * platform/gtk/editing/style/block-style-003-expected.txt: Added.
+        * platform/gtk/editing/style/fontsize-1-expected.txt: Added.
+        * platform/gtk/editing/style/highlight-expected.txt: Added.
+        * platform/gtk/editing/style/relative-font-size-change-001-expected.txt: Added.
+        * platform/gtk/editing/style/style-3681552-fix-001-expected.txt: Added.
+        * platform/gtk/editing/style/style-3681552-fix-002-expected.txt: Added.
+        * platform/gtk/editing/style/style-3690704-fix-expected.txt: Added.
+        * platform/gtk/editing/style/typing-style-001-expected.txt: Added.
+        * platform/gtk/editing/style/typing-style-002-expected.txt: Added.
+        * platform/gtk/editing/style/typing-style-003-expected.txt: Added.
+        * platform/gtk/editing/style/unbold-in-bold-expected.txt: Added.
+        * platform/gtk/editing/undo/4063751-expected.txt: Added.
+        * platform/gtk/editing/undo/5378473-expected.txt: Added.
+        * platform/gtk/editing/undo/redo-typing-001-expected.txt: Added.
+        * platform/gtk/editing/undo/undo-combined-delete-boundary-expected.txt: Added.
+        * platform/gtk/editing/undo/undo-combined-delete-expected.txt: Added.
+        * platform/gtk/editing/undo/undo-delete-boundary-expected.txt: Added.
+        * platform/gtk/editing/undo/undo-delete-expected.txt: Added.
+        * platform/gtk/editing/undo/undo-forward-delete-boundary-expected.txt: Added.
+        * platform/gtk/editing/undo/undo-forward-delete-expected.txt: Added.
+        * platform/gtk/editing/undo/undo-misspellings-expected.txt: Added.
+
 2009-10-06  Anton Muhin  <antonm at chromium>
 
         Reviewed by Dimitri Glazkov.
diff --git a/LayoutTests/platform/gtk/Skipped b/LayoutTests/platform/gtk/Skipped
index 7adeba0..c9e49ec 100644
--- a/LayoutTests/platform/gtk/Skipped
+++ b/LayoutTests/platform/gtk/Skipped
@@ -738,11 +738,26 @@ editing/execCommand/createLink.html
 editing/execCommand/enabling-and-selection-2.html
 editing/execCommand/enabling-and-selection.html
 editing/execCommand/findString-diacriticals.html
+editing/execCommand/indent-nested-lists-1.html
+editing/execCommand/indent-nested-lists-2.html
+editing/execCommand/indent-nested-lists-3.html
+editing/execCommand/indent-nested-lists-4.html
+editing/execCommand/indent-nested-lists-5.html
+editing/execCommand/indent-nested-lists-6.html
+editing/execCommand/indent-nested-lists-7.html
+editing/execCommand/insertHTML.html
 editing/execCommand/outdent-blockquote-test1.html
 editing/execCommand/outdent-blockquote-test2.html
 editing/execCommand/outdent-blockquote-test3.html
 editing/execCommand/outdent-blockquote-test4.html
+editing/execCommand/outdent-nested-lists-1.html
+editing/execCommand/outdent-nested-lists-2.html
+editing/execCommand/outdent-nested-lists-3.html
+editing/execCommand/outdent-nested-lists-4.html
 editing/execCommand/queryCommandState-01.html
+editing/execCommand/remove-list-1.html
+editing/execCommand/remove-list-items.html
+editing/execCommand/switch-list-type.html
 editing/execCommand/unlink.html
 editing/inserting/5994480-2.html
 editing/inserting/insert-thai-characters-001.html
@@ -759,6 +774,7 @@ editing/pasteboard/5780697-2.html
 editing/pasteboard/copy-in-password-field.html
 editing/pasteboard/copy-paste-float.html
 editing/pasteboard/drag-image-in-about-blank-frame.html
+editing/pasteboard/file-input-files-access.html
 editing/pasteboard/get-data-text-plain-drop.html
 editing/pasteboard/get-data-text-plain-paste.html
 editing/pasteboard/paste-blockquote-before-blockquote.html
@@ -775,6 +791,7 @@ editing/selection/click-before-and-after-table.html
 editing/selection/click-in-margins-inside-editable-div.html
 editing/selection/click-in-padding-with-multiple-line-boxes.html
 editing/selection/doubleclick-whitespace.html
+editing/selection/drag-start-event-client-x-y.html
 editing/selection/drag-text-delay.html
 editing/selection/extend-selection.html
 editing/selection/extend-selection-bidi.html
@@ -788,47 +805,24 @@ editing/selection/skip-non-editable-1.html
 editing/selection/skip-non-editable-2.html
 editing/selection/toString-1.html
 editing/selection/toString.html
+editing/selection/user-drag-element-and-user-select-none.html
+editing/style/apply-through-end-of-document.html
+editing/style/remove-underline-from-stylesheet.html
 editing/text-iterator/basic-iteration.html
 #   Tests generating new results
 editing/deleting/4845371.html
-editing/deleting/4922367.html
-editing/deleting/5026848-1.html
-editing/deleting/5026848-2.html
-editing/deleting/5026848-3.html
-editing/deleting/5032066.html
-editing/deleting/5091898.html
-editing/deleting/5099303.html
-editing/deleting/5115601.html
-editing/deleting/5126166.html
 editing/deleting/5144139-2.html
-editing/deleting/5156801-2.html
 editing/deleting/5168598.html
-editing/deleting/5206311-1.html
-editing/deleting/5206311-2.html
-editing/deleting/5272440.html
 editing/deleting/5300379.html
-editing/deleting/5369009.html
-editing/deleting/5390681-2.html
-editing/deleting/5390681.html
 editing/deleting/5408255.html
-editing/deleting/5433862-2.html
-editing/deleting/5483370.html
-editing/deleting/collapse-whitespace-3587601-fix.html
-editing/deleting/delete-3608430-fix.html
-editing/deleting/delete-3608445-fix.html
-editing/deleting/delete-3608462-fix.html
-editing/deleting/delete-3775172-fix.html
-editing/deleting/delete-3800834-fix.html
 editing/deleting/delete-3857753-fix.html
 editing/deleting/delete-3865854-fix.html
 editing/deleting/delete-3928305-fix.html
-editing/deleting/delete-3959464-fix.html
 editing/deleting/delete-4038408-fix.html
 editing/deleting/delete-4083333-fix.html
 editing/deleting/delete-after-span-ws-001.html
 editing/deleting/delete-after-span-ws-002.html
 editing/deleting/delete-after-span-ws-003.html
-editing/deleting/delete-and-undo.html
 editing/deleting/delete-at-paragraph-boundaries-001.html
 editing/deleting/delete-at-paragraph-boundaries-002.html
 editing/deleting/delete-at-paragraph-boundaries-003.html
@@ -841,9 +835,6 @@ editing/deleting/delete-at-paragraph-boundaries-009.html
 editing/deleting/delete-at-paragraph-boundaries-010.html
 editing/deleting/delete-at-paragraph-boundaries-011.html
 editing/deleting/delete-at-start-or-end.html
-editing/deleting/delete-block-contents-001.html
-editing/deleting/delete-block-contents-002.html
-editing/deleting/delete-block-contents-003.html
 editing/deleting/delete-block-merge-contents-001.html
 editing/deleting/delete-block-merge-contents-002.html
 editing/deleting/delete-block-merge-contents-003.html
@@ -853,14 +844,7 @@ editing/deleting/delete-block-merge-contents-006.html
 editing/deleting/delete-block-merge-contents-007.html
 editing/deleting/delete-block-merge-contents-008.html
 editing/deleting/delete-block-merge-contents-009.html
-editing/deleting/delete-block-merge-contents-010.html
 editing/deleting/delete-block-merge-contents-011.html
-editing/deleting/delete-block-merge-contents-012.html
-editing/deleting/delete-block-merge-contents-013.html
-editing/deleting/delete-block-merge-contents-014.html
-editing/deleting/delete-block-merge-contents-015.html
-editing/deleting/delete-block-merge-contents-016.html
-editing/deleting/delete-block-merge-contents-017.html
 editing/deleting/delete-block-merge-contents-018.html
 editing/deleting/delete-block-merge-contents-019.html
 editing/deleting/delete-block-merge-contents-020.html
@@ -869,70 +853,31 @@ editing/deleting/delete-block-merge-contents-022.html
 editing/deleting/delete-block-merge-contents-023.html
 editing/deleting/delete-block-merge-contents-024.html
 editing/deleting/delete-block-table.html
-editing/deleting/delete-br-001.html
-editing/deleting/delete-br-002.html
-editing/deleting/delete-br-003.html
-editing/deleting/delete-br-004.html
-editing/deleting/delete-br-005.html
-editing/deleting/delete-br-006.html
-editing/deleting/delete-br-007.html
 editing/deleting/delete-br-008.html
 editing/deleting/delete-br-009.html
-editing/deleting/delete-br-010.html
 editing/deleting/delete-br-011.html
 editing/deleting/delete-br-012.html
-editing/deleting/delete-br-013.html
-editing/deleting/delete-by-word-001.html
 editing/deleting/delete-by-word-002.html
 editing/deleting/delete-character-001.html
-editing/deleting/delete-contiguous-ws-001.html
 editing/deleting/delete-first-list-item.html
 editing/deleting/delete-hr.html
 editing/deleting/delete-image-001.html
 editing/deleting/delete-image-002.html
 editing/deleting/delete-image-003.html
-editing/deleting/delete-image-004.html
-editing/deleting/delete-leading-ws-001.html
-editing/deleting/delete-line-001.html
-editing/deleting/delete-line-002.html
 editing/deleting/delete-line-003.html
 editing/deleting/delete-line-004.html
-editing/deleting/delete-line-005.html
-editing/deleting/delete-line-006.html
-editing/deleting/delete-line-007.html
-editing/deleting/delete-line-008.html
-editing/deleting/delete-line-009.html
-editing/deleting/delete-line-010.html
-editing/deleting/delete-line-011.html
-editing/deleting/delete-line-012.html
-editing/deleting/delete-line-013.html
-editing/deleting/delete-line-014.html
 editing/deleting/delete-line-015.html
 editing/deleting/delete-line-016.html
 editing/deleting/delete-line-017.html
-editing/deleting/delete-line-end-ws-001.html
-editing/deleting/delete-line-end-ws-002.html
-editing/deleting/delete-listitem-001.html
-editing/deleting/delete-listitem-002.html
 editing/deleting/delete-mixed-editable-content-001.html
-editing/deleting/delete-select-all-001.html
-editing/deleting/delete-select-all-002.html
 editing/deleting/delete-select-all-003.html
 editing/deleting/delete-selection-001.html
 editing/deleting/delete-tab-001.html
-editing/deleting/delete-tab-002.html
 editing/deleting/delete-tab-003.html
-editing/deleting/delete-tab-004.html
-editing/deleting/delete-to-end-of-paragraph.html
-editing/deleting/delete-to-select-table.html
 editing/deleting/delete-trailing-ws-001.html
-editing/deleting/delete-trailing-ws-002.html
-editing/deleting/delete-ws-fixup-001.html
-editing/deleting/delete-ws-fixup-002.html
 editing/deleting/delete-ws-fixup-003.html
 editing/deleting/delete-ws-fixup-004.html
 editing/deleting/deletionUI-single-instance.html
-editing/deleting/forward-delete.html
 editing/deleting/list-item-1.html
 editing/deleting/merge-different-styles.html
 editing/deleting/merge-endOfParagraph.html
@@ -940,8 +885,6 @@ editing/deleting/merge-into-empty-block-1.html
 editing/deleting/merge-into-empty-block-2.html
 editing/deleting/merge-no-br.html
 editing/deleting/merge-unrendered-space.html
-editing/deleting/merge-whitespace-pre.html
-editing/deleting/move-nodes-001.html
 editing/deleting/paragraph-in-preserveNewline.html
 editing/deleting/pruning-after-merge-2.html
 editing/deleting/smart-delete-001.html
@@ -950,32 +893,9 @@ editing/deleting/smart-delete-003.html
 editing/deleting/smart-delete-004.html
 editing/deleting/table-cells.html
 editing/deleting/transpose-empty.html
-editing/deleting/type-delete-after-quote.html
 editing/deleting/whitespace-pre-1.html
-editing/execCommand/4580583-1.html
-editing/execCommand/4580583-2.html
 editing/execCommand/4641880-1.html
 editing/execCommand/4641880-2.html
-editing/execCommand/4747450.html
-editing/execCommand/4786404-1.html
-editing/execCommand/4786404-2.html
-editing/execCommand/4916402.html
-editing/execCommand/4916541.html
-editing/execCommand/4920488.html
-editing/execCommand/4920742-1.html
-editing/execCommand/4924441.html
-editing/execCommand/5049671.html
-editing/execCommand/5080333-1.html
-editing/execCommand/5080333-2.html
-editing/execCommand/5136770.html
-editing/execCommand/5138441.html
-editing/execCommand/5142012-1.html
-editing/execCommand/5142012-2.html
-editing/execCommand/5190926.html
-editing/execCommand/5481523.html
-editing/execCommand/5482023.html
-editing/execCommand/5569741.html
-editing/execCommand/5573879.html
 editing/execCommand/create-list-from-range-selection.html
 editing/execCommand/create-list-with-hr.html
 editing/execCommand/find-after-replace.html
@@ -988,79 +908,37 @@ editing/execCommand/format-block.html
 editing/execCommand/hilitecolor.html
 editing/execCommand/indent-empty-root.html
 editing/execCommand/indent-list-item.html
-editing/execCommand/indent-nested-lists-1.html
-editing/execCommand/indent-nested-lists-2.html
-editing/execCommand/indent-nested-lists-3.html
-editing/execCommand/indent-nested-lists-4.html
-editing/execCommand/indent-nested-lists-5.html
-editing/execCommand/indent-nested-lists-6.html
-editing/execCommand/indent-nested-lists-7.html
 editing/execCommand/indent-selection.html
 editing/execCommand/insert-list-and-stitch.html
-editing/execCommand/insert-list-empty-div.html
-editing/execCommand/insertHTML.html
 editing/execCommand/insertHorizontalRule.html
 editing/execCommand/insertImage.html
 editing/execCommand/nsresponder-indent.html
 editing/execCommand/nsresponder-outdent.html
 editing/execCommand/outdent-selection.html
-editing/execCommand/outdent-nested-lists-1.html
-editing/execCommand/outdent-nested-lists-2.html
-editing/execCommand/outdent-nested-lists-3.html
-editing/execCommand/outdent-nested-lists-4.html
 editing/execCommand/paste-1.html
 editing/execCommand/paste-2.html
 editing/execCommand/print.html
 editing/execCommand/remove-formatting-2.html
 editing/execCommand/remove-formatting.html
-editing/execCommand/remove-list-1.html
 editing/execCommand/remove-list-from-range-selection.html
 editing/execCommand/remove-list-item-1.html
-editing/execCommand/remove-list-items.html
 editing/execCommand/selectAll.html
-editing/execCommand/switch-list-type.html
 editing/input/emacs-ctrl-o.html
-editing/inserting/12882.html
 editing/inserting/4278698.html
-editing/inserting/4840662.html
-editing/inserting/4875189-1.html
-editing/inserting/4875189-2.html
-editing/inserting/4959067.html
 editing/inserting/4960120-1.html
-editing/inserting/4960120-2.html
-editing/inserting/5002441.html
-editing/inserting/5058163-1.html
-editing/inserting/5058163-2.html
-editing/inserting/5156401-2.html
-editing/inserting/5418891.html
-editing/inserting/5510537.html
-editing/inserting/5549929-2.html
-editing/inserting/5549929-3.html
 editing/inserting/5607069-2.html
 editing/inserting/5607069-3.html
-editing/inserting/6633727.html
-editing/inserting/6703873.html
 editing/inserting/before-after-input-element.html
 editing/inserting/editable-html-element.html
-editing/inserting/editable-inline-element.html
-editing/inserting/edited-whitespace-1.html
 editing/inserting/editing-empty-divs.html
-editing/inserting/insert-3654864-fix.html
-editing/inserting/insert-3659587-fix.html
-editing/inserting/insert-3775316-fix.html
 editing/inserting/insert-3778059-fix.html
 editing/inserting/insert-3786362-fix.html
-editing/inserting/insert-3800346-fix.html
-editing/inserting/insert-3851164-fix.html
-editing/inserting/insert-3907422-fix.html
-editing/inserting/insert-after-delete-001.html
 editing/inserting/insert-at-end-01.html
 editing/inserting/insert-at-end-02.html
 editing/inserting/insert-br-001.html
 editing/inserting/insert-br-002.html
 editing/inserting/insert-br-003.html
 editing/inserting/insert-br-004.html
-editing/inserting/insert-br-005.html
 editing/inserting/insert-br-006.html
 editing/inserting/insert-br-007.html
 editing/inserting/insert-br-008.html
@@ -1074,15 +952,9 @@ editing/inserting/insert-br-quoted-003.html
 editing/inserting/insert-br-quoted-004.html
 editing/inserting/insert-br-quoted-005.html
 editing/inserting/insert-br-quoted-006.html
-editing/inserting/insert-div-001.html
-editing/inserting/insert-div-002.html
-editing/inserting/insert-div-003.html
-editing/inserting/insert-div-004.html
-editing/inserting/insert-div-005.html
 editing/inserting/insert-div-006.html
 editing/inserting/insert-div-007.html
 editing/inserting/insert-div-008.html
-editing/inserting/insert-div-009.html
 editing/inserting/insert-div-010.html
 editing/inserting/insert-div-011.html
 editing/inserting/insert-div-012.html
@@ -1097,7 +969,6 @@ editing/inserting/insert-div-020.html
 editing/inserting/insert-div-021.html
 editing/inserting/insert-div-022.html
 editing/inserting/insert-div-023.html
-editing/inserting/insert-div-024.html
 editing/inserting/insert-div-025.html
 editing/inserting/insert-div-026.html
 editing/inserting/insert-div-027.html
@@ -1106,7 +977,6 @@ editing/inserting/insert-paragraph-02.html
 editing/inserting/insert-paragraph-03.html
 editing/inserting/insert-paragraph-04.html
 editing/inserting/insert-paragraph-05.html
-editing/inserting/insert-space-in-empty-doc.html
 editing/inserting/insert-tab-001.html
 editing/inserting/insert-tab-002.html
 editing/inserting/insert-tab-003.html
@@ -1114,7 +984,6 @@ editing/inserting/insert-tab-004.html
 editing/inserting/insert-text-at-tabspan-001.html
 editing/inserting/insert-text-at-tabspan-002.html
 editing/inserting/insert-text-at-tabspan-003.html
-editing/inserting/insert-text-with-newlines.html
 editing/inserting/line-break.html
 editing/inserting/multiple-lines-selected.html
 editing/inserting/paragraph-separator-01.html
@@ -1122,24 +991,14 @@ editing/inserting/paragraph-separator-02.html
 editing/inserting/paragraph-separator-03.html
 editing/inserting/paragraph-separator-in-table-1.html
 editing/inserting/paragraph-separator-in-table-2.html
-editing/inserting/redo.html
 editing/inserting/return-key-with-selection-001.html
 editing/inserting/return-key-with-selection-002.html
 editing/inserting/return-key-with-selection-003.html
-editing/inserting/typing-001.html
-editing/inserting/typing-002.html
-editing/inserting/typing-003.html
-editing/inserting/typing-around-br-001.html
-editing/inserting/typing-around-image-001.html
 editing/inserting/typing-tab-designmode-forms.html
-editing/pasteboard/7955.html
 editing/pasteboard/8145-1.html
 editing/pasteboard/8145-2.html
 editing/pasteboard/8145-3.html
 editing/pasteboard/3976872.html
-editing/pasteboard/4076267-2.html
-editing/pasteboard/4076267-3.html
-editing/pasteboard/4076267.html
 editing/pasteboard/4242293-1.html
 editing/pasteboard/4242293.html
 editing/pasteboard/4631972.html
@@ -1154,27 +1013,17 @@ editing/pasteboard/4989774.html
 editing/pasteboard/5006779.html
 editing/pasteboard/5027857.html
 editing/pasteboard/5028447.html
-editing/pasteboard/5032095.html
 editing/pasteboard/5065605.html
-editing/pasteboard/5071074-2.html
 editing/pasteboard/5071074.html
 editing/pasteboard/5075944-2.html
-editing/pasteboard/5075944-3.html
 editing/pasteboard/5075944.html
-editing/pasteboard/5089327.html
-editing/pasteboard/5134759.html
-editing/pasteboard/5156401-1.html
 editing/pasteboard/5247341.html
-editing/pasteboard/5368833.html
-editing/pasteboard/5387578.html
 editing/pasteboard/5478250.html
-editing/pasteboard/5483567.html
 editing/pasteboard/5601583-1.html
 editing/pasteboard/bad-placeholder.html
 editing/pasteboard/block-wrappers-necessary.html
 editing/pasteboard/copy-paste-bidi.html
 editing/pasteboard/copy-standalone-image.html
-editing/pasteboard/cut-text-001.html
 editing/pasteboard/displaced-generic-placeholder.html
 editing/pasteboard/displaced-placeholder.html
 editing/pasteboard/display-block-on-spans.html
@@ -1187,8 +1036,6 @@ editing/pasteboard/drop-text-without-selection.html
 editing/pasteboard/emacs-cntl-y-001.html
 editing/pasteboard/emacs-ctrl-a-k-y.html
 editing/pasteboard/emacs-ctrl-k-y-001.html
-editing/pasteboard/file-input-files-access.html
-editing/pasteboard/innerText-inline-table.html
 editing/pasteboard/input-field-1.html
 editing/pasteboard/interchange-newline-1.html
 editing/pasteboard/interchange-newline-2.html
@@ -1215,14 +1062,6 @@ editing/pasteboard/paste-4038267-fix.html
 editing/pasteboard/paste-4039777-fix.html
 editing/pasteboard/paste-RTFD.html
 editing/pasteboard/paste-TIFF.html
-editing/pasteboard/paste-blockquote-1.html
-editing/pasteboard/paste-blockquote-2.html
-editing/pasteboard/paste-blockquote-3.html
-editing/pasteboard/paste-blockquote-after-blockquote.html
-editing/pasteboard/paste-blockquote-into-blockquote-2.html
-editing/pasteboard/paste-blockquote-into-blockquote-3.html
-editing/pasteboard/paste-blockquote-into-blockquote-4.html
-editing/pasteboard/paste-blockquote-into-blockquote.html
 editing/pasteboard/paste-line-endings-001.html
 editing/pasteboard/paste-line-endings-002.html
 editing/pasteboard/paste-line-endings-003.html
@@ -1238,23 +1077,11 @@ editing/pasteboard/paste-match-style-001.html
 editing/pasteboard/paste-match-style-002.html
 editing/pasteboard/paste-pre-001.html
 editing/pasteboard/paste-pre-002.html
-editing/pasteboard/paste-table-001.html
 editing/pasteboard/paste-table-003.html
 editing/pasteboard/paste-table-cells.html
-editing/pasteboard/paste-text-001.html
-editing/pasteboard/paste-text-002.html
-editing/pasteboard/paste-text-003.html
-editing/pasteboard/paste-text-004.html
-editing/pasteboard/paste-text-005.html
-editing/pasteboard/paste-text-006.html
-editing/pasteboard/paste-text-007.html
-editing/pasteboard/paste-text-008.html
-editing/pasteboard/paste-text-009.html
-editing/pasteboard/paste-text-010.html
 editing/pasteboard/paste-text-011.html
 editing/pasteboard/paste-text-012.html
 editing/pasteboard/paste-text-014.html
-editing/pasteboard/paste-text-015.html
 editing/pasteboard/paste-text-016.html
 editing/pasteboard/paste-text-017.html
 editing/pasteboard/paste-text-018.html
@@ -1263,12 +1090,10 @@ editing/pasteboard/paste-text-at-tabspan-001.html
 editing/pasteboard/paste-text-at-tabspan-002.html
 editing/pasteboard/paste-text-at-tabspan-003.html
 editing/pasteboard/paste-unrendered-select.html
-editing/pasteboard/paste-xml.xhtml
 editing/pasteboard/pasting-object.html
 editing/pasteboard/pasting-tabs.html
 editing/pasteboard/prevent-block-nesting-01.html
 editing/pasteboard/quirks-mode-br-1.html
-editing/pasteboard/select-element-1.html
 editing/pasteboard/smart-paste-001.html
 editing/pasteboard/smart-paste-002.html
 editing/pasteboard/smart-paste-003.html
@@ -1285,55 +1110,24 @@ editing/pasteboard/unrendered-br.html
 editing/selection/6476.html
 editing/selection/7152-1.html
 editing/selection/7152-2.html
-editing/selection/13804.html
-editing/selection/14971.html
 editing/selection/3690703-2.html
 editing/selection/3690703.html
 editing/selection/3690719.html
 editing/selection/4397952.html
 editing/selection/4402375.html
 editing/selection/4776665.html
-editing/selection/4818145.html
-editing/selection/4866671.html
-editing/selection/4889598.html
 editing/selection/4895428-1.html
-editing/selection/4895428-2.html
 editing/selection/4895428-3.html
 editing/selection/4895428-4.html
 editing/selection/4932260-1.html
 editing/selection/4932260-2.html
 editing/selection/4932260-3.html
 editing/selection/4947387.html
-editing/selection/4960116.html
-editing/selection/4960137.html
 editing/selection/4975120.html
-editing/selection/4983858.html
-editing/selection/5007143-2.html
-editing/selection/5007143.html
-editing/selection/5057506-2.html
-editing/selection/5057506.html
-editing/selection/5076323-1.html
-editing/selection/5076323-2.html
-editing/selection/5076323-3.html
-editing/selection/5081257-1.html
-editing/selection/5081257-2.html
-editing/selection/5099303.html
-editing/selection/5109817.html
-editing/selection/5131716-1.html
-editing/selection/5131716-2.html
-editing/selection/5131716-3.html
-editing/selection/5131716-4.html
 editing/selection/5136696.html
 editing/selection/5195166-1.html
 editing/selection/5195166-2.html
-editing/selection/5232159.html
-editing/selection/5234383-1.html
-editing/selection/5234383-2.html
 editing/selection/5240265.html
-editing/selection/5333725.html
-editing/selection/5354455-1.html
-editing/selection/5354455-2.html
-editing/selection/addRange.html
 editing/selection/after-line-wrap.html
 editing/selection/caret-and-focus-ring.html
 editing/selection/caret-before-select.html
@@ -1346,9 +1140,7 @@ editing/selection/contenteditable-click-inside.html
 editing/selection/designmode-no-caret.html
 editing/selection/display-table-text.html
 editing/selection/doubleclick-crash.html
-editing/selection/drag-in-iframe.html
 editing/selection/drag-select-1.html
-editing/selection/drag-start-event-client-x-y.html
 editing/selection/drag-to-contenteditable-iframe.html
 editing/selection/editable-html-element.html
 editing/selection/editable-links.html
@@ -1357,22 +1149,14 @@ editing/selection/end-of-document.html
 editing/selection/expanding-selections2.html
 editing/selection/expanding-selections.html
 editing/selection/extend-by-character-001.html
-editing/selection/extend-by-character-002.html
-editing/selection/extend-by-character-003.html
-editing/selection/extend-by-character-004.html
-editing/selection/extend-by-character-005.html
 editing/selection/extend-by-character-006.html
 editing/selection/extend-by-sentence-001.html
 editing/selection/extend-by-word-001.html
 editing/selection/extend-by-word-002.html
 editing/selection/fake-doubleclick.html
-editing/selection/fake-drag.html
 editing/selection/focus-body.html
 editing/selection/focus_editable_html.html
-editing/selection/iframe.html
 editing/selection/image-before-linebreak.html
-editing/selection/inline-closest-leaf-child.html
-editing/selection/inline-table.html
 editing/selection/leave-requested-block.html
 editing/selection/line-wrap-1.html
 editing/selection/line-wrap-2.html
@@ -1381,27 +1165,14 @@ editing/selection/mixed-editability-2.html
 editing/selection/mixed-editability-3.html
 editing/selection/mixed-editability-4.html
 editing/selection/mixed-editability-5.html
-editing/selection/mixed-editability-6.html
-editing/selection/mixed-editability-7.html
 editing/selection/mixed-editability-8.html
 editing/selection/mixed-editability-9.html
 editing/selection/move-3875618-fix.html
 editing/selection/move-3875641-fix.html
-editing/selection/move-backwords-by-word-001.html
-editing/selection/move-between-blocks-no-001.html
-editing/selection/move-between-blocks-yes-001.html
-editing/selection/move-by-character-001.html
-editing/selection/move-by-character-002.html
-editing/selection/move-by-character-003.html
-editing/selection/move-by-character-004.html
-editing/selection/move-by-character-005.html
 editing/selection/move-by-character-6.html
 editing/selection/move-by-line-001.html
 editing/selection/move-by-line-002.html
-editing/selection/move-by-sentence-001.html
-editing/selection/move-by-sentence-linebreak.html
 editing/selection/move-by-word-001.html
-editing/selection/move-past-trailing-space.html
 editing/selection/node-removal-1.html
 editing/selection/node-removal-2.html
 editing/selection/paragraph-granularity.html
@@ -1417,12 +1188,9 @@ editing/selection/select-all-004.html
 editing/selection/select-all-005.html
 editing/selection/select-all-006.html
 editing/selection/select-all-iframe.html
-editing/selection/select-box.html
 editing/selection/select-element-paragraph-boundary.html
 editing/selection/select-from-textfield-outwards.html
 editing/selection/select-missing-image.html
-editing/selection/selectNode.html
-editing/selection/selectNodeContents.html
 editing/selection/selection-3748164-fix.html
 editing/selection/selection-actions.html
 editing/selection/selection-background.html
@@ -1436,28 +1204,13 @@ editing/selection/unrendered-003.html
 editing/selection/unrendered-004.html
 editing/selection/unrendered-005.html
 editing/selection/unrendered-space.html
-editing/selection/user-drag-element-and-user-select-none.html
 editing/selection/word-granularity.html
-editing/selection/wrapped-line-caret-1.html
-editing/selection/wrapped-line-caret-2.html
 editing/spelling/inline_spelling_markers.html
 editing/spelling/spellcheck-attribute.html
-editing/spelling/spelling-linebreak.html
-editing/spelling/spelling.html
-editing/style/4916887.html
-editing/style/5017613-1.html
-editing/style/5017613-2.html
-editing/style/5046875-1.html
-editing/style/5046875-2.html
 editing/style/5065910.html
-editing/style/5084241.html
-editing/style/5228141.html
-editing/style/5279521.html
-editing/style/apply-through-end-of-document.html
 editing/style/apple-style-editable-mix.html
 editing/style/block-style-001.html
 editing/style/block-style-002.html
-editing/style/block-style-003.html
 editing/style/block-style-004.html
 editing/style/block-style-005.html
 editing/style/block-style-006.html
@@ -1477,20 +1230,12 @@ editing/style/create-block-for-style-012.html
 editing/style/create-block-for-style-013.html
 editing/style/designmode.html
 editing/style/font-family-with-space.html
-editing/style/fontsize-1.html
-editing/style/highlight.html
 editing/style/non-inheritable-styles.html
-editing/style/relative-font-size-change-001.html
 editing/style/relative-font-size-change-002.html
 editing/style/relative-font-size-change-003.html
 editing/style/relative-font-size-change-004.html
-editing/style/remove-underline-from-stylesheet.html
-editing/style/remove-underline-in-bold.html
 editing/style/smoosh-styles-001.html
 editing/style/smoosh-styles-003.html
-editing/style/style-3681552-fix-001.html
-editing/style/style-3681552-fix-002.html
-editing/style/style-3690704-fix.html
 editing/style/style-3998892-fix.html
 editing/style/style-boundary-001.html
 editing/style/style-boundary-002.html
@@ -1498,20 +1243,6 @@ editing/style/style-boundary-003.html
 editing/style/style-boundary-004.html
 editing/style/style-boundary-005.html
 editing/style/table-selection.html
-editing/style/typing-style-001.html
-editing/style/typing-style-002.html
-editing/style/typing-style-003.html
-editing/style/unbold-in-bold.html
-editing/undo/4063751.html
-editing/undo/5378473.html
-editing/undo/redo-typing-001.html
-editing/undo/undo-combined-delete-boundary.html
-editing/undo/undo-combined-delete.html
-editing/undo/undo-delete-boundary.html
-editing/undo/undo-delete.html
-editing/undo/undo-forward-delete-boundary.html
-editing/undo/undo-forward-delete.html
-editing/undo/undo-misspellings.html
 editing/undo/undo-typing-001.html
 editing/unsupported-content/list-delete-001.html
 editing/unsupported-content/list-delete-003.html
diff --git a/LayoutTests/platform/gtk/editing/deleting/4922367-expected.txt b/LayoutTests/platform/gtk/editing/deleting/4922367-expected.txt
new file mode 100644
index 0000000..c73e5c1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/4922367-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x40
+          text run at (0,0) width 386: "This tests selecting and deleting the paragraph before a table. "
+          text run at (386,0) width 390: "You should see only a table in the editable region below, with"
+          text run at (0,20) width 139: "the caret just before it."
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderTable {TABLE} at (0,0) size 32x30 [border: (1px solid #BBBBBB)]
+            RenderTableSection {TBODY} at (1,1) size 30x28
+              RenderTableRow {TR} at (0,2) size 30x24
+                RenderTableCell {TD} at (2,2) size 12x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x20
+                    text run at (2,2) width 8: "1"
+                RenderTableCell {TD} at (16,2) size 12x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x20
+                    text run at (2,2) width 8: "2"
+          RenderBlock (anonymous) at (0,30) size 784x0
+        RenderBlock (anonymous) at (0,30) size 784x0
+      RenderBlock {UL} at (0,102) size 784x0
+caret: position 0 of child 0 {TABLE} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5026848-1-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5026848-1-expected.txt
new file mode 100644
index 0000000..2cb0a9b
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5026848-1-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 746x40
+          text run at (0,0) width 577: "This tests the deletion of non-editable content that is in both the start and end editable roots. "
+          text run at (577,0) width 141: "It should be removed. "
+          text run at (718,0) width 28: "You"
+          text run at (0,20) width 323: "shouldn't see anything in the editable region below."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBR {BR} at (0,0) size 0x20
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5026848-2-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5026848-2-expected.txt
new file mode 100644
index 0000000..c40ab20
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5026848-2-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 758x40
+          text run at (0,0) width 758: "This tests to see that selected non-editable nodes that are not in both the start and end editable root are preserved during a"
+          text run at (0,20) width 58: "deletion. "
+          text run at (58,20) width 526: "You should see two 'Non-editable' pieces on either side of the editable piece below."
+      RenderBlock {DIV} at (0,56) size 784x26
+        RenderTable {TABLE} at (0,0) size 280x26
+          RenderTableSection {TBODY} at (0,0) size 280x26
+            RenderTableRow {TR} at (0,2) size 280x22
+              RenderTableCell {TD} at (2,2) size 84x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 82x20
+                  text run at (1,1) width 82: "Non-editable"
+              RenderTableCell {TD} at (88,2) size 104x22 [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 56x20
+                  text run at (1,1) width 56: "Editable "
+                RenderInline {SPAN} at (0,0) size 46x20
+                  RenderText {#text} at (57,1) size 46x20
+                    text run at (57,1) width 46: "content"
+              RenderTableCell {TD} at (194,2) size 84x22 [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 82x20
+                  text run at (1,1) width 82: "Non-editable"
+        RenderBlock (anonymous) at (0,26) size 784x0
+caret: position 9 of child 0 {#text} of child 3 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5026848-3-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5026848-3-expected.txt
new file mode 100644
index 0000000..05cab0c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5026848-3-expected.txt
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 777x80
+          text run at (0,0) width 671: "This tests to see that selected editable nodes that are not in both the start and end editable roots are cleared. "
+          text run at (671,0) width 98: "You should see"
+          text run at (0,20) width 471: "one non-editable piece and an editable one and then two empty table cells. "
+          text run at (471,20) width 306: "The table cells are editable but are preserved and"
+          text run at (0,40) width 348: "not removed because they are in a non-editable region. "
+          text run at (348,40) width 407: "They should be completely cleared out, even the second one that"
+          text run at (0,60) width 186: "contains a non-editable piece."
+      RenderBlock {DIV} at (0,96) size 784x30
+        RenderTable {TABLE} at (0,0) size 212x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 210x28
+            RenderTableRow {TR} at (0,2) size 210x24
+              RenderTableCell {TD} at (2,2) size 86x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 82x20
+                  text run at (2,2) width 82: "Non-editable"
+              RenderTableCell {TD} at (90,2) size 106x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 56x20
+                  text run at (2,2) width 56: "Editable "
+                RenderInline {SPAN} at (0,0) size 46x20
+                  RenderText {#text} at (58,2) size 46x20
+                    text run at (58,2) width 46: "content"
+              RenderTableCell {TD} at (198,2) size 4x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+              RenderTableCell {TD} at (204,2) size 4x24 [border: (1px inset #808080)] [r=0 c=3 rs=1 cs=1]
+        RenderBlock (anonymous) at (0,30) size 784x0
+caret: position 9 of child 0 {#text} of child 3 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5032066-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5032066-expected.txt
new file mode 100644
index 0000000..f8cdddf
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5032066-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 747x40
+          text run at (0,0) width 497: "This tests deleting when the caret is at the start of a paragraph just after a table. "
+          text run at (497,0) width 250: "The content in that paragraph should be"
+          text run at (0,20) width 402: "moved into the last table cell unless that content is another table."
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderTable {TABLE} at (0,0) size 414x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 412x28
+            RenderTableRow {TR} at (0,2) size 412x24
+              RenderTableCell {TD} at (2,2) size 408x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 236x20
+                  text run at (2,2) width 236: "All the content in this editable region "
+                RenderInline {SPAN} at (0,0) size 168x20
+                  RenderText {#text} at (238,2) size 168x20
+                    text run at (238,2) width 168: "should be in one table cell."
+caret: position 40 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5091898-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5091898-expected.txt
new file mode 100644
index 0000000..82b221c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5091898-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x40
+          text run at (0,0) width 767: "This tests for a bug where underlined content would lose its underlining when deleting the line break before the paragraph"
+          text run at (0,20) width 104: "that contained it."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 183x20
+          text run at (0,0) width 183: "This shouldn't be underlined."
+        RenderInline {DIV} at (0,0) size 168x20
+          RenderText {#text} at (183,0) size 168x20
+            text run at (183,0) width 168: "This should be underlined."
+caret: position 29 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5099303-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5099303-expected.txt
new file mode 100644
index 0000000..b2b448e
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5099303-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 756x20
+          text run at (0,0) width 756: "This tests for a bug where deleting from the start of a paragraph after a table would leave the caret in the wrong position."
+      RenderBlock {DIV} at (0,36) size 784x50
+        RenderTable {TABLE} at (0,0) size 348x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 346x28
+            RenderTableRow {TR} at (0,2) size 346x24
+              RenderTableCell {TD} at (2,2) size 336x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 332x20
+                  text run at (2,2) width 332: "The caret should be between these two parenthesis: ("
+              RenderTableCell {TD} at (340,12) size 4x4 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+        RenderBlock {DIV} at (0,30) size 784x20
+          RenderText {#text} at (0,0) size 9x20
+            text run at (0,0) width 9: ")."
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5115601-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5115601-expected.txt
new file mode 100644
index 0000000..4908a5b
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5115601-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 743x40
+          text run at (0,0) width 743: "This tests to make sure that after a deletion, merging can merge into an editable region that's embedded in non-editable"
+          text run at (0,20) width 251: "content that is collapsed by the deletion."
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderTable {TABLE} at (0,0) size 308x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 306x28
+            RenderTableRow {TR} at (0,2) size 306x24
+              RenderTableCell {TD} at (2,2) size 302x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 298x20
+                  RenderInline {SPAN} at (0,0) size 298x20
+                    RenderText {#text} at (2,2) size 298x20
+                      text run at (2,2) width 298: "This sentence should be inside the editable cell."
+                  RenderBR {BR} at (300,17) size 0x0
+        RenderBlock (anonymous) at (0,30) size 784x0
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5126166-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5126166-expected.txt
new file mode 100644
index 0000000..f9bc277
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5126166-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 779x40
+          text run at (0,0) width 414: "This tests deleting a selection that ends inside an empty table cell. "
+          text run at (414,0) width 365: "No merging should happen, only editable selected content"
+          text run at (0,20) width 124: "should be removed."
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderTable {TABLE} at (0,0) size 16x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 14x28
+            RenderTableRow {TR} at (0,2) size 14x24
+              RenderTableCell {TD} at (2,12) size 4x4 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+              RenderTableCell {TD} at (8,2) size 4x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+        RenderTable {TABLE} at (0,30) size 351x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 349x28
+            RenderTableRow {TR} at (0,2) size 349x24
+              RenderTableCell {TD} at (2,12) size 4x4 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+              RenderTableCell {TD} at (8,2) size 339x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 335x20
+                  text run at (2,2) width 335: "There should be one empty cell to the left of this one."
+caret: position 0 of child 0 {BR} of child 3 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5156801-2-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5156801-2-expected.txt
new file mode 100644
index 0000000..bfc3bf7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5156801-2-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 626x20
+          text run at (0,0) width 626: "This tests for a crash when deleting the contents of a table cell. You should just see 'Cached' below."
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderTable {TABLE} at (0,0) size 48x40
+          RenderTableSection {TBODY} at (0,0) size 48x40
+            RenderTableRow {TR} at (0,0) size 48x40
+              RenderTableCell {TD} at (0,0) size 48x40 [r=0 c=0 rs=1 cs=1]
+                RenderBR {BR} at (0,0) size 0x20
+                RenderInline {A} at (0,0) size 48x20 [color=#0000EE]
+                  RenderText {#text} at (0,20) size 48x20
+                    text run at (0,20) width 48: "Cached"
+caret: position 6 of child 0 {#text} of child 1 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5206311-1-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5206311-1-expected.txt
new file mode 100644
index 0000000..514dbe4
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5206311-1-expected.txt
@@ -0,0 +1,94 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x44
+        RenderText {#text} at (0,1) size 350x20
+          text run at (0,1) width 209: "This empties a row (the second). "
+          text run at (209,1) width 141: "It should be removed. "
+        RenderInline {B} at (0,0) size 768x44
+          RenderText {#text} at (350,0) size 768x44
+            text run at (350,0) width 418: "This demonstrates a bug: the two cells that contained the ends"
+            text run at (0,22) width 646: "of the selection aren't given a placeholder and so appear differently than the other emptied cells."
+      RenderBlock {DIV} at (0,60) size 784x56
+        RenderTable {TABLE} at (0,0) size 38x56 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 36x54
+            RenderTableRow {TR} at (0,2) size 36x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "1"
+              RenderTableCell {TD} at (16,2) size 4x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (22,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+            RenderTableRow {TR} at (0,28) size 36x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (16,28) size 4x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (22,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "9"
+      RenderBlock {P} at (0,132) size 784x20
+        RenderText {#text} at (0,0) size 593x20
+          text run at (0,0) width 593: "This empties a row (the second), but it still contains the selection and so shouldn't be removed."
+      RenderBlock {DIV} at (0,168) size 784x82
+        RenderTable {TABLE} at (0,0) size 46x82 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x80
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "1"
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "2"
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "3"
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+            RenderTableRow {TR} at (0,54) size 44x24
+              RenderTableCell {TD} at (2,54) size 12x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "7"
+              RenderTableCell {TD} at (16,54) size 12x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "8"
+              RenderTableCell {TD} at (30,54) size 12x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "9"
+      RenderBlock {P} at (0,266) size 784x20
+        RenderText {#text} at (0,0) size 304x20
+          text run at (0,0) width 304: "This empties the first row, it should be removed."
+      RenderBlock {DIV} at (0,302) size 784x76
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 39x20
+            text run at (0,0) width 35: "Hello"
+            text run at (35,0) width 4: " "
+        RenderTable {TABLE} at (0,20) size 46x56 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x54
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "6"
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "7"
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "8"
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "9"
+caret: position 6 of child 0 {#text} of child 1 {DIV} of child 14 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5206311-2-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5206311-2-expected.txt
new file mode 100644
index 0000000..cfb67f0
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5206311-2-expected.txt
@@ -0,0 +1,76 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 746x20
+          text run at (0,0) width 746: "This empties the last row, it should be removed. 'world!' should also be brought into the second cell of the second row."
+      RenderBlock {DIV} at (0,36) size 784x56
+        RenderTable {TABLE} at (0,0) size 80x56 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 78x54
+            RenderTableRow {TR} at (0,2) size 78x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "1"
+              RenderTableCell {TD} at (16,2) size 46x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "2"
+              RenderTableCell {TD} at (64,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "3"
+            RenderTableRow {TR} at (0,28) size 78x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "4"
+              RenderTableCell {TD} at (16,28) size 46x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 42x20
+                  RenderText {#text} at (2,2) size 42x20
+                    text run at (2,2) width 42: "world!"
+              RenderTableCell {TD} at (64,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+      RenderBlock {P} at (0,108) size 784x20
+        RenderText {#text} at (0,0) size 631x20
+          text run at (0,0) width 631: "This empties a the last row of the first table and the first of the second, they should both be removed."
+      RenderBlock {DIV} at (0,144) size 784x112
+        RenderTable {TABLE} at (0,0) size 46x56 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x54
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "1"
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "2"
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "3"
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "4"
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+        RenderTable {TABLE} at (0,56) size 46x56 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x54
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x20
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "6"
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "7"
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "8"
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x20
+                  text run at (2,2) width 8: "9"
+caret: position 0 of child 0 {BR} of child 1 {TD} of child 2 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 8 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5272440-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5272440-expected.txt
new file mode 100644
index 0000000..bce4f3f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5272440-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 669x20
+          text run at (0,0) width 669: "This tests for a bug where deleting the contents of an editable root that's inline would introduce a new line."
+      RenderBlock {DIV} at (0,36) size 784x22 [border: (1px solid #000000)]
+        RenderInline {SPAN} at (0,0) size 387x20
+          RenderText {#text} at (1,1) size 387x20
+            text run at (1,1) width 387: "There shouldn't be any blank lines in the black bordered area."
+          RenderBR {BR} at (388,16) size 0x0
+caret: position 62 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5369009-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5369009-expected.txt
new file mode 100644
index 0000000..c32a02b
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5369009-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 783x41
+          text run at (0,0) width 783: "This tests for a hang on delete where a style rule would cause style spans in content moved after the delete to be displayed as"
+          text run at (0,21) width 186: "blocks. You should see Hello"
+        RenderInline {B} at (0,0) size 44x22
+          RenderText {#text} at (186,20) size 44x22
+            text run at (186,20) width 44: "World"
+        RenderText {#text} at (230,21) size 47x20
+          text run at (230,21) width 47: " below."
+      RenderBlock {DIV} at (0,58) size 784x22
+        RenderBlock {DIV} at (0,0) size 784x22
+          RenderText {#text} at (0,1) size 35x20
+            text run at (0,1) width 35: "Hello"
+          RenderInline {SPAN} at (0,0) size 44x22
+            RenderText {#text} at (35,0) size 44x22
+              text run at (35,0) width 44: "World"
+caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5390681-2-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5390681-2-expected.txt
new file mode 100644
index 0000000..5d781e5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5390681-2-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x64
+        RenderText {#text} at (0,0) size 772x41
+          text run at (0,0) width 591: "This tests for a bug where expansion for smart delete would not consider editable boundaries. "
+          text run at (591,0) width 181: "Only 'foo' should be deleted."
+          text run at (0,21) width 140: "You should see ' bar'. "
+        RenderInline {B} at (0,0) size 778x44
+          RenderText {#text} at (140,20) size 778x44
+            text run at (140,20) width 638: "There is a bug: while the non-editable space isn't deleted, deletion inserts a placeholder when it"
+            text run at (0,42) width 67: "shouldn't."
+      RenderBlock {DIV} at (0,80) size 784x20
+        RenderInline {SPAN} at (0,0) size 20x20
+          RenderText {#text} at (0,0) size 20x20
+            text run at (0,0) width 20: "bar"
diff --git a/LayoutTests/platform/gtk/editing/deleting/5390681-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5390681-expected.txt
new file mode 100644
index 0000000..326f117
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5390681-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x64
+        RenderText {#text} at (0,0) size 772x41
+          text run at (0,0) width 591: "This tests for a bug where expansion for smart delete would not consider editable boundaries. "
+          text run at (591,0) width 181: "Only 'foo' should be deleted."
+          text run at (0,21) width 140: "You should see ' bar'. "
+        RenderInline {B} at (0,0) size 778x44
+          RenderText {#text} at (140,20) size 778x44
+            text run at (140,20) width 638: "There is a bug: while the non-editable space isn't deleted, deletion inserts a placeholder when it"
+            text run at (0,42) width 67: "shouldn't."
+      RenderBlock {DIV} at (0,80) size 784x40
+        RenderBR {BR} at (0,0) size 0x20
+        RenderInline {SPAN} at (0,0) size 20x20
+          RenderText {#text} at (0,20) size 20x20
+            text run at (0,20) width 20: "bar"
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5433862-2-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5433862-2-expected.txt
new file mode 100644
index 0000000..1146137
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5433862-2-expected.txt
@@ -0,0 +1,45 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 783x40
+          text run at (0,0) width 579: "This tests for a bug where empty table rows well after the selection to delete were removed. "
+          text run at (579,0) width 204: "There should be five rows in the"
+          text run at (0,20) width 261: "table below, before and after the deletion."
+      RenderBlock {DIV} at (0,56) size 784x140
+        RenderTable {TABLE} at (0,0) size 109x140 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 107x138
+            RenderTableRow {TR} at (0,2) size 107x32
+              RenderTableCell {TD} at (2,2) size 33x32 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+              RenderTableCell {TD} at (37,2) size 32x32 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+              RenderTableCell {TD} at (71,2) size 34x32 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+            RenderTableRow {TR} at (0,36) size 107x32
+              RenderTableCell {TD} at (2,36) size 33x32 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (6,6) size 21x20
+                  text run at (6,6) width 21: "foo"
+              RenderTableCell {TD} at (37,36) size 32x32 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (6,6) size 20x20
+                  text run at (6,6) width 20: "bar"
+              RenderTableCell {TD} at (71,36) size 34x32 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (6,6) size 22x20
+                  text run at (6,6) width 22: "baz"
+            RenderTableRow {TR} at (0,70) size 107x32
+              RenderTableCell {TD} at (2,70) size 33x32 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+              RenderTableCell {TD} at (37,70) size 32x32 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+              RenderTableCell {TD} at (71,70) size 34x32 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+            RenderTableRow {TR} at (0,104) size 107x32
+              RenderTableCell {TD} at (2,104) size 33x32 [border: (1px inset #808080)] [r=3 c=0 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+              RenderTableCell {TD} at (37,104) size 32x32 [border: (1px inset #808080)] [r=3 c=1 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+              RenderTableCell {TD} at (71,104) size 34x32 [border: (1px inset #808080)] [r=3 c=2 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x20
+caret: position 0 of child 0 {BR} of child 0 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/5483370-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5483370-expected.txt
new file mode 100644
index 0000000..d6a621f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/5483370-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 761x40
+          text run at (0,0) width 706: "This tests for a problem where empty table rows after the selection being deleted would be removed incorrectly. "
+          text run at (706,0) width 55: "Only the"
+          text run at (0,20) width 343: "last letter in 'foo' should be removed during this delete."
+      RenderBlock {DIV} at (0,56) size 784x36
+        RenderTable {TABLE} at (0,0) size 29x36 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 27x34
+            RenderTableRow {TR} at (0,2) size 27x24
+              RenderTableCell {TD} at (2,2) size 17x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 13x20
+                  text run at (2,2) width 13: "fo"
+              RenderTableCell {TD} at (21,12) size 4x4 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+            RenderTableRow {TR} at (0,28) size 27x4
+              RenderTableCell {TD} at (2,28) size 17x4 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              RenderTableCell {TD} at (21,28) size 4x4 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+caret: position 2 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/collapse-whitespace-3587601-fix-expected.txt b/LayoutTests/platform/gtk/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
new file mode 100644
index 0000000..00cfdf3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-3608430-fix-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-3608430-fix-expected.txt
new file mode 100644
index 0000000..e90d8d2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-3608430-fix-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 129x30
+          RenderText {#text} at (14,14) size 129x30
+            text run at (14,14) width 129: "start-deleting"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-3608445-fix-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-3608445-fix-expected.txt
new file mode 100644
index 0000000..c9bc3b5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-3608445-fix-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 205x90
+          RenderText {#text} at (14,14) size 15x30
+            text run at (14,14) width 15: "s "
+          RenderBR {BR} at (29,37) size 0x0
+          RenderBR {BR} at (14,44) size 0x30
+          RenderText {#text} at (14,74) size 205x30
+            text run at (14,74) width 94: " war. We "
+            text run at (108,74) width 111: "of that war."
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 4 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-3608462-fix-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-3608462-fix-expected.txt
new file mode 100644
index 0000000..31a7ea4
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-3608462-fix-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x248 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 181x140
+          RenderText {#text} at (14,94) size 11x30
+            text run at (14,94) width 11: "a"
+          RenderImage {IMG} at (25,14) size 76x103
+          RenderText {#text} at (101,94) size 46x30
+            text run at (101,94) width 46: "new "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderImage {IMG} at (14,124) size 76x103
+          RenderText {#text} at (90,204) size 105x30
+            text run at (90,204) width 105: " conceived"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 4 {IMG} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-3775172-fix-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-3775172-fix-expected.txt
new file mode 100644
index 0000000..a98db6d
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-3775172-fix-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x20
+        RenderBR {BR} at (0,0) size 0x20
+      RenderBlock {DIV} at (0,20) size 784x0
+        RenderInline {SPAN} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 0 {BR} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-3800834-fix-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-3800834-fix-expected.txt
new file mode 100644
index 0000000..c7357b2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-3800834-fix-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderInline {SPAN} at (0,0) size 37x30
+            RenderText {#text} at (0,0) size 37x30
+              text run at (0,0) width 37: "Foo"
+        RenderBlock (anonymous) at (14,44) size 756x0
+        RenderBlock (anonymous) at (14,44) size 756x0
+          RenderInline {SPAN} at (0,0) size 0x0
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-3959464-fix-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-3959464-fix-expected.txt
new file mode 100644
index 0000000..cf89c4a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-3959464-fix-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x91 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,14) size 715x61
+          text run at (14,14) width 715: "Should see \"foo\" and \"bar\" each in a separate red box. Note that the \"foo\""
+          text run at (14,45) width 197: "text is really \"foo \". "
+          text run at (211,45) width 63: "There "
+        RenderInline {B} at (0,0) size 50x33
+          RenderText {#text} at (274,44) size 50x33
+            text run at (274,44) width 50: "must"
+        RenderText {#text} at (324,45) size 318x30
+          text run at (324,45) width 318: " be a space at the end of the line."
+      RenderBlock {DIV} at (0,115) size 784x174
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,14) size 32x30
+            text run at (14,14) width 32: "foo"
+        RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+          RenderBR {BR} at (14,14) size 0x30
+        RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+          RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-and-undo-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-and-undo-expected.txt
new file mode 100644
index 0000000..729e7e5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-and-undo-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,14) size 756x60
+          text run at (14,14) width 756: "Should see \"foo bar baz\" in the red box. Insertion point should be between the"
+          text run at (14,44) width 202: "\"b\" and \"a\" of \"baz\"."
+      RenderBlock {DIV} at (0,112) size 784x58
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,14) size 109x30
+            text run at (14,14) width 109: "foo bar baz"
+caret: position 9 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-001-expected.txt
new file mode 100644
index 0000000..00cfdf3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-001-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-002-expected.txt
new file mode 100644
index 0000000..00cfdf3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-002-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-003-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-003-expected.txt
new file mode 100644
index 0000000..98b6f35
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-contents-003-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 109x30
+          RenderText {#text} at (14,14) size 109x30
+            text run at (14,14) width 38: "foo "
+            text run at (52,14) width 37: "bar "
+            text run at (89,14) width 34: "baz"
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-010-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-010-expected.txt
new file mode 100644
index 0000000..5a9abed
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-010-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderText {#text} at (0,0) size 40x30
+            text run at (0,0) width 40: "One"
+          RenderText {#text} at (40,0) size 44x30
+            text run at (40,0) width 44: "Two"
+          RenderText {#text} at (84,0) size 57x30
+            text run at (84,0) width 57: "Three"
+          RenderText {#text} at (141,0) size 45x30
+            text run at (141,0) width 45: "Four"
+caret: position 5 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-012-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-012-expected.txt
new file mode 100644
index 0000000..9c5b3d1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-012-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,0) size 71x30
+              text run at (0,0) width 71: "This is "
+            RenderText {#text} at (71,0) size 106x30
+              text run at (71,0) width 106: " some text."
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-013-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-013-expected.txt
new file mode 100644
index 0000000..93d8260
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-013-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,0) size 71x30
+              text run at (0,0) width 71: "This is "
+            RenderText {#text} at (71,0) size 100x30
+              text run at (71,0) width 100: "some text."
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-014-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-014-expected.txt
new file mode 100644
index 0000000..1bd31c7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-014-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,0) size 65x30
+              text run at (0,0) width 65: "This is"
+            RenderText {#text} at (65,0) size 106x30
+              text run at (65,0) width 106: " some text."
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-015-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-015-expected.txt
new file mode 100644
index 0000000..1bd31c7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-015-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,0) size 65x30
+              text run at (0,0) width 65: "This is"
+            RenderText {#text} at (65,0) size 106x30
+              text run at (65,0) width 106: " some text."
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-016-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-016-expected.txt
new file mode 100644
index 0000000..1bd31c7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-016-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,0) size 65x30
+              text run at (0,0) width 65: "This is"
+            RenderText {#text} at (65,0) size 106x30
+              text run at (65,0) width 106: " some text."
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-017-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-017-expected.txt
new file mode 100644
index 0000000..9c5b3d1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-block-merge-contents-017-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,0) size 71x30
+              text run at (0,0) width 71: "This is "
+            RenderText {#text} at (71,0) size 106x30
+              text run at (71,0) width 106: " some text."
+caret: position 8 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-001-expected.txt
new file mode 100644
index 0000000..23cfcb3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-001-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 296x30
+          RenderText {#text} at (14,14) size 204x30
+            text run at (14,14) width 102: "Fourscore "
+            text run at (116,14) width 41: "and "
+            text run at (157,14) width 61: "seven "
+          RenderText {#text} at (218,14) size 92x30
+            text run at (218,14) width 92: "years ago"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-002-expected.txt
new file mode 100644
index 0000000..59ad488
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-002-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x90
+          RenderText {#text} at (14,14) size 204x30
+            text run at (14,14) width 102: "Fourscore "
+            text run at (116,14) width 41: "and "
+            text run at (157,14) width 61: "seven "
+          RenderBR {BR} at (218,37) size 0x0
+          RenderBR {BR} at (14,44) size 0x30
+          RenderText {#text} at (14,74) size 92x30
+            text run at (14,74) width 92: "years ago"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 2 {BR} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-003-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-003-expected.txt
new file mode 100644
index 0000000..10753da
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-003-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x90
+          RenderText {#text} at (14,14) size 204x30
+            text run at (14,14) width 102: "Fourscore "
+            text run at (116,14) width 41: "and "
+            text run at (157,14) width 61: "seven "
+          RenderBR {BR} at (218,37) size 0x0
+          RenderBR {BR} at (14,44) size 0x30
+          RenderText {#text} at (14,74) size 92x30
+            text run at (14,74) width 92: "years ago"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-004-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-004-expected.txt
new file mode 100644
index 0000000..5b3a79c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-004-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x90
+          RenderText {#text} at (14,14) size 204x30
+            text run at (14,14) width 102: "Fourscore "
+            text run at (116,14) width 41: "and "
+            text run at (157,14) width 61: "seven "
+          RenderBR {BR} at (218,37) size 0x0
+          RenderBR {BR} at (14,44) size 0x30
+          RenderText {#text} at (14,74) size 92x30
+            text run at (14,74) width 92: "years ago"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-005-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-005-expected.txt
new file mode 100644
index 0000000..83c01fb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-005-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x60
+          RenderText {#text} at (14,14) size 204x30
+            text run at (14,14) width 102: "Fourscore "
+            text run at (116,14) width 41: "and "
+            text run at (157,14) width 61: "seven "
+          RenderBR {BR} at (218,37) size 0x0
+          RenderText {#text} at (14,44) size 92x30
+            text run at (14,44) width 92: "years ago"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-006-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-006-expected.txt
new file mode 100644
index 0000000..97db150
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-006-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 296x30
+          RenderText {#text} at (14,14) size 204x30
+            text run at (14,14) width 102: "Fourscore "
+            text run at (116,14) width 41: "and "
+            text run at (157,14) width 61: "seven "
+          RenderText {#text} at (218,14) size 92x30
+            text run at (218,14) width 92: "years ago"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 23 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-007-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-007-expected.txt
new file mode 100644
index 0000000..6202ac8
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-007-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 290x30
+          RenderText {#text} at (14,14) size 198x30
+            text run at (14,14) width 102: "Fourscore "
+            text run at (116,14) width 41: "and "
+            text run at (157,14) width 55: "seven"
+          RenderText {#text} at (212,14) size 92x30
+            text run at (212,14) width 92: "years ago"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 22 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-010-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-010-expected.txt
new file mode 100644
index 0000000..08f23cb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-010-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 40x30
+          text run at (14,14) width 40: "One"
+        RenderText {#text} at (54,14) size 44x30
+          text run at (54,14) width 44: "Two"
+      RenderBlock (anonymous) at (0,58) size 784x0
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-br-013-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-br-013-expected.txt
new file mode 100644
index 0000000..502d28b
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-br-013-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 751x40
+          text run at (0,0) width 751: "This tests that we only preserve an empty paragraph's style when moving paragraphs around if the selection is still in an"
+          text run at (0,20) width 249: "empty paragraph after the move occurs."
+      RenderBlock {DIV} at (0,40) size 784x20
+        RenderText {#text} at (0,0) size 315x20
+          text run at (0,0) width 315: "The test passes if the text below is still underlined."
+      RenderBlock (anonymous) at (0,60) size 784x20
+        RenderBR {BR} at (0,0) size 0x20
+      RenderBlock {DIV} at (0,80) size 784x20
+        RenderInline {SPAN} at (0,0) size 191x20
+          RenderText {#text} at (0,0) size 191x20
+            text run at (0,0) width 191: "This text should be underlined"
+caret: position 30 of child 0 {#text} of child 0 {SPAN} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-by-word-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-by-word-001-expected.txt
new file mode 100644
index 0000000..35f8ab0
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-by-word-001-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x200 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x63
+          RenderText {#text} at (0,0) size 67x33
+            text run at (0,0) width 67: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,33) size 460x30
+            text run at (0,33) width 460: "Option-delete when a typing command is open."
+        RenderBlock {DIV} at (14,93) size 756x93
+          RenderText {#text} at (0,0) size 189x33
+            text run at (0,0) width 189: "Expected Results: "
+          RenderBR {BR} at (189,24) size 0x0
+          RenderText {#text} at (0,33) size 440x30
+            text run at (0,33) width 440: "Net result is a third \"cha\". It should like this: "
+          RenderBR {BR} at (440,56) size 0x0
+          RenderText {#text} at (0,63) size 418x30
+            text run at (0,63) width 418: "one two cha cha cha three four cha cha cha"
+      RenderBlock {DIV} at (0,224) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,2) size 418x30
+            text run at (2,2) width 418: "one two cha cha cha three four cha cha cha"
+caret: position 12 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-contiguous-ws-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-contiguous-ws-001-expected.txt
new file mode 100644
index 0000000..dbafd1c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-contiguous-ws-001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 78x30
+          RenderText {#text} at (14,14) size 78x30
+            text run at (14,14) width 78: "foo  baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-image-004-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-image-004-expected.txt
new file mode 100644
index 0000000..00cfdf3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-image-004-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-leading-ws-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-leading-ws-001-expected.txt
new file mode 100644
index 0000000..466214a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-leading-ws-001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 14x30
+          RenderText {#text} at (14,14) size 14x30
+            text run at (14,14) width 8: "f"
+            text run at (22,14) width 6: " "
+caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-001-expected.txt
new file mode 100644
index 0000000..03c79b6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-001-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 197x30
+          text run at (0,0) width 197: "in the affairs of men"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-002-expected.txt
new file mode 100644
index 0000000..03c79b6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-002-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 197x30
+          text run at (0,0) width 197: "in the affairs of men"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-005-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-005-expected.txt
new file mode 100644
index 0000000..57b57f6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-005-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 241x30
+          text run at (0,0) width 241: "Which taken at the flood"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-006-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-006-expected.txt
new file mode 100644
index 0000000..57b57f6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-006-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 241x30
+          text run at (0,0) width 241: "Which taken at the flood"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-007-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-007-expected.txt
new file mode 100644
index 0000000..57b57f6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-007-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 241x30
+          text run at (0,0) width 241: "Which taken at the flood"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-008-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-008-expected.txt
new file mode 100644
index 0000000..57b57f6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-008-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 241x30
+          text run at (0,0) width 241: "Which taken at the flood"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-009-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-009-expected.txt
new file mode 100644
index 0000000..6c18321
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-009-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderBR {BR} at (0,0) size 0x30
+      RenderBlock {DIV} at (0,30) size 600x30
+        RenderText {#text} at (0,0) size 241x30
+          text run at (0,0) width 241: "Which taken at the flood"
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-010-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-010-expected.txt
new file mode 100644
index 0000000..6c18321
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-010-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderBR {BR} at (0,0) size 0x30
+      RenderBlock {DIV} at (0,30) size 600x30
+        RenderText {#text} at (0,0) size 241x30
+          text run at (0,0) width 241: "Which taken at the flood"
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-011-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-011-expected.txt
new file mode 100644
index 0000000..266c1a2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-011-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 96x30
+          text run at (0,0) width 96: "There is a"
+        RenderText {#text} at (96,0) size 241x30
+          text run at (96,0) width 241: "Which taken at the flood"
+caret: position 10 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-012-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-012-expected.txt
new file mode 100644
index 0000000..266c1a2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-012-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 96x30
+          text run at (0,0) width 96: "There is a"
+        RenderText {#text} at (96,0) size 241x30
+          text run at (96,0) width 241: "Which taken at the flood"
+caret: position 10 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-013-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-013-expected.txt
new file mode 100644
index 0000000..daa66b4
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-013-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x30
+        RenderText {#text} at (0,0) size 139x30
+          text run at (0,0) width 139: "There is a tide"
+      RenderBlock (anonymous) at (0,30) size 784x30
+        RenderText {#text} at (0,0) size 197x30
+          text run at (0,0) width 197: "in the affairs of men"
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+caret: position 15 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-014-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-014-expected.txt
new file mode 100644
index 0000000..e77ca1f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-014-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x30
+        RenderText {#text} at (0,0) size 15x30
+          text run at (0,0) width 15: "T"
+      RenderBlock (anonymous) at (0,30) size 784x30
+        RenderText {#text} at (0,0) size 197x30
+          text run at (0,0) width 197: "in the affairs of men"
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-end-ws-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-end-ws-001-expected.txt
new file mode 100644
index 0000000..2b0a5cc
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-end-ws-001-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 820x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x244 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 546x78
+          RenderText {#text} at (74,83) size 546x78
+            text run at (74,83) width 540: "Fourscore and seven years ago our fathers brought forth"
+            text run at (614,83) width 6: " "
+            text run at (74,131) width 304: "onthis continent a new nation..."
+        RenderText {#text} at (0,0) size 0x0
+caret: position 58 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-line-end-ws-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-line-end-ws-002-expected.txt
new file mode 100644
index 0000000..2b0a5cc
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-line-end-ws-002-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 820x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x244 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 546x78
+          RenderText {#text} at (74,83) size 546x78
+            text run at (74,83) width 540: "Fourscore and seven years ago our fathers brought forth"
+            text run at (614,83) width 6: " "
+            text run at (74,131) width 304: "onthis continent a new nation..."
+        RenderText {#text} at (0,0) size 0x0
+caret: position 58 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-listitem-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-listitem-001-expected.txt
new file mode 100644
index 0000000..5555a39
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-listitem-001-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x166 [border: (2px solid #FF0000)]
+        RenderBlock {UL} at (14,38) size 756x90
+          RenderListItem {LI} at (40,0) size 716x30
+            RenderText {#text} at (0,0) size 35x30
+              text run at (0,0) width 35: "one"
+            RenderText {#text} at (35,0) size 49x30
+              text run at (35,0) width 49: "three"
+          RenderListItem {LI} at (40,30) size 716x30
+            RenderText {#text} at (0,0) size 40x30
+              text run at (0,0) width 40: "four"
+          RenderListItem {LI} at (40,60) size 716x30
+            RenderText {#text} at (0,0) size 38x30
+              text run at (0,0) width 38: "five"
+caret: position 3 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-listitem-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-listitem-002-expected.txt
new file mode 100644
index 0000000..52ca3cb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-listitem-002-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x226 [border: (2px solid #FF0000)]
+        RenderBlock {UL} at (14,38) size 756x150
+          RenderListItem {LI} at (40,0) size 716x30
+            RenderListMarker at (-23,0) size 10x30: bullet
+            RenderText {#text} at (0,0) size 35x30
+              text run at (0,0) width 35: "one"
+          RenderListItem {LI} at (40,30) size 716x30
+            RenderListMarker at (-23,0) size 10x30: bullet
+            RenderText {#text} at (0,0) size 36x30
+              text run at (0,0) width 36: "two"
+          RenderListItem {LI} at (40,60) size 716x30
+            RenderListMarker at (-23,0) size 10x30: bullet
+            RenderBR {BR} at (0,0) size 0x30
+          RenderListItem {LI} at (40,90) size 716x30
+            RenderListMarker at (-23,0) size 10x30: bullet
+            RenderText {#text} at (0,0) size 40x30
+              text run at (0,0) width 40: "four"
+          RenderListItem {LI} at (40,120) size 716x30
+            RenderListMarker at (-23,0) size 10x30: bullet
+            RenderText {#text} at (0,0) size 38x30
+              text run at (0,0) width 38: "five"
+caret: position 0 of child 0 {BR} of child 5 {LI} of child 1 {UL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-select-all-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-select-all-001-expected.txt
new file mode 100644
index 0000000..0bc9fa8
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-select-all-001-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x48 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x20
+          RenderInline {SPAN} at (0,0) size 0x20
+            RenderBR {BR} at (0,0) size 0x20
+caret: position 0 of child 0 {BR} of child 0 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-select-all-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-select-all-002-expected.txt
new file mode 100644
index 0000000..00cfdf3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-select-all-002-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-tab-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-tab-002-expected.txt
new file mode 100644
index 0000000..1915069
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-tab-002-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 48x30
+          RenderText {#text} at (14,14) size 32x30
+            text run at (14,14) width 32: "foo"
+          RenderInline {SPAN} at (0,0) size 16x30
+            RenderText {#text} at (46,14) size 16x30
+              text run at (46,14) width 16: "\x{9}"
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-tab-004-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-tab-004-expected.txt
new file mode 100644
index 0000000..23fe977
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-tab-004-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 80x60
+          RenderBR {BR} at (14,14) size 0x30
+          RenderInline {SPAN} at (0,0) size 48x30
+            RenderText {#text} at (14,44) size 48x30
+              text run at (14,44) width 48: "\x{9}"
+          RenderText {#text} at (62,44) size 32x30
+            text run at (62,44) width 32: "foo"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt
new file mode 100644
index 0000000..21f8df8
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,0) size 132x30
+          text run at (0,0) width 132: "one two three"
+      RenderBlock {DIV} at (0,30) size 784x20
+        RenderText {#text} at (0,0) size 76x20
+          text run at (0,0) width 76: "four five six"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-to-select-table-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-to-select-table-expected.txt
new file mode 100644
index 0000000..5d85f57
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-to-select-table-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x56
+        RenderTable {TABLE} at (0,0) size 86x56 [border: (3px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (3,3) size 80x50
+            RenderTableRow {TR} at (0,2) size 80x22
+              RenderTableCell {TD} at (2,2) size 27x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 25x20
+                  text run at (1,1) width 25: "Foo"
+              RenderTableCell {TD} at (31,2) size 47x22 [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 22x20
+                  text run at (1,1) width 22: "baz"
+            RenderTableRow {TR} at (0,26) size 80x22
+              RenderTableCell {TD} at (2,26) size 27x22 [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 25x20
+                  text run at (1,1) width 20: "bar"
+                  text run at (21,1) width 5: "      "
+              RenderTableCell {TD} at (31,26) size 47x22 [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 45x20
+                  text run at (1,1) width 45: "buffalo"
+selection start: position 0 of child 1 {TABLE} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 2 of child 1 {TABLE} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-trailing-ws-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-trailing-ws-002-expected.txt
new file mode 100644
index 0000000..4895213
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-trailing-ws-002-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 40x60
+          RenderText {#text} at (14,14) size 32x30
+            text run at (14,14) width 32: "foo"
+          RenderBR {BR} at (46,37) size 0x0
+          RenderText {#text} at (14,44) size 40x30
+            text run at (14,44) width 40: " baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-ws-fixup-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-ws-fixup-001-expected.txt
new file mode 100644
index 0000000..592dc42
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-ws-fixup-001-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x91 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 750x62
+          RenderText {#text} at (14,15) size 97x30
+            text run at (14,15) width 97: "in Liberty"
+          RenderInline {I} at (0,0) size 117x30
+            RenderText {#text} at (111,15) size 117x30
+              text run at (111,15) width 21: "F "
+              text run at (132,15) width 96: "and seven"
+          RenderText {#text} at (228,15) size 63x30
+            text run at (228,15) width 63: " years "
+          RenderInline {B} at (0,0) size 15x33
+            RenderText {#text} at (291,14) size 15x33
+              text run at (291,14) width 15: "s "
+          RenderText {#text} at (306,15) size 750x62
+            text run at (306,15) width 110: "our fathers "
+            text run at (416,15) width 342: "f upon this continent, a new nation,"
+            text run at (758,15) width 6: " "
+            text run at (14,47) width 232: "conceived    in Liberty, "
+            text run at (246,47) width 386: "and dedicated to the proposition that all"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 7 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-ws-fixup-002-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-ws-fixup-002-expected.txt
new file mode 100644
index 0000000..9c87b14
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/delete-ws-fixup-002-expected.txt
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 751x40
+          text run at (0,0) width 259: "This testcase demonstrates a bug (9441). "
+          text run at (259,0) width 446: "When 'as' is deleted, there should be a space before and after the caret. "
+          text run at (705,0) width 46: "Editing"
+          text run at (0,20) width 531: "produces a tree that should result in two spaces, but for some reason it isn't rendered."
+      RenderBlock {DIV} at (0,56) size 784x91 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 741x62
+          RenderText {#text} at (14,15) size 97x30
+            text run at (14,15) width 97: "in Liberty"
+          RenderInline {I} at (0,0) size 117x30
+            RenderText {#text} at (111,15) size 117x30
+              text run at (111,15) width 21: "F "
+              text run at (132,15) width 96: "and seven"
+          RenderText {#text} at (228,15) size 63x30
+            text run at (228,15) width 63: " years "
+          RenderInline {B} at (0,0) size 6x33
+            RenderText {#text} at (291,14) size 6x33
+              text run at (291,14) width 6: " "
+          RenderText {#text} at (297,15) size 741x62
+            text run at (297,15) width 110: "our fathers "
+            text run at (407,15) width 342: "f upon this continent, a new nation,"
+            text run at (749,15) width 6: " "
+            text run at (14,47) width 232: "conceived    in Liberty, "
+            text run at (246,47) width 386: "and dedicated to the proposition that all"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 7 of child 2 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/forward-delete-expected.txt b/LayoutTests/platform/gtk/editing/deleting/forward-delete-expected.txt
new file mode 100644
index 0000000..c2a8515
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/forward-delete-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,14) size 731x60
+          text run at (14,14) width 725: "Should see \"bar\" in the red box. Insertion point should be at the start of the"
+          text run at (739,14) width 6: " "
+          text run at (14,44) width 102: "document."
+      RenderBlock {DIV} at (0,112) size 784x58
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,14) size 31x30
+            text run at (14,14) width 31: "bar"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/merge-whitespace-pre-expected.txt b/LayoutTests/platform/gtk/editing/deleting/merge-whitespace-pre-expected.txt
new file mode 100644
index 0000000..1e0745b
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/merge-whitespace-pre-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 743x40
+          text run at (0,0) width 364: "This test places the caret before the 'b' in 'bar' and Delete. "
+          text run at (364,0) width 379: "Afterword, 'foobar' should be in the first paragraph and 'baz'"
+          text run at (0,20) width 152: "should be in the second."
+      RenderBlock {DIV} at (0,56) size 784x49
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 21x20
+            text run at (0,0) width 21: "foo"
+          RenderInline {SPAN} at (0,0) size 24x15
+            RenderText {#text} at (21,4) size 24x15
+              text run at (21,4) width 24: "bar"
+        RenderBlock {PRE} at (0,33) size 784x16
+          RenderText {#text} at (0,0) size 24x15
+            text run at (0,0) width 24: "baz"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/deleting/move-nodes-001-expected.txt b/LayoutTests/platform/gtk/editing/deleting/move-nodes-001-expected.txt
new file mode 100644
index 0000000..1da4dfb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/move-nodes-001-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x156
+  RenderBlock {HTML} at (0,0) size 800x156
+    RenderBody {BODY} at (8,8) size 784x140
+      RenderBlock {DIV} at (0,0) size 784x114 [border: (3px solid #FF0000)]
+        RenderBlock (anonymous) at (3,3) size 778x20
+          RenderText {#text} at (0,0) size 134x20
+            text run at (0,0) width 134: "Destination container"
+        RenderBlock {P} at (3,39) size 778x20
+          RenderText {#text} at (0,0) size 23x20
+            text run at (0,0) width 23: "one"
+        RenderBlock {P} at (3,75) size 778x20
+          RenderText {#text} at (0,0) size 24x20
+            text run at (0,0) width 24: "two"
+      RenderBlock {DIV} at (0,114) size 784x26 [border: (3px solid #0000FF)]
+        RenderText {#text} at (3,3) size 106x20
+          text run at (3,3) width 106: "Source container"
diff --git a/LayoutTests/platform/gtk/editing/deleting/type-delete-after-quote-expected.txt b/LayoutTests/platform/gtk/editing/deleting/type-delete-after-quote-expected.txt
new file mode 100644
index 0000000..f30c56a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/deleting/type-delete-after-quote-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x40
+          text run at (0,0) width 775: "When your cursor is after an empty blockquote, hitting delete should bring the cursor (and the content following the cursor)"
+          text run at (0,20) width 422: "back into the blockquote, instead of deleting the empty blockquote."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {BLOCKQUOTE} at (0,0) size 744x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (12,0) size 140x20
+            text run at (12,0) width 140: "This should be quoted"
+        RenderBlock (anonymous) at (0,36) size 784x0
+caret: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4580583-1-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4580583-1-expected.txt
new file mode 100644
index 0000000..842028c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4580583-1-expected.txt
@@ -0,0 +1,34 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x40
+          text run at (0,0) width 474: "This tests to make sure that breaking a quoted list doesn't renumber the list. "
+          text run at (474,0) width 293: "You should see a list broken in two below, the"
+          text run at (0,20) width 186: "list items numbered 1, 2, 3, 4."
+      RenderBlock {DIV} at (0,56) size 784x132
+        RenderBlock {BLOCKQUOTE} at (2,0) size 742x40 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {OL} at (2,0) size 740x40
+            RenderListItem {LI} at (40,0) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "1"
+              RenderText {#text} at (0,0) size 27x20
+                text run at (0,0) width 27: "One"
+            RenderListItem {LI} at (40,20) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "2"
+              RenderText {#text} at (0,0) size 30x20
+                text run at (0,0) width 30: "Two"
+        RenderBlock (anonymous) at (0,56) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {BLOCKQUOTE} at (2,92) size 742x40 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {OL} at (2,0) size 740x40
+            RenderListItem {LI} at (40,0) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "3"
+              RenderText {#text} at (0,0) size 37x20
+                text run at (0,0) width 37: "Three"
+            RenderListItem {LI} at (40,20) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "4"
+              RenderText {#text} at (0,0) size 30x20
+                text run at (0,0) width 30: "Four"
+caret: position 0 of child 2 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4580583-2-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4580583-2-expected.txt
new file mode 100644
index 0000000..cd771fb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4580583-2-expected.txt
@@ -0,0 +1,38 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x40
+          text run at (0,0) width 474: "This tests to make sure that breaking a quoted list doesn't renumber the list. "
+          text run at (474,0) width 293: "You should see a list broken in two below, the"
+          text run at (0,20) width 668: "list items numbered 1, 2, 2, 3, 4. Two list items will be numbered '2' because the original item '2' was split."
+      RenderBlock {DIV} at (0,56) size 784x152
+        RenderBlock {BLOCKQUOTE} at (2,0) size 742x40 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {OL} at (2,0) size 740x40
+            RenderListItem {LI} at (40,0) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "1"
+              RenderText {#text} at (0,0) size 27x20
+                text run at (0,0) width 27: "One"
+            RenderListItem {LI} at (40,20) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "2"
+              RenderText {#text} at (0,0) size 30x20
+                text run at (0,0) width 30: "Two"
+        RenderBlock (anonymous) at (0,56) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {BLOCKQUOTE} at (2,92) size 742x60 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {OL} at (2,0) size 740x60
+            RenderListItem {LI} at (40,0) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "2"
+              RenderText {#text} at (0,0) size 30x20
+                text run at (0,0) width 30: "Two"
+            RenderListItem {LI} at (40,20) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "3"
+              RenderText {#text} at (0,0) size 37x20
+                text run at (0,0) width 37: "Three"
+            RenderListItem {LI} at (40,40) size 700x20
+              RenderListMarker at (-21,0) size 16x20: "4"
+              RenderText {#text} at (0,0) size 30x20
+                text run at (0,0) width 30: "Four"
+caret: position 0 of child 2 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4747450-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4747450-expected.txt
new file mode 100644
index 0000000..325fa97
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4747450-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 737x41
+          text run at (0,0) width 289: "This test for a bug in Insert{Un}OrderedList. "
+          text run at (289,0) width 448: "Inside an empty editable region, a new paragraph is added, then a list is"
+          text run at (0,21) width 53: "created. "
+          text run at (53,21) width 128: "The caret should be "
+        RenderInline {B} at (0,0) size 39x22
+          RenderText {#text} at (181,20) size 39x22
+            text run at (181,20) width 39: "inside"
+        RenderText {#text} at (220,21) size 123x20
+          text run at (220,21) width 123: " the empty list item."
+      RenderBlock {DIV} at (0,58) size 784x56
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,36) size 784x20
+          RenderBlock {UL} at (0,0) size 784x20
+            RenderListItem {LI} at (40,0) size 744x20
+              RenderListMarker at (-18,0) size 7x20: bullet
+              RenderBR {BR} at (0,0) size 0x20
+          RenderBlock (anonymous) at (0,36) size 784x0
+caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4786404-1-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4786404-1-expected.txt
new file mode 100644
index 0000000..40eb632
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4786404-1-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584 [color=#999999]
+      RenderBlock {P} at (0,0) size 784x44
+        RenderText {#text} at (0,0) size 784x44
+          text run at (0,0) width 784: "This tests for a bug where performing the Remove Format operation on content would apply the document's style to"
+          text run at (0,22) width 267: "it, not the editable regions default style. "
+          text run at (267,22) width 377: "The text below should not be bold, and should be black."
+      RenderBlock {DIV} at (0,60) size 784x20 [color=#000000]
+        RenderText {#text} at (0,0) size 71x20
+          text run at (0,0) width 71: "foo bar baz"
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4786404-2-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4786404-2-expected.txt
new file mode 100644
index 0000000..ae4d3cb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4786404-2-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 772x40
+          text run at (0,0) width 772: "This tests for a bug where performing the Remove Format operation on a selection that started in underlined content would"
+          text run at (0,20) width 212: "underline everything operated on."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 71x20
+          text run at (0,0) width 71: "foo bar baz"
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4916402-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4916402-expected.txt
new file mode 100644
index 0000000..7d69d16
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4916402-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 751x40
+          text run at (0,0) width 751: "This tests to see that creating an ordered list item from the last list item in an unordered list creates a new list that is not a"
+          text run at (0,20) width 163: "sublist of the original one."
+      RenderBlock {DIV} at (0,56) size 784x56
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x20: bullet
+            RenderText {#text} at (0,0) size 21x20
+              text run at (0,0) width 21: "foo"
+        RenderBlock {OL} at (0,36) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-21,0) size 16x20: "1"
+            RenderText {#text} at (0,0) size 20x20
+              text run at (0,0) width 20: "bar"
+        RenderBlock (anonymous) at (0,72) size 784x0
+caret: position 0 of child 0 {#text} of child 0 {LI} of child 1 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4916541-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4916541-expected.txt
new file mode 100644
index 0000000..24f0b23
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4916541-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 783x40
+          text run at (0,0) width 377: "This tests selection preservation during an indent operation. "
+          text run at (377,0) width 406: "The selection should start and end in the same parts of the words"
+          text run at (0,20) width 320: "'foo' and 'bar' before and after the indent operation."
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {BLOCKQUOTE} at (40,0) size 744x40
+          RenderInline {SPAN} at (0,0) size 21x20
+            RenderText {#text} at (0,0) size 21x20
+              text run at (0,0) width 21: "foo"
+          RenderBR {BR} at (21,15) size 0x0
+          RenderInline {SPAN} at (0,0) size 20x20
+            RenderText {#text} at (0,20) size 20x20
+              text run at (0,20) width 20: "bar"
+        RenderBlock (anonymous) at (0,40) size 784x0
+selection start: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 2 of child 0 {#text} of child 2 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4920488-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4920488-expected.txt
new file mode 100644
index 0000000..a35a3f7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4920488-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 769x40
+          text run at (0,0) width 769: "This tests for a bug in GMail's Editor, they try to extract the contents of a range that has had it's contents removed from the"
+          text run at (0,20) width 222: "document by an editing command. "
+          text run at (222,20) width 265: "You should see 'dogfood' unstyled below."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 53x20
+          text run at (0,0) width 53: "dogfood"
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 7 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4920742-1-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4920742-1-expected.txt
new file mode 100644
index 0000000..16f9766
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4920742-1-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x44
+        RenderText {#text} at (0,1) size 516x20
+          text run at (0,1) width 516: "This tests for a bug where RemoveFormat would reverse the order of paragraphs. "
+        RenderInline {B} at (0,0) size 764x44
+          RenderText {#text} at (516,0) size 764x44
+            text run at (516,0) width 248: "This demonstrates a bug: the caret is"
+            text run at (0,22) width 126: "on the wrong line. "
+            text run at (126,22) width 185: "It should be on the last line."
+      RenderBlock {DIV} at (0,60) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x0
+        RenderBlock {DIV} at (0,0) size 784x60
+          RenderText {#text} at (0,0) size 21x20
+            text run at (0,0) width 21: "foo"
+          RenderBR {BR} at (21,15) size 0x0
+          RenderBR {BR} at (0,20) size 0x20
+          RenderBR {BR} at (0,40) size 0x20
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 2 {BR} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/4924441-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/4924441-expected.txt
new file mode 100644
index 0000000..9ca69c8
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/4924441-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x40
+          text run at (0,0) width 625: "This tests for a bug where changing the list type of an indented list would create unwanted nesting. "
+          text run at (625,0) width 150: "You should see a single"
+          text run at (0,20) width 220: "ordered list item in an indented list."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderBlock {OL} at (40,0) size 744x20
+            RenderListItem {LI} at (40,0) size 704x20
+              RenderListMarker at (-21,0) size 16x20: "1"
+              RenderText {#text} at (0,0) size 21x20
+                text run at (0,0) width 21: "foo"
+        RenderBlock (anonymous) at (0,36) size 784x0
+caret: position 3 of child 0 {#text} of child 0 {LI} of child 0 {OL} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5049671-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5049671-expected.txt
new file mode 100644
index 0000000..489d5ef
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5049671-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 755x40
+          text run at (0,0) width 595: "This tests for a bug where Remove Format would fail to remove links that were fully selected. "
+          text run at (595,0) width 160: "You should see plain text"
+          text run at (0,20) width 211: "only in the editable region below."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 239x20
+          text run at (0,0) width 239: "This shouldn't be a link or underlined."
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 39 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5080333-1-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5080333-1-expected.txt
new file mode 100644
index 0000000..1851dd0
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5080333-1-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 758x60
+          text run at (0,0) width 737: "This tests for a bug where changing the alignment of an image would result in a selection that wasn't the one that was"
+          text run at (0,20) width 235: "present before the alignment change. "
+          text run at (235,20) width 523: "The image should be centered and the caret should be the same before and after the"
+          text run at (0,40) width 63: "operation."
+      RenderBlock {DIV} at (0,76) size 784x143
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 21x20
+            text run at (0,0) width 21: "foo"
+          RenderBR {BR} at (21,15) size 0x0
+        RenderBlock {DIV} at (0,20) size 784x103
+          RenderImage {IMG} at (354,0) size 76x103
+        RenderBlock (anonymous) at (0,123) size 784x20
+          RenderText {#text} at (0,0) size 22x20
+            text run at (0,0) width 22: "baz"
+caret: position 0 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5080333-2-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5080333-2-expected.txt
new file mode 100644
index 0000000..3e3887e
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5080333-2-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 783x60
+          text run at (0,0) width 737: "This tests for a bug where changing the alignment of an image would result in a selection that wasn't the one that was"
+          text run at (0,20) width 235: "present before the alignment change. "
+          text run at (235,20) width 548: "The image should be centered and the selection should be the same before and after the"
+          text run at (0,40) width 63: "operation."
+      RenderBlock {DIV} at (0,76) size 784x143
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 21x20
+            text run at (0,0) width 21: "foo"
+          RenderBR {BR} at (21,15) size 0x0
+        RenderBlock {DIV} at (0,20) size 784x103
+          RenderImage {IMG} at (354,0) size 76x103
+        RenderBlock (anonymous) at (0,123) size 784x20
+          RenderText {#text} at (0,0) size 22x20
+            text run at (0,0) width 22: "baz"
+selection start: position 0 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 0 {IMG} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5136770-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5136770-expected.txt
new file mode 100644
index 0000000..ad57808
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5136770-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 375x20
+          text run at (0,0) width 375: "This tests for a hang when performing InsertUnorderedList."
+      RenderBlock {DIV} at (0,36) size 784x96
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 347x20
+            text run at (0,0) width 347: "There should be two empty unordered list items below."
+        RenderBlock {DIV} at (0,36) size 784x60
+          RenderBlock {UL} at (0,0) size 784x60
+            RenderListItem {LI} at (40,0) size 744x20
+              RenderListMarker at (-18,0) size 7x20: bullet
+              RenderBR {BR} at (0,0) size 0x20
+            RenderListItem {LI} at (40,20) size 744x20
+              RenderListMarker at (-18,0) size 7x20: bullet
+              RenderBR {BR} at (0,0) size 0x20
+            RenderListItem {LI} at (40,40) size 744x20
+              RenderListMarker at (-18,0) size 7x20: bullet
+              RenderText {#text} at (0,0) size 237x20
+                text run at (0,0) width 237: "This should be an unordered list item."
+          RenderBlock (anonymous) at (0,76) size 784x0
+selection start: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 38 of child 0 {#text} of child 2 {LI} of child 0 {UL} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5138441-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5138441-expected.txt
new file mode 100644
index 0000000..b9445f2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5138441-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 776x60
+          text run at (0,0) width 493: "This tests for a bug where indented text would appear quoted in GoogleDocs. "
+          text run at (493,0) width 218: "Google docs uses blockquotes and"
+          text run at (0,20) width 776: "FormatBlock to implement a \"Quote Text\" feature, and style rules for blockquotes appeared on the blockquotes that we use"
+          text run at (0,40) width 149: "to implement indenting."
+      RenderBlock {DIV} at (0,76) size 784x66
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderBlock {BLOCKQUOTE} at (40,0) size 744x20
+            RenderText {#text} at (0,0) size 230x20
+              text run at (0,0) width 230: "This should be indented, not quoted."
+          RenderBlock (anonymous) at (0,20) size 784x0
+        RenderBlock {BLOCKQUOTE} at (8,28) size 768x38 [border: (1px dashed #AAAAAA)]
+          RenderText {#text} at (9,9) size 175x20
+            text run at (9,9) width 175: "This text should be Quoted."
+caret: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5142012-1-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5142012-1-expected.txt
new file mode 100644
index 0000000..28e2dc5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5142012-1-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 766x40
+          text run at (0,0) width 449: "This tests for a bug when removing links from a selection with Unlink. "
+          text run at (449,0) width 317: "There shouldn't be any links *inside the selection*"
+          text run at (0,20) width 43: "below."
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderInline {A} at (0,0) size 23x20 [color=#0000EE]
+            RenderText {#text} at (0,0) size 23x20
+              text run at (0,0) width 23: "Hel"
+          RenderInline {SPAN} at (0,0) size 12x20
+            RenderText {#text} at (23,0) size 12x20
+              text run at (23,0) width 12: "lo"
+        RenderBlock (anonymous) at (0,20) size 784x0
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderInline {SPAN} at (0,0) size 15x20
+            RenderText {#text} at (0,0) size 15x20
+              text run at (0,0) width 15: "W"
+          RenderText {#text} at (15,0) size 30x20
+            text run at (15,0) width 30: "orld!"
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5142012-2-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5142012-2-expected.txt
new file mode 100644
index 0000000..45928d8
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5142012-2-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {UL} at (0,0) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x20: bullet
+          RenderInline {A} at (0,0) size 736x20 [color=#0000EE]
+            RenderText {#text} at (0,0) size 736x20
+              text run at (0,0) width 336: "This tests for a crash when creating a list from a link. "
+              text run at (336,0) width 400: "This paragraph should be a link and should be inside a list item."
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock (anonymous) at (0,36) size 784x0
+selection start: position 0 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 0 {UL} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 123 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 0 {UL} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5190926-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5190926-expected.txt
new file mode 100644
index 0000000..378ec08
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5190926-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {OL} at (0,0) size 784x60
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-21,0) size 16x20: "1"
+          RenderInline {U} at (0,0) size 497x20
+            RenderText {#text} at (0,0) size 497x20
+              text run at (0,0) width 497: "This tests for a crash when making and removing lists from underlined content."
+        RenderListItem {LI} at (40,20) size 744x20
+          RenderListMarker at (-21,0) size 16x20: "2"
+          RenderInline {U} at (0,0) size 272x20
+            RenderText {#text} at (0,0) size 272x20
+              text run at (0,0) width 272: "All three paragraphs should be in list items."
+        RenderListItem {LI} at (40,40) size 744x20
+          RenderListMarker at (-21,0) size 16x20: "3"
+          RenderInline {U} at (0,0) size 222x20
+            RenderText {#text} at (0,0) size 222x20
+              text run at (0,0) width 222: "And all three should be underlined."
+      RenderBlock (anonymous) at (0,76) size 784x0
+selection start: position 0 of child 0 {#text} of child 0 {U} of child 0 {LI} of child 0 {OL} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 35 of child 0 {#text} of child 0 {U} of child 2 {LI} of child 0 {OL} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5481523-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5481523-expected.txt
new file mode 100644
index 0000000..4cda317
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5481523-expected.txt
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 748x40
+          text run at (0,0) width 407: "This tests for a hang when indenting a fully selected table twice. "
+          text run at (407,0) width 341: "You should see a twice indented table, with four cells,"
+          text run at (0,20) width 43: "below."
+      RenderBlock {DIV} at (0,56) size 784x56
+        RenderBlock {BLOCKQUOTE} at (40,0) size 744x56
+          RenderBlock {BLOCKQUOTE} at (40,0) size 704x56
+            RenderTable {TABLE} at (0,0) size 83x56 [border: (1px outset #808080)]
+              RenderTableSection {TBODY} at (1,1) size 81x54
+                RenderTableRow {TR} at (0,2) size 81x24
+                  RenderTableCell {TD} at (2,2) size 41x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                    RenderText {#text} at (2,2) size 27x20
+                      text run at (2,2) width 27: "One"
+                  RenderTableCell {TD} at (45,2) size 34x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                    RenderText {#text} at (2,2) size 30x20
+                      text run at (2,2) width 30: "Two"
+                RenderTableRow {TR} at (0,28) size 81x24
+                  RenderTableCell {TD} at (2,28) size 41x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                    RenderText {#text} at (2,2) size 37x20
+                      text run at (2,2) width 37: "Three"
+                  RenderTableCell {TD} at (45,28) size 34x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                    RenderText {#text} at (2,2) size 30x20
+                      text run at (2,2) width 30: "Four"
+selection start: position 0 of child 0 {TABLE} of child 0 {BLOCKQUOTE} of child 1 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 2 of child 0 {TABLE} of child 0 {BLOCKQUOTE} of child 1 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5482023-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5482023-expected.txt
new file mode 100644
index 0000000..e145390
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5482023-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x571
+      RenderBlock {H1} at (0,0) size 784x126
+        RenderText {#text} at (0,0) size 779x126
+          text run at (0,0) width 721: "This tests for a bug when performing a FormatBlock"
+          text run at (721,0) width 8: " "
+          text run at (0,42) width 512: "inside a body with no visible content. "
+          text run at (512,42) width 259: "This text should be"
+          text run at (771,42) width 8: " "
+          text run at (0,84) width 287: "inside an h1 element."
+caret: position 132 of child 0 {#text} of child 0 {H1} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5569741-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5569741-expected.txt
new file mode 100644
index 0000000..ff040fb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5569741-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 681x20
+          text run at (0,0) width 681: "This tests for a bug where hitting return inside an empty paragraph in a non-empty list item would remove it."
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock {UL} at (0,0) size 784x60
+          RenderListItem {LI} at (40,0) size 744x40
+            RenderListMarker at (-18,0) size 7x20: bullet
+            RenderText {#text} at (0,0) size 21x20
+              text run at (0,0) width 21: "foo"
+            RenderBR {BR} at (21,15) size 0x0
+            RenderBR {BR} at (0,20) size 0x20
+          RenderListItem {LI} at (40,40) size 744x20
+            RenderListMarker at (-18,0) size 7x20: bullet
+            RenderBR {BR} at (0,0) size 0x20
+caret: position 0 of child 0 {BR} of child 1 {LI} of child 1 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/5573879-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/5573879-expected.txt
new file mode 100644
index 0000000..a0aa9ea
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/5573879-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 720x20
+          text run at (0,0) width 518: "This tests to make sure that RemoveFormat destroys lists if they are fully selected. "
+          text run at (518,0) width 202: "You should see foo\\nbar below."
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x40
+          RenderText {#text} at (0,0) size 21x20
+            text run at (0,0) width 21: "foo"
+          RenderBR {BR} at (21,15) size 0x0
+          RenderText {#text} at (0,20) size 20x20
+            text run at (0,20) width 20: "bar"
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 3 of child 2 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/execCommand/insert-list-empty-div-expected.txt b/LayoutTests/platform/gtk/editing/execCommand/insert-list-empty-div-expected.txt
new file mode 100644
index 0000000..696d856
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/execCommand/insert-list-empty-div-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 750x20
+          text run at (0,0) width 386: "This tests InsertList inside an empty div with no placeholder. "
+          text run at (386,0) width 364: "You should see an empty list item with a caret inside of it."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x20: bullet
+            RenderBR {BR} at (0,0) size 0x20
+        RenderBlock (anonymous) at (0,36) size 784x0
+caret: position 0 of child 0 {BR} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/12882-expected.txt b/LayoutTests/platform/gtk/editing/inserting/12882-expected.txt
new file mode 100644
index 0000000..efe03a4
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/12882-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x64
+        RenderText {#text} at (0,0) size 770x41
+          text run at (0,0) width 555: "This tests for a bug where images with align right/left would fail to be inserted on paste. "
+          text run at (555,0) width 215: "You should see a picture of abe in"
+          text run at (0,21) width 293: "the editable region below, aligned to the right. "
+        RenderInline {B} at (0,0) size 766x44
+          RenderText {#text} at (293,20) size 766x44
+            text run at (293,20) width 473: "This demonstrates a bug: the focus halo for the editable region doesn't"
+            text run at (0,42) width 275: "expand to fit an image with align='right'."
+      RenderBlock {DIV} at (0,80) size 784x40
+        RenderText {#text} at (0,0) size 198x20
+          text run at (0,0) width 198: "Four score and seven years ago"
+        RenderImage {IMG} at (708,0) size 76x103
+        RenderText {#text} at (198,0) size 685x40
+          text run at (198,0) width 483: " our fathers brought forth on this continent a new nation, conceived in liberty"
+          text run at (681,0) width 4: " "
+          text run at (0,20) width 392: "and dedicated to the proposition that all men are created equal."
+caret: position 1 of child 1 {IMG} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/4840662-expected.txt b/LayoutTests/platform/gtk/editing/inserting/4840662-expected.txt
new file mode 100644
index 0000000..8955d38
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/4840662-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 762x40
+          text run at (0,0) width 402: "This tests insertion before/after links that are also display:block. "
+          text run at (402,0) width 360: "Insertion before/after display:block links should go inside"
+          text run at (0,20) width 362: "the links so that text is inserted in the expected paragraph."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {A} at (0,0) size 784x20 [color=#0000EE]
+          RenderText {#text} at (0,0) size 248x20
+            text run at (0,0) width 248: "This sentence should all be on one line."
+caret: position 40 of child 0 {#text} of child 0 {A} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/4875189-1-expected.txt b/LayoutTests/platform/gtk/editing/inserting/4875189-1-expected.txt
new file mode 100644
index 0000000..427fd15
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/4875189-1-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 652x20
+          text run at (0,0) width 358: "This tests for a bug when replacing the contents of a list. "
+          text run at (358,0) width 294: "The list shouldn't be removed, just its contents."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x20: bullet
+            RenderText {#text} at (0,0) size 177x20
+              text run at (0,0) width 177: "This should be in a list item."
+caret: position 30 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/4875189-2-expected.txt b/LayoutTests/platform/gtk/editing/inserting/4875189-2-expected.txt
new file mode 100644
index 0000000..48bb529
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/4875189-2-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 784x20
+          text run at (0,0) width 441: "This tests for a bug when replacing the contents of a floating element. "
+          text run at (441,0) width 343: "Just its contents should be removed during the replace."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (293,0) size 235x20
+          text run at (293,0) width 235: "This shouldn't be in the bordered div."
+        RenderBlock (floating) {DIV} at (0,0) size 293x22 [border: (1px solid #0000FF)]
+          RenderText {#text} at (1,1) size 291x20
+            text run at (1,1) width 291: "This should be in a floating blue bordered div."
+caret: position 47 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/4959067-expected.txt b/LayoutTests/platform/gtk/editing/inserting/4959067-expected.txt
new file mode 100644
index 0000000..622ddb3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/4959067-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 598x20
+          text run at (0,0) width 598: "This tests to make sure that insertion over a fully selected special element doesn't do expansion."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x20: bullet
+            RenderInline {A} at (0,0) size 21x20 [color=#0000EE]
+              RenderText {#text} at (0,0) size 21x20
+                text run at (0,0) width 21: "foo"
+      RenderBlock {UL} at (0,72) size 784x0
+caret: position 3 of child 0 {#text} of child 0 {A} of child 0 {LI} of child 1 {UL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/4960120-2-expected.txt b/LayoutTests/platform/gtk/editing/inserting/4960120-2-expected.txt
new file mode 100644
index 0000000..9aa75a1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/4960120-2-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 591x20
+          text run at (0,0) width 591: "This tests for a bug where a newline inserted at the end of an anonymous block would be lost."
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x40
+          RenderText {#text} at (0,0) size 21x20
+            text run at (0,0) width 21: "foo"
+          RenderBR {BR} at (21,15) size 0x0
+          RenderBR {BR} at (0,20) size 0x20
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 20x20
+            text run at (0,0) width 20: "bar"
+caret: position 0 of child 2 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5002441-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5002441-expected.txt
new file mode 100644
index 0000000..c14cf72
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5002441-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 521x20
+          text run at (0,0) width 521: "This tests for a bug where spaces couldn't be inserted before signatures and replies."
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 4x20
+            text run at (0,0) width 4: " "
+          RenderBR {BR} at (4,15) size 0x0
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 345x20
+            text run at (0,0) width 345: "There should be a single space in the paragraph above."
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5058163-1-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5058163-1-expected.txt
new file mode 100644
index 0000000..6cb0f6a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5058163-1-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 759x20
+          text run at (0,0) width 759: "This tests for a bug where hitting return between two tables would add a new paragraph at the end of the editable region."
+      RenderBlock {DIV} at (0,36) size 784x96
+        RenderTable {TABLE} at (0,0) size 475x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 473x26
+            RenderTableRow {TR} at (0,2) size 473x22
+              RenderTableCell {TD} at (2,2) size 469x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 467x20
+                  text run at (1,1) width 467: "There should be two empty paragraphs after this table and before the next."
+        RenderBlock (anonymous) at (0,28) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,48) size 784x48
+          RenderBlock (anonymous) at (0,0) size 784x20
+            RenderBR {BR} at (0,0) size 0x20
+          RenderTable {TABLE} at (0,20) size 276x28 [border: (1px solid #AAAAAA)]
+            RenderTableSection {TBODY} at (1,1) size 274x26
+              RenderTableRow {TR} at (0,2) size 274x22
+                RenderTableCell {TD} at (2,2) size 270x22 [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (1,1) size 268x20
+                    text run at (1,1) width 268: "And the caret should be in the second one."
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5058163-2-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5058163-2-expected.txt
new file mode 100644
index 0000000..56e51eb
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5058163-2-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 692x20
+          text run at (0,0) width 692: "This tests for a bug where hitting return after a line break in text that preserves newlines wouldn't do anything."
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x40
+          RenderText {#text} at (0,0) size 24x20
+            text run at (0,0) width 24: "xxx"
+            text run at (24,0) width 0: " "
+          RenderBR {BR} at (0,20) size 0x20
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 663x20
+            text run at (0,0) width 663: "There should be an empty paragraph before this one, and the caret should be at the start of this paragraph."
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5156401-2-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5156401-2-expected.txt
new file mode 100644
index 0000000..7130399
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5156401-2-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 628x20
+          text run at (0,0) width 628: "This tests for a bug where inserting at the end of a link would place content in the wrong paragraph."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderInline {A} at (0,0) size 420x20 [color=#0000EE]
+          RenderText {#text} at (0,0) size 420x20
+            text run at (0,0) width 420: "Everything in this editable region should be in the same paragraph."
+          RenderBR {BR} at (420,15) size 0x0
+caret: position 67 of child 0 {#text} of child 0 {A} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5418891-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5418891-expected.txt
new file mode 100644
index 0000000..92214a7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5418891-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 772x40
+          text run at (0,0) width 536: "This tests for a crash when attempting to break a blockquote at the end of its content. "
+          text run at (536,0) width 236: "The caret should be in the first of two"
+          text run at (0,20) width 358: "empty paragraphs between two pieces of quoted content."
+      RenderBlock {DIV} at (0,56) size 784x80
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (7,0) size 777x20
+            RenderText {#text} at (0,0) size 21x20
+              text run at (0,0) width 21: "foo"
+        RenderBlock (anonymous) at (0,20) size 784x40
+          RenderBR {BR} at (0,0) size 0x20
+          RenderBR {BR} at (0,20) size 0x20
+        RenderBlock {BLOCKQUOTE} at (0,60) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (7,0) size 777x20
+            RenderText {#text} at (0,0) size 20x20
+              text run at (0,0) width 20: "bar"
+caret: position 0 of child 2 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5510537-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5510537-expected.txt
new file mode 100644
index 0000000..629a656
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5510537-expected.txt
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 773x40
+          text run at (0,0) width 639: "This tests that inserting a newline at the beginning of quoted content doesn't add an extra quoted line. "
+          text run at (639,0) width 134: "The test has passed if"
+          text run at (0,20) width 401: "there are no empty lines (quoted or unquoted) in the box below."
+      RenderBlock {DIV} at (0,56) size 784x100
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 59x20
+            text run at (0,0) width 59: "unquoted"
+          RenderBR {BR} at (59,15) size 0x0
+        RenderBlock {BLOCKQUOTE} at (0,20) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 96x20
+              text run at (0,0) width 96: "quote level one"
+        RenderBlock {BLOCKQUOTE} at (0,40) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 96x20
+              text run at (0,0) width 96: "quote level one"
+        RenderBlock (anonymous) at (0,60) size 784x20
+          RenderText {#text} at (0,0) size 59x20
+            text run at (0,0) width 59: "unquoted"
+          RenderBR {BR} at (59,15) size 0x0
+        RenderBlock {BLOCKQUOTE} at (0,80) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderBlock {BLOCKQUOTE} at (0,0) size 772x20 [border: (2px solid #0000FF)]
+              RenderBlock {DIV} at (12,0) size 760x20
+                RenderText {#text} at (0,0) size 97x20
+                  text run at (0,0) width 97: "quote level two"
+      RenderBlock {PRE} at (0,169) size 784x0
+caret: position 8 of child 6 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5549929-2-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5549929-2-expected.txt
new file mode 100644
index 0000000..58045e1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5549929-2-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 735x40
+          text run at (0,0) width 616: "This tests to make sure that a br isn't inserted into a tab span during an InsertLineBreak operation. "
+          text run at (616,0) width 119: "You can test for its"
+          text run at (0,20) width 432: "existence with the DOM inspector or you can look at the render tree."
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x40
+          RenderBR {BR} at (0,0) size 0x20
+          RenderInline {SPAN} at (0,0) size 32x20
+            RenderText {#text} at (0,20) size 32x20
+              text run at (0,20) width 32: "\x{9}"
+          RenderText {#text} at (32,20) size 20x20
+            text run at (32,20) width 20: "bar"
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/5549929-3-expected.txt b/LayoutTests/platform/gtk/editing/inserting/5549929-3-expected.txt
new file mode 100644
index 0000000..e7c463b
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/5549929-3-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x40
+          text run at (0,0) width 351: "This tests inserting a line break at the end of a tab span. "
+          text run at (351,0) width 416: "Below you should see 'foo' followed by an empty paragraph, with"
+          text run at (0,20) width 85: "the caret in it."
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 21x20
+          text run at (0,0) width 21: "foo"
+        RenderInline {SPAN} at (0,0) size 11x20
+          RenderText {#text} at (21,0) size 11x20
+            text run at (21,0) width 11: "\x{9}"
+        RenderBR {BR} at (32,15) size 0x0
+        RenderBR {BR} at (0,20) size 0x20
+caret: position 0 of child 3 {BR} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/6633727-expected.txt b/LayoutTests/platform/gtk/editing/inserting/6633727-expected.txt
new file mode 100644
index 0000000..752d401
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/6633727-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 772x40
+          text run at (0,0) width 772: "This tests the fix for <rdar://problem/6633727> Hitting return at the end of a line with an anchor jumps me to the bottom of"
+          text run at (0,20) width 76: "the message"
+        RenderBR {BR} at (76,35) size 0x0
+        RenderText {#text} at (0,40) size 529x20
+          text run at (0,40) width 529: "If the test has passed, the numbers should be in order, and only \"1\" should be a link."
+        RenderBR {BR} at (529,55) size 0x0
+      RenderBlock {DIV} at (0,60) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderInline {A} at (0,0) size 8x20 [color=#0000EE]
+            RenderText {#text} at (0,0) size 8x20
+              text run at (0,0) width 8: "1"
+        RenderBlock {DIV} at (0,20) size 784x40
+          RenderBlock (anonymous) at (0,0) size 784x20
+            RenderInline {A} at (0,0) size 0x0 [color=#0000EE]
+            RenderText {#text} at (0,0) size 8x20
+              text run at (0,0) width 8: "2"
+            RenderBR {BR} at (8,15) size 0x0
+          RenderBlock {DIV} at (0,20) size 784x20
+            RenderText {#text} at (0,0) size 8x20
+              text run at (0,0) width 8: "3"
+caret: position 1 of child 1 {#text} of child 2 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/6703873-expected.txt b/LayoutTests/platform/gtk/editing/inserting/6703873-expected.txt
new file mode 100644
index 0000000..6e7a340
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/6703873-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 742x40
+          text run at (0,0) width 667: "This tests that inserting a newline in place of a full line of quoted content doesn't add an extra quoted line. "
+          text run at (667,0) width 75: "The test has"
+          text run at (0,20) width 460: "passed if there are no empty lines (quoted or unquoted) in the box below."
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 43x20
+              text run at (0,0) width 43: "quoted"
+          RenderBlock {DIV} at (12,20) size 772x0
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 59x20
+            text run at (0,0) width 59: "unquoted"
+          RenderBR {BR} at (59,15) size 0x0
+        RenderBlock {BLOCKQUOTE} at (0,40) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 43x20
+              text run at (0,0) width 43: "quoted"
+      RenderBlock {PRE} at (0,129) size 784x0
+caret: position 8 of child 2 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/editable-inline-element-expected.txt b/LayoutTests/platform/gtk/editing/inserting/editable-inline-element-expected.txt
new file mode 100644
index 0000000..47f772e
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/editable-inline-element-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 371x20
+          text run at (0,0) width 371: "This tests InsertParagraph inside an editable inline element."
+      RenderBlock {DIV} at (0,36) size 784x42 [border: (1px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 21x40
+          RenderBR {BR} at (1,1) size 0x20
+          RenderText {#text} at (1,21) size 21x20
+            text run at (1,21) width 21: "foo"
+caret: position 0 of child 1 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/edited-whitespace-1-expected.txt b/LayoutTests/platform/gtk/editing/inserting/edited-whitespace-1-expected.txt
new file mode 100644
index 0000000..3efcbc7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/edited-whitespace-1-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 784x40
+          text run at (0,0) width 313: "This tests that edited whitespaces aren't all nbsps. "
+          text run at (313,0) width 471: "When the region becomes non-editable, Hello and World should still be on"
+          text run at (0,20) width 94: "different lines. "
+          text run at (94,20) width 584: "This demonstrates a bug: the div's focus halo doesn't go away when it becomes non-editable."
+      RenderBlock {DIV} at (0,56) size 62x42 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 55x40
+          text run at (1,1) width 55: " Hello    "
+          text run at (1,21) width 44: "World "
+      RenderBlock {OL} at (0,114) size 784x0
+caret: position 17 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-3654864-fix-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-3654864-fix-expected.txt
new file mode 100644
index 0000000..51ba8d2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-3654864-fix-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584 [border: (2px solid #FF0000)]
+      RenderBR {BR} at (14,14) size 0x30
+      RenderText {#text} at (14,44) size 36x30
+        text run at (14,44) width 36: "xxx"
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
+caret: position 3 of child 1 {#text} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-3659587-fix-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-3659587-fix-expected.txt
new file mode 100644
index 0000000..4d860aa
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-3659587-fix-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x94 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 108x63
+          RenderInline {B} at (0,0) size 108x66
+            RenderText {#text} at (14,14) size 108x33
+              text run at (14,14) width 108: "xxxtestxxx"
+            RenderBR {BR} at (122,38) size 0x0
+            RenderText {#text} at (14,47) size 36x33
+              text run at (14,47) width 36: "xxx"
+caret: position 3 of child 2 {#text} of child 0 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-3775316-fix-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-3775316-fix-expected.txt
new file mode 100644
index 0000000..9eeead9
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-3775316-fix-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 12x30
+          text run at (14,14) width 12: "x"
+        RenderBR {BR} at (26,37) size 0x0
+        RenderText {#text} at (14,44) size 12x30
+          text run at (14,44) width 12: "x"
+caret: position 1 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-3800346-fix-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-3800346-fix-expected.txt
new file mode 100644
index 0000000..8c9d513
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-3800346-fix-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x256 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x228
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,0) size 42x30
+              text run at (0,0) width 42: "Test"
+          RenderBlock {BLOCKQUOTE} at (40,54) size 676x30
+            RenderText {#text} at (0,0) size 42x30
+              text run at (0,0) width 42: "Test"
+          RenderBlock (anonymous) at (0,108) size 756x120
+            RenderBR {BR} at (0,0) size 0x30
+            RenderBR {BR} at (0,30) size 0x30
+            RenderBR {BR} at (0,60) size 0x30
+            RenderBR {BR} at (0,90) size 0x30
+caret: position 0 of child 5 {BR} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-3851164-fix-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-3851164-fix-expected.txt
new file mode 100644
index 0000000..0e6e378
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-3851164-fix-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x30
+        RenderText {#text} at (0,0) size 12x30
+          text run at (0,0) width 12: "x"
+caret: position 1 of child 0 {#text} of child 0 {P} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-3907422-fix-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-3907422-fix-expected.txt
new file mode 100644
index 0000000..64e485c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-3907422-fix-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderBR {BR} at (0,0) size 0x20
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-after-delete-001-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-after-delete-001-expected.txt
new file mode 100644
index 0000000..2ae5687
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-after-delete-001-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 36x30
+          text run at (14,14) width 36: "xxx"
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/mac/editing/inserting/insert-bg-font-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-bg-font-expected.txt
similarity index 100%
copy from LayoutTests/platform/mac/editing/inserting/insert-bg-font-expected.txt
copy to LayoutTests/platform/gtk/editing/inserting/insert-bg-font-expected.txt
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-br-005-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-br-005-expected.txt
new file mode 100644
index 0000000..0477ada
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-br-005-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x90
+          RenderText {#text} at (14,14) size 32x30
+            text run at (14,14) width 32: "foo"
+          RenderBR {BR} at (46,37) size 0x0
+          RenderBR {BR} at (14,44) size 0x30
+          RenderText {#text} at (14,74) size 12x30
+            text run at (14,74) width 12: "x"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-div-001-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-div-001-expected.txt
new file mode 100644
index 0000000..77892a2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-div-001-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 34x30
+          text run at (14,14) width 34: "test"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 12x30
+          text run at (14,14) width 12: "x"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-div-002-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-div-002-expected.txt
new file mode 100644
index 0000000..77892a2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-div-002-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 34x30
+          text run at (14,14) width 34: "test"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 12x30
+          text run at (14,14) width 12: "x"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-div-003-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-div-003-expected.txt
new file mode 100644
index 0000000..e83be40
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-div-003-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 34x30
+          text run at (14,14) width 34: "test"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 46x30
+          text run at (14,14) width 46: "xtest"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-div-004-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-div-004-expected.txt
new file mode 100644
index 0000000..fe8c909
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-div-004-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 34x30
+          text run at (14,14) width 34: "test"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-div-005-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-div-005-expected.txt
new file mode 100644
index 0000000..e1ec0c6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-div-005-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 34x30
+          text run at (14,14) width 34: "test"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,14) size 0x30
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 12x30
+          text run at (14,14) width 12: "x"
+caret: position 1 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-div-009-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-div-009-expected.txt
new file mode 100644
index 0000000..6597876
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-div-009-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 21x20
+          text run at (0,0) width 21: "test"
+      RenderBlock {DIV} at (0,20) size 784x20
+        RenderText {#text} at (0,0) size 8x20
+          text run at (0,0) width 8: "x"
+caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-div-024-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-div-024-expected.txt
new file mode 100644
index 0000000..a8fb6f7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-div-024-expected.txt
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x568
+      RenderBlock (anonymous) at (0,0) size 784x120
+        RenderText {#text} at (0,0) size 749x60
+          text run at (0,0) width 743: "Test inserting paragraphs and managing typing style correctly: Only \"line 1\""
+          text run at (743,0) width 6: " "
+          text run at (0,30) width 621: "should be bold. Other lines should be non-bold. Fix for this bug:"
+          text run at (621,30) width 6: " "
+        RenderInline {A} at (0,0) size 260x30 [color=#0000EE]
+          RenderText {#text} at (0,60) size 260x30
+            text run at (0,60) width 260: "<rdar://problem/3944492>"
+        RenderText {#text} at (260,60) size 724x60
+          text run at (260,60) width 458: " after pressing return twice, text is bold when it"
+          text run at (718,60) width 6: " "
+          text run at (0,90) width 116: "shouldn't be"
+      RenderBlock {DIV} at (0,120) size 784x12
+      RenderBlock {P} at (0,156) size 784x61 [border: (2px solid #0000FF)]
+        RenderInline {B} at (0,0) size 56x33
+          RenderText {#text} at (14,14) size 56x33
+            text run at (14,14) width 56: "line 1"
+      RenderBlock {P} at (0,241) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,14) size 36x30
+          text run at (14,14) width 36: "xxx"
+      RenderBlock {P} at (0,323) size 784x58 [border: (2px solid #0000FF)]
+        RenderBR {BR} at (14,14) size 0x30 [bgcolor=#008000]
+      RenderBlock {P} at (0,405) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,14) size 36x30
+          text run at (14,14) width 36: "xxx"
+caret: position 3 of child 0 {#text} of child 8 {P} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-space-in-empty-doc-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-space-in-empty-doc-expected.txt
new file mode 100644
index 0000000..079857f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-space-in-empty-doc-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 38x30
+          text run at (14,14) width 38: " foo"
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/insert-text-with-newlines-expected.txt b/LayoutTests/platform/gtk/editing/inserting/insert-text-with-newlines-expected.txt
new file mode 100644
index 0000000..57e56ae
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/insert-text-with-newlines-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x148 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 79x120
+          RenderText {#text} at (14,14) size 79x30
+            text run at (14,14) width 79: "Foo xxx"
+          RenderBR {BR} at (93,37) size 0x0
+          RenderInline {I} at (0,0) size 33x30
+            RenderText {#text} at (14,44) size 33x30
+              text run at (14,44) width 33: "bar"
+          RenderText {#text} at (47,44) size 42x30
+            text run at (47,44) width 42: " xxx"
+          RenderBR {BR} at (89,67) size 0x0
+          RenderBR {BR} at (14,74) size 0x30
+          RenderText {#text} at (14,104) size 70x30
+            text run at (14,104) width 70: "bazxxx"
+caret: position 6 of child 6 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/redo-expected.txt b/LayoutTests/platform/gtk/editing/inserting/redo-expected.txt
new file mode 100644
index 0000000..44ef152
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/redo-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 294x20
+          text run at (0,0) width 294: "The caret should be at the end of this sentence."
+caret: position 48 of child 0 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/typing-001-expected.txt b/LayoutTests/platform/gtk/editing/inserting/typing-001-expected.txt
new file mode 100644
index 0000000..16aec43
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/typing-001-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 176x30
+          RenderText {#text} at (14,14) size 176x30
+            text run at (14,14) width 176: "xxxXXxxxXXxxx"
+caret: position 13 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/typing-002-expected.txt b/LayoutTests/platform/gtk/editing/inserting/typing-002-expected.txt
new file mode 100644
index 0000000..6f690d9
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/typing-002-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 112x30
+          RenderText {#text} at (14,14) size 79x30
+            text run at (14,14) width 79: "Foo xxx"
+          RenderInline {I} at (0,0) size 33x30
+            RenderText {#text} at (93,14) size 33x30
+              text run at (93,14) width 33: "bar"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 7 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/typing-003-expected.txt b/LayoutTests/platform/gtk/editing/inserting/typing-003-expected.txt
new file mode 100644
index 0000000..e549a4d
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/typing-003-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x148 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 738x120
+          text run at (14,14) width 696: "xxxx x xx xxxx xxxxxx xxxxx xxxxxx xxx xx xxxx xxx xxx xx x xxxxx"
+          text run at (710,14) width 6: " "
+          text run at (14,44) width 732: "xxxxxxxxxxxx xxxxxxxx xxx xxxx xxxxx xx xxx xxxx xxxx xxxxx xxxxxx"
+          text run at (746,44) width 6: " "
+          text run at (14,74) width 714: "xxx xx xxxx xxx xxx xx xxxxxx xxxxx xxxxxx xxx xx xxxx xxx xxx xx x"
+          text run at (728,74) width 6: " "
+          text run at (14,104) width 360: "xxxxx xxxxxxxxxxxx xxxxxxxx xxx "
+        RenderInline {SPAN} at (0,0) size 0x30
+caret: position 233 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/typing-around-br-001-expected.txt b/LayoutTests/platform/gtk/editing/inserting/typing-around-br-001-expected.txt
new file mode 100644
index 0000000..662adb6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/typing-around-br-001-expected.txt
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x268 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 70x240
+          RenderText {#text} at (14,14) size 70x30
+            text run at (14,14) width 70: "XXxxx"
+          RenderBR {BR} at (84,37) size 0x0
+          RenderText {#text} at (14,44) size 70x30
+            text run at (14,44) width 70: "XXxxx"
+          RenderBR {BR} at (84,67) size 0x0
+          RenderText {#text} at (14,74) size 36x30
+            text run at (14,74) width 36: "xxx"
+          RenderBR {BR} at (50,97) size 0x0
+          RenderText {#text} at (14,104) size 70x30
+            text run at (14,104) width 70: "XXxxx"
+          RenderBR {BR} at (84,127) size 0x0
+          RenderText {#text} at (14,134) size 36x30
+            text run at (14,134) width 36: "xxx"
+          RenderBR {BR} at (50,157) size 0x0
+          RenderText {#text} at (14,164) size 36x30
+            text run at (14,164) width 36: "xxx"
+          RenderBR {BR} at (50,187) size 0x0
+          RenderText {#text} at (14,194) size 36x30
+            text run at (14,194) width 36: "xxx"
+          RenderBR {BR} at (50,217) size 0x0
+          RenderText {#text} at (14,224) size 70x30
+            text run at (14,224) width 70: "XXxxx"
+caret: position 5 of child 14 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/inserting/typing-around-image-001-expected.txt b/LayoutTests/platform/gtk/editing/inserting/typing-around-image-001-expected.txt
new file mode 100644
index 0000000..9478c89
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/inserting/typing-around-image-001-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x138 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 390x30
+          RenderText {#text} at (14,94) size 12x30
+            text run at (14,94) width 12: "x"
+          RenderImage {IMG} at (26,14) size 76x103
+          RenderText {#text} at (102,94) size 36x30
+            text run at (102,94) width 36: "xxx"
+          RenderImage {IMG} at (138,14) size 76x103
+          RenderText {#text} at (214,94) size 36x30
+            text run at (214,94) width 36: "xxx"
+          RenderText {#text} at (250,94) size 42x30
+            text run at (250,94) width 42: " xxx"
+          RenderImage {IMG} at (292,14) size 76x103
+          RenderText {#text} at (368,94) size 36x30
+            text run at (368,94) width 36: "xxx"
+caret: position 3 of child 7 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/4076267-2-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/4076267-2-expected.txt
new file mode 100644
index 0000000..73d2414
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/4076267-2-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 381x20
+          text run at (0,0) width 381: "This tests to see if trailing spaces are lost during a copy/paste"
+      RenderBlock {HR} at (0,36) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,46) size 784x28 [border: (2px solid #FFAAAA)]
+        RenderBlock {DIV} at (2,2) size 780x24 [border: (2px solid #AAAAFF)]
+          RenderText {#text} at (2,2) size 4x20
+            text run at (2,2) width 4: "."
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/4076267-3-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/4076267-3-expected.txt
new file mode 100644
index 0000000..dcc8f34
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/4076267-3-expected.txt
@@ -0,0 +1,33 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 333x20
+          text run at (0,0) width 333: "This tests to see if spaces are lost during a copy/paste"
+      RenderBlock {HR} at (0,36) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,46) size 784x220
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,60) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,80) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,100) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,120) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,140) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,160) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,180) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,200) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+caret: position 0 of child 0 {BR} of child 10 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/4076267-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/4076267-expected.txt
new file mode 100644
index 0000000..52467f7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/4076267-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 383x20
+          text run at (0,0) width 383: "This tests to see if leading spaces are lost during a copy/paste"
+      RenderBlock {HR} at (0,36) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,46) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5032095-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5032095-expected.txt
new file mode 100644
index 0000000..d2e5def
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5032095-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 764x40
+          text run at (0,0) width 690: "This tests for a bug where content pasted at the end of a paragraph would be inserted into the next paragraph. "
+          text run at (690,0) width 74: "You should"
+          text run at (0,20) width 145: "see 'helloworld' below."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 31x20
+          text run at (0,0) width 31: "hello"
+        RenderText {#text} at (31,0) size 37x20
+          text run at (31,0) width 37: "world"
+caret: position 5 of child 1 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5071074-2-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5071074-2-expected.txt
new file mode 100644
index 0000000..e59d055
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5071074-2-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 541x20
+          text run at (0,0) width 541: "This tests for a bug where copied links wouldn't be pasted as links at certain positions."
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 159x20
+            text run at (0,0) width 159: "This should be plain text."
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 159x20
+            text run at (0,0) width 159: "This should be plain text."
+          RenderInline {A} at (0,0) size 136x20 [color=#0000EE]
+            RenderText {#text} at (159,0) size 136x20
+              text run at (159,0) width 136: "This should be a link."
+        RenderBlock (anonymous) at (0,40) size 784x0
+caret: position 22 of child 0 {#text} of child 1 {A} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5075944-3-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5075944-3-expected.txt
new file mode 100644
index 0000000..d83a2e9
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5075944-3-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 740x20
+          text run at (0,0) width 367: "This test for a bug moving a paragraph of underlined text. "
+          text run at (367,0) width 373: "The text should look the same before and after the deletion."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 192x20
+            text run at (0,0) width 192: "This should not be underlined."
+          RenderInline {SPAN} at (0,0) size 168x20 [color=#0000FF]
+            RenderInline {SPAN} at (0,0) size 168x20 [color=#FF0000]
+              RenderText {#text} at (192,0) size 168x20
+                text run at (192,0) width 168: "This should be underlined."
+        RenderBlock (anonymous) at (0,20) size 784x0
+caret: position 30 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5089327-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5089327-expected.txt
new file mode 100644
index 0000000..34f44df
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5089327-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 762x40
+          text run at (0,0) width 762: "This tests to make sure that content that has the document default color is pasted as blue (or whatever the color for quoted"
+          text run at (0,20) width 352: "content is) when pasted in the middle of quoted content."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {BLOCKQUOTE} at (0,0) size 744x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 732x20
+            RenderText {#text} at (0,0) size 5x20
+              text run at (0,0) width 5: "("
+            RenderText {#text} at (5,0) size 155x20
+              text run at (5,0) width 155: "This text should be blue."
+            RenderText {#text} at (160,0) size 5x20
+              text run at (160,0) width 5: ")"
+        RenderBlock (anonymous) at (0,36) size 784x0
+caret: position 25 of child 1 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5134759-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5134759-expected.txt
new file mode 100644
index 0000000..d23c828
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5134759-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 648x20
+          text run at (0,0) width 504: "This tests for a hang when pasting underlined content at the end of a paragraph. "
+          text run at (504,0) width 144: "You should see 'Hello "
+        RenderInline {U} at (0,0) size 45x20
+          RenderText {#text} at (648,0) size 45x20
+            text run at (648,0) width 45: "World!"
+        RenderText {#text} at (693,0) size 50x20
+          text run at (693,0) width 50: "' below."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 39x20
+            text run at (0,0) width 39: "Hello "
+          RenderInline {SPAN} at (0,0) size 45x20
+            RenderInline {DIV} at (0,0) size 45x20
+              RenderText {#text} at (39,0) size 45x20
+                text run at (39,0) width 45: "World!"
+        RenderBlock (anonymous) at (0,20) size 784x0
+caret: position 6 of child 0 {#text} of child 0 {DIV} of child 1 {SPAN} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5156401-1-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5156401-1-expected.txt
new file mode 100644
index 0000000..6c1b77e
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5156401-1-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 450x20
+          text run at (0,0) width 450: "This tests for a crash when pasting content into a link inside a table cell."
+      RenderBlock {DIV} at (0,36) size 784x30
+        RenderTable {TABLE} at (0,0) size 146x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 144x28
+            RenderTableRow {TR} at (0,2) size 144x24
+              RenderTableCell {TD} at (2,2) size 140x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {A} at (0,0) size 136x20 [color=#0000EE]
+                  RenderText {#text} at (2,2) size 136x20
+                    text run at (2,2) width 136: "This should be a link."
+caret: position 21 of child 0 {#text} of child 0 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5387578-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5387578-expected.txt
new file mode 100644
index 0000000..6974cc7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5387578-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 779x40
+          text run at (0,0) width 374: "This tests for a crash when pasting content into a table cell. "
+          text run at (374,0) width 405: "The table cell has some collapsed whitespace at the end of it that"
+          text run at (0,20) width 110: "tickled the crash. "
+          text run at (110,20) width 333: "You should see 'Hello World' in the table cell below."
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderTable {TABLE} at (0,0) size 89x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 87x28
+            RenderTableRow {TR} at (0,2) size 87x24
+              RenderTableCell {TD} at (2,2) size 83x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 79x20
+                  text run at (2,2) width 79: "Hello World"
+                  text run at (81,2) width 0: " \x{9}\x{9} \x{9}\x{9}"
+caret: position 11 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/5483567-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/5483567-expected.txt
new file mode 100644
index 0000000..7b64bbe
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/5483567-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 8x20
+          text run at (0,0) width 8: "x"
+        RenderText {#text} at (8,0) size 21x20
+          text run at (8,0) width 21: "foo"
+        RenderText {#text} at (29,0) size 8x20
+          text run at (29,0) width 8: "x"
+caret: position 3 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/7955-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/7955-expected.txt
new file mode 100644
index 0000000..9986368
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/7955-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 21x20
+            text run at (0,0) width 21: "foo"
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 20x20
+            text run at (0,0) width 20: "bar"
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/cut-text-001-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/cut-text-001-expected.txt
new file mode 100644
index 0000000..dbafd1c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/cut-text-001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 78x30
+          RenderText {#text} at (14,14) size 78x30
+            text run at (14,14) width 78: "foo  baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/innerText-inline-table-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/innerText-inline-table-expected.txt
new file mode 100644
index 0000000..9b3a6b6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/innerText-inline-table-expected.txt
@@ -0,0 +1,36 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 490x20
+          text run at (0,0) width 490: "Checks that the text iterator is emitting a space before and after an inline table."
+      RenderBlock {DIV} at (0,20) size 784x31
+        RenderText {#text} at (0,11) size 31x20
+          text run at (0,11) width 31: "hello"
+        RenderTable {TABLE} at (31,0) size 14x26
+          RenderTableSection {TBODY} at (0,0) size 14x26
+            RenderTableRow {TR} at (0,2) size 14x22
+              RenderTableCell {TD} at (2,2) size 10x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 8x20
+                  text run at (1,1) width 8: "1"
+        RenderText {#text} at (45,11) size 37x20
+          text run at (45,11) width 37: "world"
+      RenderBlock {DIV} at (0,51) size 784x31
+        RenderText {#text} at (0,11) size 25x20
+          text run at (0,11) width 25: "foo "
+        RenderTable {TABLE} at (25,0) size 14x26
+          RenderTableSection {TBODY} at (0,0) size 14x26
+            RenderTableRow {TR} at (0,2) size 14x22
+              RenderTableCell {TD} at (2,2) size 10x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 8x20
+                  text run at (1,1) width 8: "2"
+        RenderText {#text} at (39,11) size 24x20
+          text run at (39,11) width 24: " bar"
+      RenderBlock {UL} at (0,98) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderBlock {PRE} at (0,0) size 744x20
+            RenderListMarker at (-18,0) size 7x20: bullet
+            RenderText {#text} at (0,4) size 64x15
+              text run at (0,4) width 64: "Success!"
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-1-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-1-expected.txt
new file mode 100644
index 0000000..d283620
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-1-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 354x20
+          text run at (0,0) width 354: "This tests pasting a blockquote into an empty paragraph."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 179x20
+            text run at (22,0) width 179: "This should be blockquoted."
+caret: position 27 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-2-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-2-expected.txt
new file mode 100644
index 0000000..f18c7de
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-2-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 360x20
+          text run at (0,0) width 360: "This tests pasting a blockquote at the start of a paragraph."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 203x20
+          text run at (0,0) width 203: "This should not be blockquoted."
+        RenderText {#text} at (203,0) size 207x20
+          text run at (203,0) width 207: " This should not be blockquoted."
+caret: position 31 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-3-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-3-expected.txt
new file mode 100644
index 0000000..e806bfc
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-3-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 390x20
+          text run at (0,0) width 390: "This tests pasting a blockquote into the middle of a paragraph."
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 203x20
+            text run at (0,0) width 203: "This should not be blockquoted."
+          RenderText {#text} at (203,0) size 207x20
+            text run at (203,0) width 207: " This should not be blockquoted."
+        RenderBlock {BLOCKQUOTE} at (0,20) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 179x20
+            text run at (22,0) width 179: "This should be blockquoted."
+          RenderBR {BR} at (201,15) size 0x0
+        RenderBlock (anonymous) at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 203x20
+            text run at (0,0) width 203: "This should not be blockquoted."
+          RenderText {#text} at (203,0) size 207x20
+            text run at (203,0) width 207: " This should not be blockquoted."
+caret: position 31 of child 3 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
new file mode 100644
index 0000000..f6072fa
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 354x20
+          text run at (0,0) width 354: "This tests pasting a blockquote after another blockquote."
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 41x20
+            text run at (22,0) width 41: "Line 1"
+        RenderBlock {BLOCKQUOTE} at (0,20) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 41x20
+            text run at (22,0) width 41: "Line 2"
+        RenderBlock (anonymous) at (0,40) size 784x0
+caret: position 6 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt
new file mode 100644
index 0000000..666498c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-2-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 773x40
+          text run at (0,0) width 773: "This tests pasting a nested blockquote into a blockquote. The first line below should be singly-blockquoted, and the second"
+          text run at (0,20) width 161: "should be doubly-quoted."
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 27x20
+            text run at (22,0) width 27: "One"
+          RenderText {#text} at (49,0) size 30x20
+            text run at (49,0) width 30: "Two"
+        RenderBlock (anonymous) at (0,20) size 784x0
+          RenderInline {SPAN} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+            RenderBlock {BLOCKQUOTE} at (22,0) size 762x20 [border: (2px solid #0000FF)]
+              RenderBlock {DIV} at (22,0) size 740x20
+                RenderText {#text} at (0,0) size 37x20
+                  text run at (0,0) width 37: "Three"
+        RenderBlock (anonymous) at (0,40) size 784x0
+          RenderInline {SPAN} at (0,0) size 0x0
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 0 {BLOCKQUOTE} of child 1 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt
new file mode 100644
index 0000000..b153534
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-3-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x156
+        RenderBlock {DIV} at (0,0) size 784x136
+          RenderBlock {P} at (0,0) size 784x20
+            RenderText {#text} at (0,0) size 608x20
+              text run at (0,0) width 608: "This tests pasting a blockquote into a blockquote. Nothing below should be double-blockquoted."
+          RenderBlock {BLOCKQUOTE} at (0,36) size 784x80 [color=#0000FF] [border: (2px solid #0000FF)]
+            RenderText {#text} at (22,0) size 23x20
+              text run at (22,0) width 23: "one"
+            RenderBR {BR} at (45,15) size 0x0
+            RenderText {#text} at (22,20) size 24x20
+              text run at (22,20) width 24: "two"
+            RenderBR {BR} at (46,35) size 0x0
+            RenderText {#text} at (22,40) size 31x20
+              text run at (22,40) width 31: "three"
+            RenderBR {BR} at (53,55) size 0x0
+            RenderText {#text} at (22,60) size 24x20
+              text run at (22,60) width 24: "two"
+          RenderBlock (anonymous) at (0,116) size 784x0
+          RenderBlock {BLOCKQUOTE} at (0,116) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+            RenderBR {BR} at (22,0) size 0x20
+        RenderBlock (anonymous) at (0,136) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+caret: position 3 of child 6 {#text} of child 3 {BLOCKQUOTE} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
new file mode 100644
index 0000000..0b47bc7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 548x20
+          text run at (0,0) width 548: "This test passes if nothing is double-quoted, and \"Two\" and \"Four\" aren't quoted at all."
+      RenderBlock {DIV} at (0,36) size 784x100
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x40 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 33x20
+            text run at (22,0) width 33: "Paste"
+          RenderBR {BR} at (55,15) size 0x0
+          RenderText {#text} at (22,20) size 31x20
+            text run at (22,20) width 31: "Here"
+          RenderText {#text} at (53,20) size 27x20
+            text run at (53,20) width 27: "One"
+        RenderBlock (anonymous) at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 30x20
+            text run at (0,0) width 30: "Two"
+        RenderBlock {BLOCKQUOTE} at (0,60) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 37x20
+            text run at (22,0) width 37: "Three"
+        RenderBlock (anonymous) at (0,80) size 784x20
+          RenderText {#text} at (0,0) size 30x20
+            text run at (0,0) width 30: "Four"
+caret: position 4 of child 3 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
new file mode 100644
index 0000000..48579b6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-blockquote-into-blockquote-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 608x20
+          text run at (0,0) width 608: "This tests pasting a blockquote into a blockquote. Nothing below should be double-blockquoted."
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 27x20
+            text run at (22,0) width 27: "One"
+          RenderText {#text} at (49,0) size 30x20
+            text run at (49,0) width 30: "Two"
+        RenderBlock (anonymous) at (0,20) size 784x0
+          RenderInline {SPAN} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (22,0) size 762x20
+              RenderText {#text} at (0,0) size 37x20
+                text run at (0,0) width 37: "Three"
+        RenderBlock (anonymous) at (0,40) size 784x0
+          RenderInline {SPAN} at (0,0) size 0x0
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 0 {BLOCKQUOTE} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-table-001-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-table-001-expected.txt
new file mode 100644
index 0000000..42c8409
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-table-001-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x164 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderInline {SPAN} at (0,0) size 161x30
+            RenderText {#text} at (0,0) size 161x30
+              text run at (0,0) width 161: "Empty table cell"
+          RenderText {#text} at (0,0) size 0x0
+        RenderBlock {P} at (14,68) size 756x58
+          RenderTable {TABLE} at (0,0) size 292x58 [border: (2px outset #808080)]
+            RenderTableSection {TBODY} at (2,2) size 288x54
+              RenderTableRow {TR} at (0,2) size 288x24
+                RenderTableCell {TD} at (2,2) size 81x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 77x20
+                    text run at (2,2) width 77: "Left column"
+                RenderTableCell {TD} at (85,2) size 201x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 86x20
+                    text run at (2,2) width 86: "Right column"
+              RenderTableRow {TR} at (0,28) size 288x24
+                RenderTableCell {TD} at (2,38) size 81x4 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderTableCell {TD} at (85,28) size 201x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 197x20
+                    text run at (2,2) width 197: "I should be in the right column."
+caret: position 2 of child 1 {TABLE} of child 3 {P} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-001-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-001-expected.txt
new file mode 100644
index 0000000..1bdb240
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 109x30
+          RenderText {#text} at (14,14) size 109x30
+            text run at (14,14) width 109: "foo bar baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 7 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-002-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-002-expected.txt
new file mode 100644
index 0000000..ca2fd23
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-002-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 348x30
+          text run at (14,14) width 348: "There is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 434x30
+          text run at (14,14) width 434: "Which taken at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 351x30
+          text run at (14,14) width 351: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,174) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 357x30
+          text run at (14,14) width 357: "Is bound in shallows and in miseries."
+selection start: position 6 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 11 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-003-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-003-expected.txt
new file mode 100644
index 0000000..ba8eb39
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-003-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x232 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,0) size 348x30
+            text run at (0,0) width 348: "There is a tide in the affairs of men,"
+        RenderBlock {DIV} at (14,44) size 756x174 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 728x30
+            RenderText {#text} at (0,0) size 434x30
+              text run at (0,0) width 434: "Which taken at the flood leads on to fortune."
+          RenderBlock {DIV} at (14,44) size 728x116 [border: (2px solid #FF0000)]
+            RenderBlock (anonymous) at (14,14) size 700x30
+              RenderText {#text} at (0,0) size 351x30
+                text run at (0,0) width 351: "Omitted, all the voyage of their life,"
+            RenderBlock {DIV} at (14,44) size 700x58 [border: (2px solid #FF0000)]
+              RenderText {#text} at (14,14) size 357x30
+                text run at (14,14) width 357: "Is bound in shallows and in miseries."
+selection start: position 6 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-004-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-004-expected.txt
new file mode 100644
index 0000000..fc93b98
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-004-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 348x30
+          text run at (14,14) width 348: "There is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 434x30
+          text run at (14,14) width 434: "Which taken at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 351x30
+          text run at (14,14) width 351: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,174) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 357x30
+          text run at (14,14) width 357: "Is bound in shallows and in miseries."
+selection start: position 6 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 0 of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-005-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-005-expected.txt
new file mode 100644
index 0000000..fc93b98
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-005-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 348x30
+          text run at (14,14) width 348: "There is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 434x30
+          text run at (14,14) width 434: "Which taken at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 351x30
+          text run at (14,14) width 351: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,174) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 357x30
+          text run at (14,14) width 357: "Is bound in shallows and in miseries."
+selection start: position 6 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 0 of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-006-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-006-expected.txt
new file mode 100644
index 0000000..41f7b26
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-006-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 348x30
+          text run at (14,14) width 348: "There is a tide in the affairs of men,"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 434x30
+          text run at (14,14) width 434: "Which taken at the flood leads on to fortune."
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 351x30
+          text run at (14,14) width 351: "Omitted, all the voyage of their life,"
+      RenderBlock {DIV} at (0,174) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 357x30
+          text run at (14,14) width 357: "Is bound in shallows and in miseries."
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 0 of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-007-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-007-expected.txt
new file mode 100644
index 0000000..b55592d
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-007-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x232 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,0) size 348x30
+            text run at (0,0) width 348: "There is a tide in the affairs of men,"
+        RenderBlock {DIV} at (14,44) size 756x174 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 728x30
+            RenderText {#text} at (0,0) size 434x30
+              text run at (0,0) width 434: "Which taken at the flood leads on to fortune."
+          RenderBlock {DIV} at (14,44) size 728x116 [border: (2px solid #FF0000)]
+            RenderBlock (anonymous) at (14,14) size 700x30
+              RenderText {#text} at (0,0) size 351x30
+                text run at (0,0) width 351: "Omitted, all the voyage of their life,"
+            RenderBlock {DIV} at (14,44) size 700x58 [border: (2px solid #FF0000)]
+              RenderText {#text} at (14,14) size 357x30
+                text run at (14,14) width 357: "Is bound in shallows and in miseries."
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 0 of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-008-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-008-expected.txt
new file mode 100644
index 0000000..2553d92
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-008-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,0) size 351x30
+            text run at (0,0) width 351: "Omitted, all the voyage of their life,"
+        RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,14) size 357x30
+            text run at (14,14) width 357: "Is bound in shallows and in miseries."
+        RenderBlock (anonymous) at (14,102) size 756x30
+          RenderText {#text} at (0,0) size 382x30
+            text run at (0,0) width 382: "Upon such a full sea are we now afloat,"
+selection start: position 12 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 20 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-009-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-009-expected.txt
new file mode 100644
index 0000000..ac276da
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-009-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,0) size 351x30
+            text run at (0,0) width 351: "Omitted, all the voyage of their life,"
+        RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,14) size 357x30
+            text run at (14,14) width 357: "Is bound in shallows and in miseries."
+        RenderBlock (anonymous) at (14,102) size 756x30
+          RenderText {#text} at (0,0) size 382x30
+            text run at (0,0) width 382: "Upon such a full sea are we now afloat,"
+selection start: position 37 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 2 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-010-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-010-expected.txt
new file mode 100644
index 0000000..9219565
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-010-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 348x30
+          text run at (14,14) width 348: "There is a tide in the affairs of men."
+        RenderBR {BR} at (362,37) size 0x0
+        RenderBR {BR} at (14,44) size 0x30
+        RenderBR {BR} at (14,74) size 0x30
+caret: position 0 of child 3 {BR} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-text-015-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-015-expected.txt
new file mode 100644
index 0000000..2ea5011
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-text-015-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88
+        RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (14,14) size 756x30
+            RenderBR {BR} at (0,0) size 0x30
+          RenderBlock {P} at (14,44) size 756x30
+            RenderBR {BR} at (0,0) size 0x30
+caret: position 0 of child 0 {BR} of child 1 {P} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/paste-xml-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/paste-xml-expected.txt
new file mode 100644
index 0000000..57818d1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/paste-xml-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x74
+  RenderBlock {html} at (0,0) size 800x74
+    RenderBody {body} at (8,8) size 784x58
+      RenderBlock {div} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {span} at (0,0) size 109x30
+          RenderText {#text} at (14,14) size 109x30
+            text run at (14,14) width 109: "foo bar baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 7 of child 0 {#text} of child 1 {span} of child 1 {div} of child 3 {body} of child 1 {html} of document
diff --git a/LayoutTests/platform/gtk/editing/pasteboard/select-element-1-expected.txt b/LayoutTests/platform/gtk/editing/pasteboard/select-element-1-expected.txt
new file mode 100644
index 0000000..8017bb0
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/pasteboard/select-element-1-expected.txt
@@ -0,0 +1,20 @@
+CONSOLE MESSAGE: line 43: TypeError: Result of expression 'select' [null] is not an object.
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 473x20
+          text run at (0,0) width 253: "This tests copy/paste of select elements. "
+          text run at (253,0) width 220: "All the options should be included."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderInline {SPAN} at (0,0) size 0x20 [bgcolor=#FFFFFF]
+          RenderBR {BR} at (0,0) size 0x20
+      RenderBlock {DIV} at (0,56) size 784x20
+      RenderBlock {UL} at (0,92) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x20: bullet
+          RenderText {#text} at (0,0) size 43x20
+            text run at (0,0) width 43: "Passed"
+caret: position 0 of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/13804-expected.txt b/LayoutTests/platform/gtk/editing/selection/13804-expected.txt
new file mode 100644
index 0000000..019ff0f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/13804-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 778x40
+          text run at (0,0) width 778: "This tests for a bug when moving the caret backward through a misspelled word. Once the caret is no longer adjacent to it it"
+          text run at (0,20) width 203: "should be marked as misspelled."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 298x20
+          text run at (0,0) width 298: "This sentence ends with a misspelled word asd."
+caret: position 40 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/14971-expected.txt b/LayoutTests/platform/gtk/editing/selection/14971-expected.txt
new file mode 100644
index 0000000..5864a90
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/14971-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 756x40
+          text run at (0,0) width 599: "This tests to make sure that a drag-selecting through a -webkit-user-select:ignore region works. "
+          text run at (599,0) width 157: "The selection should end"
+          text run at (0,20) width 270: "somewhere inside the word 'World' below."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderInline {SPAN} at (0,0) size 35x20
+          RenderText {#text} at (0,0) size 35x20
+            text run at (0,0) width 35: "Hello"
+        RenderText {#text} at (35,0) size 4x20
+          text run at (35,0) width 4: " "
+        RenderInline {SPAN} at (0,0) size 40x20
+          RenderText {#text} at (39,0) size 40x20
+            text run at (39,0) width 40: "World"
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/4818145-expected.txt b/LayoutTests/platform/gtk/editing/selection/4818145-expected.txt
new file mode 100644
index 0000000..b932185
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/4818145-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 734x40
+          text run at (0,0) width 509: "This tries to select a table inside an editable region whose content is not editable. "
+          text run at (509,0) width 225: "The table and its contents should be"
+          text run at (0,20) width 54: "selected."
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderTable {TABLE} at (0,0) size 31x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 29x28
+            RenderTableRow {TR} at (0,2) size 29x24
+              RenderTableCell {TD} at (2,2) size 25x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 21x20
+                  text run at (2,2) width 21: "foo"
+selection start: position 0 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/4866671-expected.txt b/LayoutTests/platform/gtk/editing/selection/4866671-expected.txt
new file mode 100644
index 0000000..4d2b8a0
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/4866671-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x22
+        RenderText {#text} at (0,1) size 612x20
+          text run at (0,1) width 432: "This tests caret movement through -webkit-user-select:none content. "
+          text run at (432,1) width 180: "The caret should move over "
+        RenderInline {B} at (0,0) size 24x22
+          RenderText {#text} at (612,0) size 24x22
+            text run at (612,0) width 24: "yyy"
+        RenderText {#text} at (636,1) size 4x20
+          text run at (636,1) width 4: "."
+      RenderBlock {DIV} at (0,38) size 784x22
+        RenderText {#text} at (0,1) size 8x20
+          text run at (0,1) width 8: "x"
+        RenderInline {SPAN} at (0,0) size 24x22
+          RenderText {#text} at (8,0) size 24x22
+            text run at (8,0) width 24: "yyy"
+        RenderText {#text} at (32,1) size 8x20
+          text run at (32,1) width 8: "x"
+caret: position 0 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/4889598-expected.txt b/LayoutTests/platform/gtk/editing/selection/4889598-expected.txt
new file mode 100644
index 0000000..13a86d7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/4889598-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 784x20
+          text run at (0,0) width 784: "This tests for a bug moving down by a line from a line just above a ToDo, and moving up by a line from just below a ToDo."
+      RenderBlock {DIV} at (0,36) size 784x70
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 279x20
+            text run at (0,0) width 279: "Click anywhere in this line and move down."
+        RenderTable {TABLE} at (0,20) size 335x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 333x28
+            RenderTableRow {TR} at (0,2) size 333x24
+              RenderTableCell {TD} at (2,2) size 329x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 63x20
+                  text run at (2,2) width 63: "The caret "
+                RenderInline {SPAN} at (0,0) size 42x20 [color=#0000FF]
+                  RenderText {#text} at (65,2) size 42x20
+                    text run at (65,2) width 42: "should"
+                RenderText {#text} at (107,2) size 220x20
+                  text run at (107,2) width 220: " always go into the editable region."
+        RenderBlock {DIV} at (0,50) size 784x20
+          RenderText {#text} at (0,0) size 259x20
+            text run at (0,0) width 259: "Click anywhere in this line and move up."
+caret: position 6 of child 0 {#text} of child 1 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 3 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/4895428-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/4895428-2-expected.txt
new file mode 100644
index 0000000..521b3e1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/4895428-2-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 775x60
+          text run at (0,0) width 775: "This tests to see if a mouse click inside an editable, focusable node focuses that node. Normally, we focus a node on mouse"
+          text run at (0,20) width 765: "down, but to make it easier to drag selections containing editable pieces we delay focus until mouse up. The editable table"
+          text run at (0,40) width 440: "cell should be focused and you should see a 'Success' message below."
+      RenderBlock {DIV} at (0,76) size 784x30
+        RenderTable {TABLE} at (0,0) size 143x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 141x28
+            RenderTableRow {TR} at (0,2) size 141x24
+              RenderTableCell {TD} at (2,2) size 82x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 78x20
+                  text run at (2,2) width 78: "non-editable"
+              RenderTableCell {TD} at (86,2) size 53x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 49x20
+                  text run at (2,2) width 49: "editable"
+      RenderBlock {DIV} at (0,106) size 784x20
+        RenderBR {BR} at (0,0) size 0x20
+      RenderBlock {UL} at (0,142) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x20: bullet
+          RenderText {#text} at (0,0) size 50x20
+            text run at (0,0) width 50: "Success"
+caret: position 4 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/4960116-expected.txt b/LayoutTests/platform/gtk/editing/selection/4960116-expected.txt
new file mode 100644
index 0000000..c7cfa2c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/4960116-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 770x60
+          text run at (0,0) width 764: "This tests for a crash when performing a selection modification, when a node containing the selection was made invisible,"
+          text run at (0,20) width 363: "and when there is nowhere visible for the selection to go. "
+          text run at (363,20) width 407: "For example, set the caret inside of an editable div, and make the"
+          text run at (0,40) width 492: "div invisible, then try to move the selection forward/backward by a paragraph."
+      RenderBlock {DIV} at (0,76) size 784x20
+caret: position 0 of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/4960137-expected.txt b/LayoutTests/platform/gtk/editing/selection/4960137-expected.txt
new file mode 100644
index 0000000..23f0f9a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/4960137-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 659x20
+          text run at (0,0) width 659: "This tests for an ASSERTion failure when setting the main frame's selection inside a node in a subframe."
+      RenderBlock (anonymous) at (0,36) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134
+                RenderText {#text} at (0,0) size 72x20
+                  text run at (0,0) width 72: "hello world"
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/gtk/editing/selection/4983858-expected.txt b/LayoutTests/platform/gtk/editing/selection/4983858-expected.txt
new file mode 100644
index 0000000..613e615
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/4983858-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 772x40
+          text run at (0,0) width 570: "This tests for a bug where selecting a word would select the line break and word before it. "
+          text run at (570,0) width 135: "Only the word in the "
+          text run at (705,0) width 63: "paragraph"
+          text run at (768,0) width 4: " "
+          text run at (0,20) width 162: "below should be selected:"
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,40) size 784x20
+        RenderText {#text} at (0,0) size 21x20
+          text run at (0,0) width 21: "foo"
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 3 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5007143-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/5007143-2-expected.txt
new file mode 100644
index 0000000..6551bbf
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5007143-2-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 759x40
+          text run at (0,0) width 759: "This tests for a bug when moving the caret forward by a line from a range selection with a horizontal position for vertical"
+          text run at (0,20) width 136: "arrow navigation set. "
+          text run at (136,20) width 601: "To match TextEdit, the caret should be between the second and third 'x's in the forth paragraph."
+      RenderBlock {DIV} at (0,56) size 784x80
+        RenderText {#text} at (0,0) size 24x20
+          text run at (0,0) width 24: "xxx"
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 24x20
+          text run at (0,20) width 24: "xxx"
+        RenderBR {BR} at (24,35) size 0x0
+        RenderText {#text} at (0,40) size 8x20
+          text run at (0,40) width 8: "x"
+        RenderBR {BR} at (8,55) size 0x0
+        RenderText {#text} at (0,60) size 24x20
+          text run at (0,60) width 24: "xxx"
+        RenderBR {BR} at (24,75) size 0x0
+caret: position 3 of child 6 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5007143-expected.txt b/LayoutTests/platform/gtk/editing/selection/5007143-expected.txt
new file mode 100644
index 0000000..5cf2996
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5007143-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 764x60
+          text run at (0,0) width 521: "This tests for a bug when moving the caret forward/backward by a line/paragraph. "
+          text run at (521,0) width 220: "The horizontal position of the caret"
+          text run at (0,20) width 583: "would be lost when moving the caret into an empty paragraph, when it should be preserved. "
+          text run at (583,20) width 181: "The caret should be between"
+          text run at (0,40) width 289: "the first and second 'x's in the third paragraph."
+      RenderBlock {DIV} at (0,76) size 784x80
+        RenderText {#text} at (0,0) size 24x20
+          text run at (0,0) width 24: "xxx"
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 24x20
+          text run at (0,20) width 24: "xxx"
+        RenderBR {BR} at (24,35) size 0x0
+        RenderBR {BR} at (0,40) size 0x20
+        RenderText {#text} at (0,60) size 24x20
+          text run at (0,60) width 24: "xxx"
+        RenderBR {BR} at (24,75) size 0x0
+caret: position 2 of child 6 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5057506-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/5057506-2-expected.txt
new file mode 100644
index 0000000..3d17d1a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5057506-2-expected.txt
@@ -0,0 +1,29 @@
+ALERT: 34
+ALERT: 117
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 779x80
+          text run at (0,0) width 489: "This tests triple clicking after the last character in the last cell of a block table. "
+          text run at (489,0) width 278: "The paragraph break (the space between the"
+          text run at (0,20) width 490: "last character and the first character in the next paragraph) should be selected. "
+          text run at (490,20) width 289: "Selection painting problems might prevent the"
+          text run at (0,40) width 389: "paragraph break from appearing as selected even though it is. "
+          text run at (389,40) width 387: "To test manually, triple click inside the table cell, after the last"
+          text run at (0,60) width 157: "character, and hit delete. "
+          text run at (157,60) width 288: "Afterward, the table should contain only 'bar'."
+      RenderBlock {DIV} at (0,96) size 784x50
+        RenderTable {TABLE} at (0,0) size 110x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 108x28
+            RenderTableRow {TR} at (0,2) size 108x24
+              RenderTableCell {TD} at (2,2) size 104x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 21x20
+                  RenderText {#text} at (2,2) size 21x20
+                    text run at (2,2) width 21: "foo"
+        RenderBlock {DIV} at (0,30) size 784x20
+          RenderText {#text} at (0,0) size 20x20
+            text run at (0,0) width 20: "bar"
+caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5057506-expected.txt b/LayoutTests/platform/gtk/editing/selection/5057506-expected.txt
new file mode 100644
index 0000000..a616df6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5057506-expected.txt
@@ -0,0 +1,30 @@
+ALERT: 34
+ALERT: 117
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 779x80
+          text run at (0,0) width 500: "This tests double clicking after the last character in the last cell of a block table. "
+          text run at (500,0) width 278: "The paragraph break (the space between the"
+          text run at (0,20) width 490: "last character and the first character in the next paragraph) should be selected. "
+          text run at (490,20) width 289: "Selection painting problems might prevent the"
+          text run at (0,40) width 389: "paragraph break from appearing as selected even though it is. "
+          text run at (389,40) width 373: "To test manually, double click inside the table cell, after the"
+          text run at (0,60) width 182: "last character, and hit delete. "
+          text run at (182,60) width 277: "Afterward, the table should contain 'foobar'."
+      RenderBlock {DIV} at (0,96) size 784x50
+        RenderTable {TABLE} at (0,0) size 110x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 108x28
+            RenderTableRow {TR} at (0,2) size 108x24
+              RenderTableCell {TD} at (2,2) size 104x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 21x20
+                  RenderText {#text} at (2,2) size 21x20
+                    text run at (2,2) width 21: "foo"
+        RenderBlock {DIV} at (0,30) size 784x20
+          RenderText {#text} at (0,0) size 20x20
+            text run at (0,0) width 20: "bar"
+selection start: position 3 of child 0 {#text} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 0 of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5076323-1-expected.txt b/LayoutTests/platform/gtk/editing/selection/5076323-1-expected.txt
new file mode 100644
index 0000000..de9979a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5076323-1-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 782x40
+          text run at (0,0) width 782: "This tests for a bug where moving the selection to the end of the document would move it outside of an editable region if the"
+          text run at (0,20) width 219: "selection started just before a table."
+      RenderBlock {DIV} at (0,56) size 784x48
+        RenderTable {TABLE} at (0,0) size 29x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 27x26
+            RenderTableRow {TR} at (0,2) size 27x22
+              RenderTableCell {TD} at (2,2) size 23x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 21x20
+                  text run at (1,1) width 21: "foo"
+        RenderBlock (anonymous) at (0,28) size 784x20
+          RenderText {#text} at (0,0) size 20x20
+            text run at (0,0) width 20: "bar"
+      RenderBlock {P} at (0,120) size 784x20
+        RenderText {#text} at (0,0) size 563x20
+          text run at (0,0) width 563: "In the above editable region, you should see 'foo' in the bordered table and 'bar' outside it."
+caret: position 3 of child 1 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5076323-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/5076323-2-expected.txt
new file mode 100644
index 0000000..3c83073
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5076323-2-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 632x20
+          text run at (0,0) width 632: "This tests caret painting before a table, you should see a caret before the table containing 'foo' above."
+      RenderBlock {DIV} at (0,36) size 784x28
+        RenderTable {TABLE} at (0,0) size 29x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 27x26
+            RenderTableRow {TR} at (0,2) size 27x22
+              RenderTableCell {TD} at (2,2) size 23x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 21x20
+                  text run at (1,1) width 21: "foo"
+caret: position 0 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5076323-3-expected.txt b/LayoutTests/platform/gtk/editing/selection/5076323-3-expected.txt
new file mode 100644
index 0000000..73dba7a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5076323-3-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 608x20
+          text run at (0,0) width 608: "This tests caret painting after a table, you should see a caret after the table containing 'foo' above."
+      RenderBlock {DIV} at (0,36) size 784x28
+        RenderTable {TABLE} at (0,0) size 29x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 27x26
+            RenderTableRow {TR} at (0,2) size 27x22
+              RenderTableCell {TD} at (2,2) size 23x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 21x20
+                  text run at (1,1) width 21: "foo"
+caret: position 1 of child 0 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5081257-1-expected.txt b/LayoutTests/platform/gtk/editing/selection/5081257-1-expected.txt
new file mode 100644
index 0000000..58fe298
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5081257-1-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 784x60
+          text run at (0,0) width 727: "This tests for setting the selection at a position inside the document when the document node is non-editable and the"
+          text run at (727,0) width 4: " "
+          text run at (0,20) width 251: "document's body element *is* editable. "
+          text run at (251,20) width 532: "The expected behavior is to create a selection at [body, 0]. There should be a caret at"
+          text run at (783,20) width 1: " "
+          text run at (0,40) width 163: "the start of this paragraph."
+caret: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5081257-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/5081257-2-expected.txt
new file mode 100644
index 0000000..e03af53
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5081257-2-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x40
+          text run at (0,0) width 512: "This tests for setting the selection at a position inside a document in designMode. "
+          text run at (512,0) width 251: "You should see a caret at the start of the"
+          text run at (763,0) width 4: " "
+          text run at (0,20) width 36: "body."
+caret: position 0 of child 0 {#text} of child 1 {P} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5099303-expected.txt b/LayoutTests/platform/gtk/editing/selection/5099303-expected.txt
new file mode 100644
index 0000000..4d14408
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5099303-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 758x20
+          text run at (0,0) width 439: "This tests extending an editable selection across non-editable content. "
+          text run at (439,0) width 319: "Everything in the region below should be selected."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 8x20
+          text run at (0,0) width 8: "x"
+        RenderInline {SPAN} at (0,0) size 16x20
+          RenderText {#text} at (8,0) size 16x20
+            text run at (8,0) width 16: "xx"
+        RenderText {#text} at (24,0) size 8x20
+          text run at (24,0) width 8: "x"
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5109817-expected.txt b/LayoutTests/platform/gtk/editing/selection/5109817-expected.txt
new file mode 100644
index 0000000..2af9020
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5109817-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 474x20
+          text run at (0,0) width 474: "This tests to make sure that right clicking selects the word under the mouse."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 29x20
+          text run at (0,0) width 29: "The "
+        RenderInline {SPAN} at (0,0) size 44x20
+          RenderText {#text} at (29,0) size 44x20
+            text run at (29,0) width 44: "second"
+        RenderText {#text} at (73,0) size 260x20
+          text run at (73,0) width 260: " word in this sentence should be selected."
diff --git a/LayoutTests/platform/gtk/editing/selection/5131716-1-expected.txt b/LayoutTests/platform/gtk/editing/selection/5131716-1-expected.txt
new file mode 100644
index 0000000..c16ea48
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5131716-1-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 724x40
+          text run at (0,0) width 446: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (446,0) width 278: "The eventSender clicks to the left of the first"
+          text run at (0,20) width 650: "paragraph in the left padding of the editable region and the caret should be at the start of that paragraph."
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 99x20
+            text run at (0,0) width 99: "Paragraph One."
+        RenderTable {TABLE} at (26,46) size 93x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 91x28
+            RenderTableRow {TR} at (0,2) size 91x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x20
+                  text run at (2,2) width 4: " "
+              RenderTableCell {TD} at (12,2) size 77x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 73x20
+                  text run at (2,2) width 73: "ToDo One."
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x20
+            text run at (0,0) width 102: "Paragraph Two."
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5131716-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/5131716-2-expected.txt
new file mode 100644
index 0000000..514c206
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5131716-2-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 777x40
+          text run at (0,0) width 446: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (446,0) width 331: "The eventSender clicks to the left of the ToDo in the"
+          text run at (0,20) width 504: "left padding of the editable region and the caret should be just before that ToDo."
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 99x20
+            text run at (0,0) width 99: "Paragraph One."
+        RenderTable {TABLE} at (26,46) size 93x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 91x28
+            RenderTableRow {TR} at (0,2) size 91x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x20
+                  text run at (2,2) width 4: " "
+              RenderTableCell {TD} at (12,2) size 77x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 73x20
+                  text run at (2,2) width 73: "ToDo One."
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x20
+            text run at (0,0) width 102: "Paragraph Two."
+caret: position 0 of child 3 {TABLE} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5131716-3-expected.txt b/LayoutTests/platform/gtk/editing/selection/5131716-3-expected.txt
new file mode 100644
index 0000000..fa1adb5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5131716-3-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 774x40
+          text run at (0,0) width 446: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (446,0) width 328: "The eventSender clicks in the left padding to the left"
+          text run at (0,20) width 468: "of the third paragraph and the caret should be at the start of that paragraph."
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 99x20
+            text run at (0,0) width 99: "Paragraph One."
+        RenderTable {TABLE} at (26,46) size 93x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 91x28
+            RenderTableRow {TR} at (0,2) size 91x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x20
+                  text run at (2,2) width 4: " "
+              RenderTableCell {TD} at (12,2) size 77x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 73x20
+                  text run at (2,2) width 73: "ToDo One."
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x20
+            text run at (0,0) width 102: "Paragraph Two."
+caret: position 0 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5131716-4-expected.txt b/LayoutTests/platform/gtk/editing/selection/5131716-4-expected.txt
new file mode 100644
index 0000000..1a5d887
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5131716-4-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x40
+          text run at (0,0) width 446: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (446,0) width 329: "The eventSender clicks in the bottom padding of the"
+          text run at (0,20) width 444: "editable region and the caret should be placed at the end of that region."
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 99x20
+            text run at (0,0) width 99: "Paragraph One."
+        RenderTable {TABLE} at (26,46) size 93x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 91x28
+            RenderTableRow {TR} at (0,2) size 91x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x20
+                  text run at (2,2) width 4: " "
+              RenderTableCell {TD} at (12,2) size 77x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 73x20
+                  text run at (2,2) width 73: "ToDo One."
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x20
+            text run at (0,0) width 102: "Paragraph Two."
+caret: position 14 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5232159-expected.txt b/LayoutTests/platform/gtk/editing/selection/5232159-expected.txt
new file mode 100644
index 0000000..4b99211
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5232159-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 755x40
+          text run at (0,0) width 755: "This tests for a bug where autoscroll code would prevent text from being selected. To run manually create a selection by"
+          text run at (0,20) width 564: "clicking somewhere in the first sentence of the paragraph below and dragging downward."
+layer at (0,60) size 800x540
+  RenderBlock (positioned) {DIV} at (0,60) size 800x540
+layer at (0,60) size 800x100
+  RenderBlock (positioned) {DIV} at (0,0) size 800x100
+    RenderBlock {DIV} at (11,0) size 778x100
+      RenderText {#text} at (0,0) size 46x20
+        text run at (0,0) width 46: "Lorem "
+      RenderInline {SPAN} at (0,0) size 38x20
+        RenderText {#text} at (46,0) size 38x20
+          text run at (46,0) width 38: "ipsum"
+      RenderText {#text} at (84,0) size 754x100
+        text run at (84,0) width 670: " dolor sit amet, consectetuer adipiscing elit. Integer vehicula accumsan massa. Quisque elementum. Cras id"
+        text run at (0,20) width 724: "neque a mi rutrum scelerisque. Nulla sed dui a massa sodales posuere. Nulla libero. Nulla posuere, felis id tincidunt"
+        text run at (0,40) width 740: "tincidunt, ipsum metus tristique risus, et convallis turpis elit eget massa. Nunc consectetuer dolor vel nunc. Cum sociis"
+        text run at (0,60) width 753: "natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque dapibus ante et nulla. Cras nec velit."
+        text run at (0,80) width 645: "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer ut tortor."
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5234383-1-expected.txt b/LayoutTests/platform/gtk/editing/selection/5234383-1-expected.txt
new file mode 100644
index 0000000..a282496
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5234383-1-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 651x20
+          text run at (0,0) width 324: "This tests moving forward by sentence boundaries. "
+          text run at (324,0) width 327: "The caret should be at the start of the third sentence."
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderText {#text} at (0,0) size 758x60
+          text run at (0,0) width 754: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc a augue. Pellentesque habitant morbi tristique senectus et"
+          text run at (754,0) width 4: " "
+          text run at (0,20) width 719: "netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit."
+          text run at (719,20) width 4: " "
+          text run at (0,40) width 655: "Vestibulum arcu lacus, blandit ac, condimentum sed, commodo in, arcu. Curabitur suscipit pede eu sem."
+caret: position 72 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5234383-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/5234383-2-expected.txt
new file mode 100644
index 0000000..5ec24aa
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5234383-2-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 719x20
+          text run at (0,0) width 336: "This tests moving backward by sentence boundaries. "
+          text run at (336,0) width 383: "The caret should be at the start of the second to last sentence."
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderText {#text} at (0,0) size 758x60
+          text run at (0,0) width 754: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc a augue. Pellentesque habitant morbi tristique senectus et"
+          text run at (754,0) width 4: " "
+          text run at (0,20) width 719: "netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit."
+          text run at (719,20) width 4: " "
+          text run at (0,40) width 655: "Vestibulum arcu lacus, blandit ac, condimentum sed, commodo in, arcu. Curabitur suscipit pede eu sem."
+caret: position 241 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5333725-expected.txt b/LayoutTests/platform/gtk/editing/selection/5333725-expected.txt
new file mode 100644
index 0000000..79e7275
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5333725-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderInline {SPAN} at (0,0) size 32x20
+          RenderText {#text} at (0,0) size 32x20
+            text run at (0,0) width 32: "0123"
+        RenderText {#text} at (32,0) size 16x20
+          text run at (32,0) width 16: "45"
+        RenderInline {SPAN} at (0,0) size 32x20
+          RenderText {#text} at (48,0) size 32x20
+            text run at (48,0) width 32: "6789"
+selection start: position 0 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 2 of child 1 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5354455-1-expected.txt b/LayoutTests/platform/gtk/editing/selection/5354455-1-expected.txt
new file mode 100644
index 0000000..ce644a5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5354455-1-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 766x40
+          text run at (0,0) width 578: "This tests to make sure that right clicking on a paragraph break in editable content selects it. "
+          text run at (578,0) width 188: "To run it manually, right click"
+          text run at (0,20) width 342: "on the paragraph break after the first paragraph below."
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderInline {SPAN} at (0,0) size 254x20
+            RenderText {#text} at (0,0) size 254x20
+              text run at (0,0) width 254: "The paragraph break should be selected."
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+caret: position 39 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/5354455-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/5354455-2-expected.txt
new file mode 100644
index 0000000..38ae71f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/5354455-2-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+layer at (8,8) size 612x155
+  RenderBody {BODY} at (8,8) size 612x155 [border: (1px solid #000000)]
+    RenderBlock {H1} at (6,6) size 600x42
+      RenderText {#text} at (0,0) size 451x42
+        text run at (0,0) width 451: "Word selection on right click test"
+    RenderBlock (anonymous) at (6,69) size 600x80
+      RenderText {#text} at (0,0) size 597x40
+        text run at (0,0) width 597: "This tests to make sure that right clicking non-editable content only creates a word selection for"
+        text run at (0,20) width 103: "clicks over text. "
+      RenderInline {SPAN} at (0,0) size 18x20
+        RenderText {#text} at (103,20) size 18x20
+          text run at (103,20) width 18: "To"
+      RenderText {#text} at (121,20) size 577x60
+        text run at (121,20) width 411: " run manually, right click on text, and a word should be selected. "
+        text run at (532,20) width 35: "Right"
+        text run at (0,40) width 577: "click on the empty space outside and to the right of the black border, the selection should be"
+        text run at (0,60) width 59: "removed."
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/gtk/editing/selection/addRange-expected.txt b/LayoutTests/platform/gtk/editing/selection/addRange-expected.txt
new file mode 100644
index 0000000..051cd84
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/addRange-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 758x40
+          text run at (0,0) width 211: "This tests Selection::addRange(). "
+          text run at (211,0) width 547: "It should have no effect if the range passed to it does not intersect the currently selected"
+          text run at (0,20) width 43: "range. "
+          text run at (43,20) width 161: "'3456' should be selected."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 72x20
+          text run at (0,0) width 72: "123456789"
+selection start: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 6 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/drag-in-iframe-expected.txt b/LayoutTests/platform/gtk/editing/selection/drag-in-iframe-expected.txt
new file mode 100644
index 0000000..f9eb969
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/drag-in-iframe-expected.txt
@@ -0,0 +1,30 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 753x40
+          text run at (0,0) width 538: "This is an automatic pixel test. To test interactively, drag selected text onto the iframe "
+          text run at (538,0) width 211: "below and verify that a drag caret"
+          text run at (749,0) width 4: " "
+          text run at (0,20) width 156: "appears inside the frame."
+      RenderBlock (anonymous) at (0,56) size 784x152
+        RenderPartObject {IFRAME} at (0,0) size 302x152 [border: (1px solid #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134
+                RenderInline {SPAN} at (0,0) size 37x20
+                  RenderText {#text} at (0,0) size 37x20
+                    text run at (0,0) width 37: "There"
+                RenderText {#text} at (37,0) size 168x20
+                  text run at (37,0) width 168: " should be a caret here --> "
+                RenderBR {BR} at (205,15) size 0x0
+                RenderText {#text} at (0,20) size 42x20
+                  text run at (0,20) width 42: "See it?"
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/gtk/editing/selection/extend-by-character-002-expected.txt b/LayoutTests/platform/gtk/editing/selection/extend-by-character-002-expected.txt
new file mode 100644
index 0000000..f0d2636
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/extend-by-character-002-expected.txt
@@ -0,0 +1,29 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 254x250
+          RenderText {#text} at (14,94) size 11x30
+            text run at (14,94) width 11: "a"
+          RenderImage {IMG} at (25,14) size 76x103
+          RenderText {#text} at (101,94) size 46x30
+            text run at (101,94) width 46: "new "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,204) size 67x30
+            text run at (14,204) width 67: "nation "
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (81,124) size 76x103
+          RenderText {#text} at (157,204) size 111x30
+            text run at (157,204) width 6: " "
+            text run at (163,204) width 105: "conceived "
+          RenderBR {BR} at (268,227) size 0x0
+          RenderText {#text} at (14,314) size 61x30
+            text run at (14,314) width 61: "nation"
+          RenderImage {IMG} at (75,234) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/extend-by-character-003-expected.txt b/LayoutTests/platform/gtk/editing/selection/extend-by-character-003-expected.txt
new file mode 100644
index 0000000..4e53a84
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/extend-by-character-003-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x121 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 665x92
+          RenderInline {I} at (0,0) size 117x30
+            RenderText {#text} at (14,15) size 117x30
+              text run at (14,15) width 21: "F "
+              text run at (35,15) width 96: "and seven"
+          RenderText {#text} at (131,15) size 63x30
+            text run at (131,15) width 63: " years "
+          RenderInline {B} at (0,0) size 27x33
+            RenderText {#text} at (194,14) size 27x33
+              text run at (194,14) width 27: "as "
+          RenderText {#text} at (221,15) size 665x62
+            text run at (221,15) width 110: "our fathers "
+            text run at (331,15) width 342: "f upon this continent, a new nation,"
+            text run at (673,15) width 6: " "
+            text run at (14,47) width 232: "conceived    in Liberty, "
+            text run at (246,47) width 392: "and dedicated to the proposition that all "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,77) size 220x30
+            text run at (14,77) width 220: "men are created equal."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/extend-by-character-004-expected.txt b/LayoutTests/platform/gtk/editing/selection/extend-by-character-004-expected.txt
new file mode 100644
index 0000000..6c9a040
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/extend-by-character-004-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 254x250
+          RenderText {#text} at (14,94) size 11x30
+            text run at (14,94) width 11: "a"
+          RenderImage {IMG} at (25,14) size 76x103
+          RenderText {#text} at (101,94) size 46x30
+            text run at (101,94) width 46: "new "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,204) size 67x30
+            text run at (14,204) width 67: "nation "
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (81,124) size 76x103
+          RenderText {#text} at (157,204) size 111x30
+            text run at (157,204) width 111: " conceived "
+          RenderBR {BR} at (268,227) size 0x0
+          RenderText {#text} at (14,314) size 61x30
+            text run at (14,314) width 61: "nation"
+          RenderImage {IMG} at (75,234) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/extend-by-character-005-expected.txt b/LayoutTests/platform/gtk/editing/selection/extend-by-character-005-expected.txt
new file mode 100644
index 0000000..9157aef
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/extend-by-character-005-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x121 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 665x92
+          RenderInline {I} at (0,0) size 117x30
+            RenderText {#text} at (14,15) size 117x30
+              text run at (14,15) width 21: "F "
+              text run at (35,15) width 96: "and seven"
+          RenderText {#text} at (131,15) size 63x30
+            text run at (131,15) width 63: " years "
+          RenderInline {B} at (0,0) size 27x33
+            RenderText {#text} at (194,14) size 27x33
+              text run at (194,14) width 27: "as "
+          RenderText {#text} at (221,15) size 665x62
+            text run at (221,15) width 110: "our fathers "
+            text run at (331,15) width 342: "f upon this continent, a new nation,"
+            text run at (673,15) width 6: " "
+            text run at (14,47) width 232: "conceived    in Liberty, "
+            text run at (246,47) width 392: "and dedicated to the proposition that all "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,77) size 220x30
+            text run at (14,77) width 220: "men are created equal."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/fake-drag-expected.txt b/LayoutTests/platform/gtk/editing/selection/fake-drag-expected.txt
new file mode 100644
index 0000000..b2ebfd8
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/fake-drag-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (0,0) size 800x600
+      RenderBlock {DIV} at (0,0) size 800x20
+        RenderText {#text} at (0,0) size 193x20
+          text run at (0,0) width 193: "Select me, select me, select me"
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 6 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/iframe-expected.txt b/LayoutTests/platform/gtk/editing/selection/iframe-expected.txt
new file mode 100644
index 0000000..0f467b3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/iframe-expected.txt
@@ -0,0 +1,70 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 742x40
+          text run at (0,0) width 277: "This tests caret movement across an iframe. "
+          text run at (277,0) width 465: "The caret shouldn't enter the iframe as the user arrows across it (unless we"
+          text run at (0,20) width 194: "decide later that we want it to)."
+      RenderBlock {DIV} at (0,56) size 784x207
+        RenderBlock {DIV} at (0,0) size 784x207
+          RenderText {#text} at (0,187) size 48x20
+            text run at (0,187) width 48: "iframe: "
+          RenderPartObject {IFRAME} at (48,0) size 402x202 [border: (1px solid #000000)]
+            layer at (0,0) size 383x219
+              RenderView at (0,0) size 383x200
+            layer at (0,0) size 383x219
+              RenderBlock {HTML} at (0,0) size 383x219
+                RenderBody {BODY} at (8,8) size 367x203
+                  RenderBlock {P} at (0,0) size 367x100
+                    RenderText {#text} at (0,0) size 365x100
+                      text run at (0,0) width 316: "This tests caret movement through an inline table. "
+                      text run at (316,0) width 37: "There"
+                      text run at (0,20) width 365: "should be visual positions before and after the inline table,"
+                      text run at (0,40) width 142: "as if it were an image. "
+                      text run at (142,40) width 216: "The caret shouldn't skip across the"
+                      text run at (0,60) width 348: "table, but should enter it (unless we later decide that we"
+                      text run at (0,80) width 160: "don't want this behavior)."
+                  RenderBlock {DIV} at (0,116) size 367x87
+                    RenderBlock {DIV} at (0,0) size 367x87
+                      RenderText {#text} at (0,67) size 80x20
+                        text run at (0,67) width 80: "Inline Table:"
+                      RenderTable {TABLE} at (80,0) size 132x82 [border: (1px outset #808080)]
+                        RenderTableSection {TBODY} at (1,1) size 130x80
+                          RenderTableRow {TR} at (0,2) size 130x24
+                            RenderTableCell {TD} at (2,2) size 43x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 27x20
+                                text run at (2,2) width 27: "One"
+                            RenderTableCell {TD} at (47,2) size 38x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 30x20
+                                text run at (2,2) width 30: "Two"
+                            RenderTableCell {TD} at (87,2) size 41x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 37x20
+                                text run at (2,2) width 37: "Three"
+                          RenderTableRow {TR} at (0,28) size 130x24
+                            RenderTableCell {TD} at (2,28) size 43x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 30x20
+                                text run at (2,2) width 30: "Four"
+                            RenderTableCell {TD} at (47,28) size 38x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 28x20
+                                text run at (2,2) width 28: "Five"
+                            RenderTableCell {TD} at (87,28) size 41x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 21x20
+                                text run at (2,2) width 21: "Six"
+                          RenderTableRow {TR} at (0,54) size 130x24
+                            RenderTableCell {TD} at (2,54) size 43x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 39x20
+                                text run at (2,2) width 39: "Seven"
+                            RenderTableCell {TD} at (47,54) size 38x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 34x20
+                                text run at (2,2) width 34: "Eight"
+                            RenderTableCell {TD} at (87,54) size 41x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 31x20
+                                text run at (2,2) width 31: "Nine"
+                      RenderText {#text} at (212,67) size 67x20
+                        text run at (212,67) width 67: "The End..."
+          RenderText {#text} at (450,187) size 66x20
+            text run at (450,187) width 66: " the end ..."
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/inline-closest-leaf-child-expected.txt b/LayoutTests/platform/gtk/editing/selection/inline-closest-leaf-child-expected.txt
new file mode 100644
index 0000000..b314791
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/inline-closest-leaf-child-expected.txt
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 53x20
+          text run at (0,0) width 53: "Test for "
+        RenderInline {I} at (0,0) size 728x40
+          RenderInline {A} at (0,0) size 301x20 [color=#0000EE]
+            RenderText {#text} at (53,0) size 301x20
+              text run at (53,0) width 301: "http://bugs.webkit.org/show_bug.cgi?id=14911"
+          RenderText {#text} at (354,0) size 728x40
+            text run at (354,0) width 4: " "
+            text run at (358,0) width 370: "REGRESSION: Clicking in pasted text doesn't position the"
+            text run at (0,20) width 151: "insertion point correctly"
+        RenderText {#text} at (151,20) size 4x20
+          text run at (151,20) width 4: "."
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 558x20
+          text run at (0,0) width 528: "You should be able to select individual letters in \x{201C}ipsum\x{201D} by dragging in the yellow "
+          text run at (528,0) width 30: "area "
+        RenderInline {EM} at (0,0) size 38x20
+          RenderText {#text} at (558,0) size 38x20
+            text run at (558,0) width 38: "above"
+        RenderText {#text} at (596,0) size 39x20
+          text run at (596,0) width 39: " them."
+      RenderBlock (floating) {DIV} at (0,92) size 84x80 [bgcolor=#FFFFAA]
+        RenderInline {SPAN} at (0,0) size 84x20 [bgcolor=#FFFFFF]
+          RenderText {#text} at (0,30) size 46x20
+            text run at (0,30) width 46: "Lorem "
+          RenderText {#text} at (46,30) size 38x20
+            text run at (46,30) width 38: "ipsum"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 5 of child 2 {#text} of child 1 {SPAN} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/inline-table-expected.txt b/LayoutTests/platform/gtk/editing/selection/inline-table-expected.txt
new file mode 100644
index 0000000..0e07e0e
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/inline-table-expected.txt
@@ -0,0 +1,51 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 764x60
+          text run at (0,0) width 316: "This tests caret movement through an inline table. "
+          text run at (316,0) width 448: "There should be visual positions before and after the inline table, as if it"
+          text run at (0,20) width 100: "were an image. "
+          text run at (100,20) width 664: "The caret shouldn't skip across the table, but should enter it (unless we later decide that we don't want this"
+          text run at (0,40) width 64: "behavior)."
+      RenderBlock {DIV} at (0,76) size 784x87
+        RenderBlock {DIV} at (0,0) size 784x87
+          RenderText {#text} at (0,67) size 80x20
+            text run at (0,67) width 80: "Inline Table:"
+          RenderTable {TABLE} at (80,0) size 132x82 [border: (1px outset #808080)]
+            RenderTableSection {TBODY} at (1,1) size 130x80
+              RenderTableRow {TR} at (0,2) size 130x24
+                RenderTableCell {TD} at (2,2) size 43x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 27x20
+                    text run at (2,2) width 27: "One"
+                RenderTableCell {TD} at (47,2) size 38x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 30x20
+                    text run at (2,2) width 30: "Two"
+                RenderTableCell {TD} at (87,2) size 41x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 37x20
+                    text run at (2,2) width 37: "Three"
+              RenderTableRow {TR} at (0,28) size 130x24
+                RenderTableCell {TD} at (2,28) size 43x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 30x20
+                    text run at (2,2) width 30: "Four"
+                RenderTableCell {TD} at (47,28) size 38x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 28x20
+                    text run at (2,2) width 28: "Five"
+                RenderTableCell {TD} at (87,28) size 41x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 21x20
+                    text run at (2,2) width 21: "Six"
+              RenderTableRow {TR} at (0,54) size 130x24
+                RenderTableCell {TD} at (2,54) size 43x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 39x20
+                    text run at (2,2) width 39: "Seven"
+                RenderTableCell {TD} at (47,54) size 38x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 34x20
+                    text run at (2,2) width 34: "Eight"
+                RenderTableCell {TD} at (87,54) size 41x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 31x20
+                    text run at (2,2) width 31: "Nine"
+          RenderText {#text} at (212,67) size 67x20
+            text run at (212,67) width 67: "The End..."
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/mixed-editability-6-expected.txt b/LayoutTests/platform/gtk/editing/selection/mixed-editability-6-expected.txt
new file mode 100644
index 0000000..e34e7be
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/mixed-editability-6-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 779x40
+          text run at (0,0) width 618: "This tests Select All when the caret is inside an editable region that is inside a non editable region. "
+          text run at (618,0) width 161: "Whenever the selection is"
+          text run at (0,20) width 537: "in an editable region, Select All should select the contents of the highest editable root."
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 27x20
+            text run at (0,0) width 27: "One"
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderInline {SPAN} at (0,0) size 30x20
+            RenderText {#text} at (0,0) size 30x20
+              text run at (0,0) width 30: "Two"
+          RenderText {#text} at (30,0) size 4x20
+            text run at (30,0) width 4: " "
+          RenderInline {SPAN} at (0,0) size 37x20
+            RenderText {#text} at (34,0) size 37x20
+              text run at (34,0) width 37: "Three"
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 30x20
+            text run at (0,0) width 30: "Four"
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 4 of child 0 {#text} of child 5 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/mixed-editability-7-expected.txt b/LayoutTests/platform/gtk/editing/selection/mixed-editability-7-expected.txt
new file mode 100644
index 0000000..d98884c
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/mixed-editability-7-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 779x40
+          text run at (0,0) width 779: "This tests creating a selection based inside a nested editable region that extends out to editable content that is inside the same"
+          text run at (0,20) width 135: "highest editable root. "
+          text run at (135,20) width 256: "'One' through 'Three' should be selected."
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 27x20
+            text run at (0,0) width 27: "One"
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderInline {SPAN} at (0,0) size 30x20
+            RenderText {#text} at (0,0) size 30x20
+              text run at (0,0) width 30: "Two"
+          RenderText {#text} at (30,0) size 4x20
+            text run at (30,0) width 4: " "
+          RenderInline {SPAN} at (0,0) size 37x20
+            RenderText {#text} at (34,0) size 37x20
+              text run at (34,0) width 37: "Three"
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 30x20
+            text run at (0,0) width 30: "Four"
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 5 of child 0 {#text} of child 2 {SPAN} of child 3 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-backwords-by-word-001-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-backwords-by-word-001-expected.txt
new file mode 100644
index 0000000..41e281f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-backwords-by-word-001-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 71x60
+          RenderText {#text} at (14,14) size 32x30
+            text run at (14,14) width 32: "foo"
+          RenderBR {BR} at (46,37) size 0x0
+          RenderText {#text} at (14,44) size 71x30
+            text run at (14,44) width 71: "bar baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-between-blocks-no-001-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-between-blocks-no-001-expected.txt
new file mode 100644
index 0000000..2a42b8f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-between-blocks-no-001-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 243x30
+          RenderText {#text} at (14,14) size 243x30
+            text run at (14,14) width 243: "We hold these truths to b"
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 318x30
+          text run at (14,14) width 318: "that all men are created equal, ..."
+caret: position 25 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-between-blocks-yes-001-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-between-blocks-yes-001-expected.txt
new file mode 100644
index 0000000..a639c6e
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-between-blocks-yes-001-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 381x30
+          RenderText {#text} at (14,14) size 381x30
+            text run at (14,14) width 381: "We hold these truths to be self-evident,"
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 318x30
+          text run at (14,14) width 318: "that all men are created equal, ..."
+caret: position 10 of child 0 {#text} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-by-character-001-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-by-character-001-expected.txt
new file mode 100644
index 0000000..83dc85d
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-by-character-001-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 109x30
+          RenderText {#text} at (14,14) size 109x30
+            text run at (14,14) width 38: "foo "
+            text run at (52,14) width 37: "bar "
+            text run at (89,14) width 34: "baz"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 16 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-by-character-002-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-by-character-002-expected.txt
new file mode 100644
index 0000000..4532420
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-by-character-002-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 254x250
+          RenderText {#text} at (14,94) size 11x30
+            text run at (14,94) width 11: "a"
+          RenderImage {IMG} at (25,14) size 76x103
+          RenderText {#text} at (101,94) size 46x30
+            text run at (101,94) width 46: "new "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,204) size 67x30
+            text run at (14,204) width 67: "nation "
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (81,124) size 76x103
+          RenderText {#text} at (157,204) size 111x30
+            text run at (157,204) width 111: " conceived "
+          RenderBR {BR} at (268,227) size 0x0
+          RenderText {#text} at (14,314) size 61x30
+            text run at (14,314) width 61: "nation"
+          RenderImage {IMG} at (75,234) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+caret: position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-by-character-003-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-by-character-003-expected.txt
new file mode 100644
index 0000000..038e516
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-by-character-003-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x121 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 665x92
+          RenderInline {I} at (0,0) size 117x30
+            RenderText {#text} at (14,15) size 117x30
+              text run at (14,15) width 21: "F "
+              text run at (35,15) width 96: "and seven"
+          RenderText {#text} at (131,15) size 63x30
+            text run at (131,15) width 63: " years "
+          RenderInline {B} at (0,0) size 27x33
+            RenderText {#text} at (194,14) size 27x33
+              text run at (194,14) width 27: "as "
+          RenderText {#text} at (221,15) size 665x62
+            text run at (221,15) width 110: "our fathers "
+            text run at (331,15) width 342: "f upon this continent, a new nation,"
+            text run at (673,15) width 6: " "
+            text run at (14,47) width 232: "conceived    in Liberty, "
+            text run at (246,47) width 392: "and dedicated to the proposition that all "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,77) size 220x30
+            text run at (14,77) width 220: "men are created equal."
+        RenderText {#text} at (0,0) size 0x0
+caret: position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-by-character-004-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-by-character-004-expected.txt
new file mode 100644
index 0000000..e5aae77
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-by-character-004-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 254x250
+          RenderText {#text} at (14,94) size 11x30
+            text run at (14,94) width 11: "a"
+          RenderImage {IMG} at (25,14) size 76x103
+          RenderText {#text} at (101,94) size 46x30
+            text run at (101,94) width 46: "new "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,204) size 67x30
+            text run at (14,204) width 67: "nation "
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (81,124) size 76x103
+          RenderText {#text} at (157,204) size 111x30
+            text run at (157,204) width 111: " conceived "
+          RenderBR {BR} at (268,227) size 0x0
+          RenderText {#text} at (14,314) size 61x30
+            text run at (14,314) width 61: "nation"
+          RenderImage {IMG} at (75,234) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-by-character-005-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-by-character-005-expected.txt
new file mode 100644
index 0000000..735a3f1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-by-character-005-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x121 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 665x92
+          RenderInline {I} at (0,0) size 117x30
+            RenderText {#text} at (14,15) size 117x30
+              text run at (14,15) width 21: "F "
+              text run at (35,15) width 96: "and seven"
+          RenderText {#text} at (131,15) size 63x30
+            text run at (131,15) width 63: " years "
+          RenderInline {B} at (0,0) size 27x33
+            RenderText {#text} at (194,14) size 27x33
+              text run at (194,14) width 27: "as "
+          RenderText {#text} at (221,15) size 665x62
+            text run at (221,15) width 110: "our fathers "
+            text run at (331,15) width 342: "f upon this continent, a new nation,"
+            text run at (673,15) width 6: " "
+            text run at (14,47) width 232: "conceived    in Liberty, "
+            text run at (246,47) width 392: "and dedicated to the proposition that all "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,77) size 220x30
+            text run at (14,77) width 220: "men are created equal."
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-by-sentence-001-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-by-sentence-001-expected.txt
new file mode 100644
index 0000000..5054fb3
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-by-sentence-001-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x61 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 14x30
+          text run at (14,15) width 14: "\x{2022} "
+        RenderInline {B} at (0,0) size 240x33
+          RenderText {#text} at (28,14) size 240x33
+            text run at (28,14) width 240: "This is some linked text"
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-by-sentence-linebreak-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-by-sentence-linebreak-expected.txt
new file mode 100644
index 0000000..91eb077
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-by-sentence-linebreak-expected.txt
@@ -0,0 +1,30 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 553x20
+          text run at (0,0) width 553: "This tests for sentence boundary when there are empty line breaks between lines of text."
+        RenderBR {BR} at (553,15) size 0x0
+        RenderText {#text} at (0,20) size 493x20
+          text run at (0,20) width 493: "The result insertion point should be at the end of the sentence \"How are you?\""
+      RenderBlock {DIV} at (0,56) size 784x120
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 31x20
+            text run at (0,0) width 31: "hello"
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 37x20
+            text run at (0,0) width 37: "world"
+        RenderBlock {DIV} at (0,60) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,80) size 784x20
+          RenderBR {BR} at (0,0) size 0x20
+        RenderBlock {DIV} at (0,100) size 784x20
+          RenderText {#text} at (0,0) size 265x20
+            text run at (0,0) width 86: "This is a test. "
+            text run at (86,0) width 94: "How are you? "
+            text run at (180,0) width 85: "Life is sweet!"
+caret: position 30 of child 0 {#text} of child 9 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/move-past-trailing-space-expected.txt b/LayoutTests/platform/gtk/editing/selection/move-past-trailing-space-expected.txt
new file mode 100644
index 0000000..f00e433
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/move-past-trailing-space-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 228x103 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 264x75
+          RenderText {#text} at (70,14) size 264x75
+            text run at (70,14) width 144: "before"
+            text run at (118,39) width 96 RTL: "\x{5D0}\x{5D7}\x{5E8}\x{5D9}"
+            text run at (-50,64) width 264 RTL: "\x{5D0}\x{5E0}\x{5E6}\x{5D9}\x{5E7}\x{5DC}\x{5D5}\x{5E4}\x{5D3}\x{5D9}\x{5D4}"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 12 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/select-box-expected.txt b/LayoutTests/platform/gtk/editing/selection/select-box-expected.txt
new file mode 100644
index 0000000..69158e0
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/select-box-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 691x20
+          text run at (0,0) width 292: "This tests caret movement across a select box. "
+          text run at (292,0) width 399: "The caret should skip over the select box as if it were an image."
+      RenderBlock {DIV} at (0,36) size 784x32
+        RenderBlock {DIV} at (0,0) size 784x32
+          RenderText {#text} at (0,6) size 71x20
+            text run at (0,6) width 71: "select box: "
+          RenderMenuList {SELECT} at (73,2) size 33x28 [bgcolor=#FFFFFF]
+            RenderBlock (anonymous) at (4,4) size 8x20
+              RenderText at (0,0) size 8x20
+                text run at (0,0) width 8: "1"
+          RenderText {#text} at (108,6) size 66x20
+            text run at (108,6) width 66: " the end ..."
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/selectNode-expected.txt b/LayoutTests/platform/gtk/editing/selection/selectNode-expected.txt
new file mode 100644
index 0000000..63061f6
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/selectNode-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 337x20
+          text run at (0,0) width 337: "This tests Range.selectNode() of a text node and a br."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 23x20
+          text run at (0,0) width 23: "one"
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 24x20
+          text run at (0,0) width 24: "two"
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 31x20
+          text run at (0,20) width 31: "three"
+      RenderBlock {DIV} at (0,96) size 784x20
+        RenderText {#text} at (0,0) size 26x20
+          text run at (0,0) width 26: "four"
+      RenderBlock {UL} at (0,132) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x20: bullet
+          RenderText {#text} at (0,0) size 54x20
+            text run at (0,0) width 54: "Success."
diff --git a/LayoutTests/platform/gtk/editing/selection/selectNodeContents-expected.txt b/LayoutTests/platform/gtk/editing/selection/selectNodeContents-expected.txt
new file mode 100644
index 0000000..ef5c12a
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/selectNodeContents-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 393x20
+          text run at (0,0) width 393: "This tests Range.selectNodeContents() of a text node and a br."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 23x20
+          text run at (0,0) width 23: "one"
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 24x20
+          text run at (0,0) width 24: "two"
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 31x20
+          text run at (0,20) width 31: "three"
+      RenderBlock {DIV} at (0,96) size 784x20
+        RenderText {#text} at (0,0) size 26x20
+          text run at (0,0) width 26: "four"
+      RenderBlock {UL} at (0,132) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x20: bullet
+          RenderText {#text} at (0,0) size 54x20
+            text run at (0,0) width 54: "Success."
diff --git a/LayoutTests/platform/gtk/editing/selection/wrapped-line-caret-1-expected.txt b/LayoutTests/platform/gtk/editing/selection/wrapped-line-caret-1-expected.txt
new file mode 100644
index 0000000..03ce53d
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/wrapped-line-caret-1-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x20
+        RenderInline {SPAN} at (0,0) size 368x20
+          RenderText {#text} at (0,0) size 368x20
+            text run at (0,0) width 368: "This test passes if the caret is at the start of the second line."
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,20) size 352x102 [border: (1px solid #0000FF)]
+        RenderText {#text} at (1,1) size 11x20
+          text run at (1,1) width 7: "a"
+          text run at (8,1) width 4: " "
+        RenderText {#text} at (1,21) size 344x20
+          text run at (1,21) width 344: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+caret: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/selection/wrapped-line-caret-2-expected.txt b/LayoutTests/platform/gtk/editing/selection/wrapped-line-caret-2-expected.txt
new file mode 100644
index 0000000..e4a71f5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/selection/wrapped-line-caret-2-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x20
+        RenderInline {SPAN} at (0,0) size 368x20
+          RenderText {#text} at (0,0) size 368x20
+            text run at (0,0) width 368: "This test passes if the caret is at the start of the second line."
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,20) size 352x102 [border: (1px solid #0000FF)]
+        RenderText {#text} at (1,1) size 11x20
+          text run at (1,1) width 7: "a"
+          text run at (8,1) width 4: " "
+        RenderInline {SPAN} at (0,0) size 344x20 [color=#0000FF]
+          RenderText {#text} at (1,21) size 344x20
+            text run at (1,21) width 344: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+caret: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/spelling/spelling-expected.txt b/LayoutTests/platform/gtk/editing/spelling/spelling-expected.txt
new file mode 100644
index 0000000..8a424ed
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/spelling/spelling-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 768x20
+          text run at (0,0) width 768: "You should see 'a' on the first line below, and 'zz a' on the second line. 'zz' (and only 'zz') should be marked as misspelled."
+      RenderBlock {DIV} at (0,20) size 784x88 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderInline {SPAN} at (0,0) size 11x30
+            RenderText {#text} at (0,0) size 11x30
+              text run at (0,0) width 11: "a"
+        RenderBlock {DIV} at (14,44) size 756x30
+          RenderInline {SPAN} at (0,0) size 39x30
+            RenderText {#text} at (0,0) size 39x30
+              text run at (0,0) width 39: "zz a"
+          RenderText {#text} at (0,0) size 0x0
+caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/spelling/spelling-linebreak-expected.txt b/LayoutTests/platform/gtk/editing/spelling/spelling-linebreak-expected.txt
new file mode 100644
index 0000000..9d46567
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/spelling/spelling-linebreak-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 768x20
+          text run at (0,0) width 768: "You should see 'zz a' on the first line below, and 'a' on the second line. 'zz' (and only 'zz') should be marked as misspelled."
+      RenderBlock {DIV} at (0,20) size 784x88 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,14) size 45x30
+          text run at (14,14) width 45: "zz a "
+        RenderBR {BR} at (59,37) size 0x0
+        RenderText {#text} at (14,44) size 11x30
+          text run at (14,44) width 11: "a"
+        RenderInline {SPAN} at (0,0) size 0x30
+caret: position 0 of child 2 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/4916887-expected.txt b/LayoutTests/platform/gtk/editing/style/4916887-expected.txt
new file mode 100644
index 0000000..c573f7f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/4916887-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 458x20
+          text run at (0,0) width 458: "This tests for a bug where the color of indented text couldn't be changed."
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {BLOCKQUOTE} at (40,0) size 744x20
+          RenderInline {FONT} at (0,0) size 155x20 [color=#0000FF]
+            RenderText {#text} at (0,0) size 155x20
+              text run at (0,0) width 155: "This text should be blue."
+        RenderBlock (anonymous) at (0,20) size 784x0
+selection start: position 0 of child 0 {#text} of child 0 {FONT} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 25 of child 0 {#text} of child 0 {FONT} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/5017613-1-expected.txt b/LayoutTests/platform/gtk/editing/style/5017613-1-expected.txt
new file mode 100644
index 0000000..ef77f94
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/5017613-1-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 772x60
+          text run at (0,0) width 767: "This tests to see that plaintext-only regions can be styled as long as they are fully selected. The editable, plaintext-only cell"
+          text run at (0,20) width 772: "should contain bold text, which should be implemented with the bold CSS property in the cell's inline style declaration, not"
+          text run at (0,40) width 217: "with wrapper spans inside the cell."
+      RenderBlock {DIV} at (0,76) size 784x54
+        RenderBlock {DIV} at (0,0) size 784x22
+          RenderInline {B} at (0,0) size 21x22
+            RenderText {#text} at (0,0) size 21x22
+              text run at (0,0) width 21: "foo"
+        RenderTable {TABLE} at (0,22) size 187x32 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 185x30
+            RenderTableRow {TR} at (0,2) size 185x26
+              RenderTableCell {TD} at (2,3) size 82x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 78x20
+                  text run at (2,2) width 78: "non-editable"
+              RenderTableCell {TD} at (86,2) size 97x26 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 93x22
+                  text run at (2,2) width 93: "plaintext-only"
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/5017613-2-expected.txt b/LayoutTests/platform/gtk/editing/style/5017613-2-expected.txt
new file mode 100644
index 0000000..0768445
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/5017613-2-expected.txt
@@ -0,0 +1,33 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x22
+        RenderText {#text} at (0,1) size 603x20
+          text run at (0,1) width 567: "This tests to make sure that plaintext-only regions aren't styled if they aren't fully selected. "
+          text run at (567,1) width 36: "Only "
+        RenderInline {B} at (0,0) size 21x22
+          RenderText {#text} at (603,0) size 21x22
+            text run at (603,0) width 21: "foo"
+        RenderText {#text} at (624,1) size 144x20
+          text run at (624,1) width 144: " should be bold below."
+      RenderBlock {DIV} at (0,38) size 784x52
+        RenderBlock {DIV} at (0,0) size 784x22
+          RenderInline {B} at (0,0) size 21x22
+            RenderText {#text} at (0,0) size 21x22
+              text run at (0,0) width 21: "foo"
+        RenderTable {TABLE} at (0,22) size 181x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 179x28
+            RenderTableRow {TR} at (0,2) size 179x24
+              RenderTableCell {TD} at (2,2) size 82x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 78x20
+                  text run at (2,2) width 78: "non-editable"
+              RenderTableCell {TD} at (86,2) size 91x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 54x20
+                  RenderText {#text} at (2,2) size 54x20
+                    text run at (2,2) width 54: "plaintext"
+                RenderText {#text} at (56,2) size 33x20
+                  text run at (56,2) width 33: "-only"
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 9 of child 0 {#text} of child 0 {SPAN} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/5046875-1-expected.txt b/LayoutTests/platform/gtk/editing/style/5046875-1-expected.txt
new file mode 100644
index 0000000..a1ea444
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/5046875-1-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 781x20
+          text run at (0,0) width 476: "This tests for a bug where centering two paragraphs would center the third. "
+          text run at (476,0) width 305: "Only the selected paragraphs should be selected."
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (381,0) size 21x20
+            text run at (381,0) width 21: "foo"
+        RenderBlock (anonymous) at (0,20) size 784x0
+        RenderBlock {DIV} at (0,20) size 784x40
+          RenderBlock {DIV} at (0,0) size 784x20
+            RenderText {#text} at (382,0) size 20x20
+              text run at (382,0) width 20: "bar"
+          RenderBlock (anonymous) at (0,20) size 784x20
+            RenderText {#text} at (0,0) size 22x20
+              text run at (0,0) width 22: "baz"
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/5046875-2-expected.txt b/LayoutTests/platform/gtk/editing/style/5046875-2-expected.txt
new file mode 100644
index 0000000..adde5c2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/5046875-2-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 762x40
+          text run at (0,0) width 730: "This tests for a bug where left justifying a paragraph amongst several that are centered would left justify all of them. "
+          text run at (730,0) width 32: "Only"
+          text run at (0,20) width 281: "the second paragraph should be left justified."
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (381,0) size 21x20
+            text run at (381,0) width 21: "foo"
+          RenderBR {BR} at (402,15) size 0x0
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 20x20
+            text run at (0,0) width 20: "bar"
+        RenderBlock (anonymous) at (0,40) size 784x0
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (381,0) size 22x20
+            text run at (381,0) width 22: "baz"
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 3 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/5084241-expected.txt b/LayoutTests/platform/gtk/editing/style/5084241-expected.txt
new file mode 100644
index 0000000..1a1ff2b
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/5084241-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 771x40
+          text run at (0,0) width 771: "This tests for a bug where deleting everything in a paragraph of colored text would prevent the user from changing the text"
+          text run at (0,20) width 36: "color."
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderInline {FONT} at (0,0) size 148x20 [color=#FF0000]
+          RenderText {#text} at (0,0) size 148x20
+            text run at (0,0) width 148: "This text should be red."
+        RenderInline {FONT} at (0,0) size 155x20 [color=#0000FF]
+          RenderText {#text} at (148,0) size 155x20
+            text run at (148,0) width 155: "This text should be blue."
+caret: position 25 of child 0 {#text} of child 1 {FONT} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/5228141-expected.txt b/LayoutTests/platform/gtk/editing/style/5228141-expected.txt
new file mode 100644
index 0000000..c0711e2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/5228141-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 611x20
+          text run at (0,0) width 611: "This tests for a bug where style would not be applied to a selection that ended just after an image."
+      RenderBlock {DIV} at (0,36) size 784x131
+        RenderBlock (anonymous) at (0,0) size 784x22
+          RenderInline {B} at (0,0) size 0x22
+            RenderBR {BR} at (0,0) size 0x22
+        RenderBlock {DIV} at (0,22) size 784x109
+          RenderInline {B} at (0,0) size 166x22
+            RenderText {#text} at (0,87) size 166x22
+              text run at (0,87) width 166: "This text should be bold."
+          RenderInline {B} at (0,0) size 76x22
+            RenderImage {IMG} at (166,0) size 76x103
+selection start: position 0 of child 0 {BR} of child 0 {B} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 0 {IMG} of child 1 {B} of child 1 {DIV} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/5279521-expected.txt b/LayoutTests/platform/gtk/editing/style/5279521-expected.txt
new file mode 100644
index 0000000..6aff9b8
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/5279521-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x123
+        RenderBlock {DIV} at (0,0) size 784x103
+          RenderImage {IMG} at (708,0) size 76x103
+        RenderBlock (anonymous) at (0,103) size 784x0
+        RenderBlock {DIV} at (0,103) size 784x20
+          RenderText {#text} at (22,0) size 762x20
+            text run at (22,0) width 762: "This tests for a crash when changing the alignment of content that starts with an image not inside its own block container."
+selection start: position 0 of child 0 {IMG} of child 0 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 123 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/block-style-003-expected.txt b/LayoutTests/platform/gtk/editing/style/block-style-003-expected.txt
new file mode 100644
index 0000000..cdb8256
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/block-style-003-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x61 [border: (2px solid #FF0000)]
+        RenderText {#text} at (202,15) size 284x30
+          text run at (202,15) width 284: "Here is some text. Should be "
+        RenderInline {B} at (0,0) size 89x33
+          RenderText {#text} at (486,14) size 89x33
+            text run at (486,14) width 89: "centered"
+        RenderText {#text} at (575,15) size 6x30
+          text run at (575,15) width 6: "."
+      RenderBlock {DIV} at (0,61) size 784x61 [border: (2px solid #FF0000)]
+        RenderText {#text} at (202,15) size 284x30
+          text run at (202,15) width 284: "Here is some text. Should be "
+        RenderInline {B} at (0,0) size 89x33
+          RenderText {#text} at (486,14) size 89x33
+            text run at (486,14) width 89: "centered"
+        RenderText {#text} at (575,15) size 6x30
+          text run at (575,15) width 6: "."
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 13 of child 0 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/fontsize-1-expected.txt b/LayoutTests/platform/gtk/editing/style/fontsize-1-expected.txt
new file mode 100644
index 0000000..988d451
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/fontsize-1-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 763x20
+          text run at (0,0) width 260: "This test execCommand(\"FontSize\", ...). "
+          text run at (260,0) width 503: "You should see 'small' 'medium' and 'large' below in every increasing font sizes."
+      RenderBlock {DIV} at (0,36) size 784x39
+        RenderInline {SPAN} at (0,0) size 29x17
+          RenderText {#text} at (0,17) size 29x17
+            text run at (0,17) width 29: "small"
+        RenderInline {SPAN} at (0,0) size 59x23
+          RenderText {#text} at (29,13) size 59x23
+            text run at (29,13) width 59: "medium"
+        RenderInline {SPAN} at (0,0) size 64x39
+          RenderText {#text} at (88,0) size 64x39
+            text run at (88,0) width 64: "large"
+      RenderBlock {UL} at (0,91) size 784x0
+caret: position 5 of child 0 {#text} of child 2 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/highlight-expected.txt b/LayoutTests/platform/gtk/editing/style/highlight-expected.txt
new file mode 100644
index 0000000..58c00b7
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/highlight-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 135x20
+          text run at (0,0) width 135: "some highlighted text"
+caret: position 0 of child 0 {#text} of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/relative-font-size-change-001-expected.txt b/LayoutTests/platform/gtk/editing/style/relative-font-size-change-001-expected.txt
new file mode 100644
index 0000000..4fcafe2
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/relative-font-size-change-001-expected.txt
@@ -0,0 +1,29 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,14) size 721x60
+          text run at (14,14) width 715: "Size check should say: 30px. All text in the red boxes should appear to be"
+          text run at (729,14) width 6: " "
+          text run at (14,44) width 54: "30px."
+      RenderBlock {DIV} at (0,112) size 784x30
+        RenderText {#text} at (0,0) size 118x30
+          text run at (0,0) width 118: "Size check: "
+        RenderInline {SPAN} at (0,0) size 48x30
+          RenderText {#text} at (118,0) size 48x30
+            text run at (118,0) width 48: "30px"
+      RenderBlock {DIV} at (0,158) size 784x167
+        RenderBlock {DIV} at (0,0) size 784x167 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x37
+            RenderText {#text} at (0,0) size 170x37
+              text run at (0,0) width 170: "There is a tide"
+          RenderBlock {DIV} at (14,51) size 756x65 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,14) size 245x37
+              text run at (14,14) width 245: "In the affairs of men"
+          RenderBlock (anonymous) at (14,116) size 756x37
+            RenderText {#text} at (0,0) size 295x37
+              text run at (0,0) width 295: "Which taken at the flood"
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 25 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/style-3681552-fix-001-expected.txt b/LayoutTests/platform/gtk/editing/style/style-3681552-fix-001-expected.txt
new file mode 100644
index 0000000..ae74385
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/style-3681552-fix-001-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 157x30
+          RenderText {#text} at (14,14) size 70x30
+            text run at (14,14) width 70: "here is "
+          RenderInline {I} at (0,0) size 44x30
+            RenderText {#text} at (84,14) size 44x30
+              text run at (84,14) width 44: "xxxx"
+          RenderText {#text} at (128,14) size 43x30
+            text run at (128,14) width 43: " text"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 4 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/style-3681552-fix-002-expected.txt b/LayoutTests/platform/gtk/editing/style/style-3681552-fix-002-expected.txt
new file mode 100644
index 0000000..ae74385
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/style-3681552-fix-002-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 157x30
+          RenderText {#text} at (14,14) size 70x30
+            text run at (14,14) width 70: "here is "
+          RenderInline {I} at (0,0) size 44x30
+            RenderText {#text} at (84,14) size 44x30
+              text run at (84,14) width 44: "xxxx"
+          RenderText {#text} at (128,14) size 43x30
+            text run at (128,14) width 43: " text"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 4 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/style-3690704-fix-expected.txt b/LayoutTests/platform/gtk/editing/style/style-3690704-fix-expected.txt
new file mode 100644
index 0000000..85896f1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/style-3690704-fix-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x94 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 224x63
+          RenderText {#text} at (14,15) size 70x30
+            text run at (14,15) width 70: "here is "
+          RenderInline {I} at (0,0) size 51x30
+            RenderInline {B} at (0,0) size 51x32
+              RenderText {#text} at (84,14) size 51x32
+                text run at (84,14) width 51: "some"
+          RenderInline {B} at (0,0) size 166x66
+            RenderText {#text} at (135,14) size 45x33
+              text run at (135,14) width 45: " text"
+            RenderBR {BR} at (180,38) size 0x0
+            RenderText {#text} at (14,47) size 46x33
+              text run at (14,47) width 46: "here"
+          RenderText {#text} at (60,48) size 178x30
+            text run at (60,48) width 178: " is some more text"
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 0 {B} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 4 of child 2 {#text} of child 2 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/typing-style-001-expected.txt b/LayoutTests/platform/gtk/editing/style/typing-style-001-expected.txt
new file mode 100644
index 0000000..a7c11f5
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/typing-style-001-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 155x30
+          RenderText {#text} at (14,14) size 112x30
+            text run at (14,14) width 112: "here isxxxx"
+          RenderText {#text} at (126,14) size 43x30
+            text run at (126,14) width 43: " text"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 11 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/typing-style-002-expected.txt b/LayoutTests/platform/gtk/editing/style/typing-style-002-expected.txt
new file mode 100644
index 0000000..435bfd1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/typing-style-002-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 166x30
+          RenderText {#text} at (14,14) size 70x30
+            text run at (14,14) width 70: "here is "
+          RenderInline {I} at (0,0) size 53x30
+            RenderText {#text} at (84,14) size 53x30
+              text run at (84,14) width 53: "sxxxx"
+          RenderText {#text} at (137,14) size 43x30
+            text run at (137,14) width 43: " text"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 5 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/typing-style-003-expected.txt b/LayoutTests/platform/gtk/editing/style/typing-style-003-expected.txt
new file mode 100644
index 0000000..7873ee1
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/typing-style-003-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x61 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 36x30
+          text run at (14,15) width 36: "xxx"
+        RenderInline {B} at (0,0) size 141x33
+          RenderText {#text} at (50,14) size 36x33
+            text run at (50,14) width 36: "xxx"
+          RenderInline {I} at (0,0) size 105x32
+            RenderText {#text} at (86,14) size 36x32
+              text run at (86,14) width 36: "xxx"
+            RenderInline {SPAN} at (0,0) size 69x30
+              RenderText {#text} at (122,15) size 33x30
+                text run at (122,15) width 33: "xxx"
+              RenderInline {SPAN} at (0,0) size 36x30
+                RenderText {#text} at (155,15) size 36x30
+                  text run at (155,15) width 36: "xxx"
+        RenderInline {SPAN} at (0,0) size 0x30
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {I} of child 1 {B} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/style/unbold-in-bold-expected.txt b/LayoutTests/platform/gtk/editing/style/unbold-in-bold-expected.txt
new file mode 100644
index 0000000..f2e499f
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/style/unbold-in-bold-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x61 [border: (2px solid #FF0000)]
+        RenderInline {B} at (0,0) size 78x33
+          RenderText {#text} at (14,14) size 78x33
+            text run at (14,14) width 78: "xxxxxx "
+        RenderText {#text} at (92,15) size 72x30
+          text run at (92,15) width 72: "xxxxxx"
+        RenderInline {B} at (0,0) size 78x33
+          RenderText {#text} at (164,14) size 78x33
+            text run at (164,14) width 78: " xxxxxx"
+        RenderInline {SPAN} at (0,0) size 0x30
+selection start: position 0 of child 1 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 6 of child 1 {#text} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/4063751-expected.txt b/LayoutTests/platform/gtk/editing/undo/4063751-expected.txt
new file mode 100644
index 0000000..8595856
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/4063751-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 314x20
+          text run at (0,0) width 314: "This tests RebalanceWhitespace's ability to Undo."
+      RenderBlock {P} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 328x20
+          text run at (0,0) width 328: "You should see \"( this is a test. )\", minus the quotes."
+      RenderBlock {HR} at (0,72) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,82) size 784x28 [border: (2px solid #FFAAAA)]
+        RenderBlock {DIV} at (2,2) size 780x24 [border: (2px solid #AAAAFF)]
+          RenderText {#text} at (2,2) size 94x20
+            text run at (2,2) width 94: "( this is a test. )"
+caret: position 18 of child 0 {#text} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/5378473-expected.txt b/LayoutTests/platform/gtk/editing/undo/5378473-expected.txt
new file mode 100644
index 0000000..9788c65
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/5378473-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+caret: position 0 of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/redo-typing-001-expected.txt b/LayoutTests/platform/gtk/editing/undo/redo-typing-001-expected.txt
new file mode 100644
index 0000000..3f9f2a0
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/redo-typing-001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 46x30
+          RenderText {#text} at (14,14) size 46x30
+            text run at (14,14) width 46: "xXX"
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/undo-combined-delete-boundary-expected.txt b/LayoutTests/platform/gtk/editing/undo/undo-combined-delete-boundary-expected.txt
new file mode 100644
index 0000000..df0e007
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/undo-combined-delete-boundary-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x91 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 731x62
+          RenderText {#text} at (14,15) size 78x30
+            text run at (14,15) width 78: "This wo"
+          RenderInline {B} at (0,0) size 30x33
+            RenderText {#text} at (92,14) size 30x33
+              text run at (92,14) width 30: "rd "
+          RenderText {#text} at (122,15) size 731x62
+            text run at (122,15) width 617: "should be selected, since the test deleted it a character at a time"
+            text run at (739,15) width 6: " "
+            text run at (14,47) width 209: "and then did an undo."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/undo-combined-delete-expected.txt b/LayoutTests/platform/gtk/editing/undo/undo-combined-delete-expected.txt
new file mode 100644
index 0000000..09922aa
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/undo-combined-delete-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 727x60
+          RenderText {#text} at (14,14) size 727x60
+            text run at (14,14) width 721: "This word should be selected, since the test deleted it a character at a time"
+            text run at (735,14) width 6: " "
+            text run at (14,44) width 209: "and then did an undo."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/undo-delete-boundary-expected.txt b/LayoutTests/platform/gtk/editing/undo/undo-delete-boundary-expected.txt
new file mode 100644
index 0000000..df0e007
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/undo-delete-boundary-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x91 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 731x62
+          RenderText {#text} at (14,15) size 78x30
+            text run at (14,15) width 78: "This wo"
+          RenderInline {B} at (0,0) size 30x33
+            RenderText {#text} at (92,14) size 30x33
+              text run at (92,14) width 30: "rd "
+          RenderText {#text} at (122,15) size 731x62
+            text run at (122,15) width 617: "should be selected, since the test deleted it a character at a time"
+            text run at (739,15) width 6: " "
+            text run at (14,47) width 209: "and then did an undo."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/undo-delete-expected.txt b/LayoutTests/platform/gtk/editing/undo/undo-delete-expected.txt
new file mode 100644
index 0000000..09922aa
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/undo-delete-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 727x60
+          RenderText {#text} at (14,14) size 727x60
+            text run at (14,14) width 721: "This word should be selected, since the test deleted it a character at a time"
+            text run at (735,14) width 6: " "
+            text run at (14,44) width 209: "and then did an undo."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/undo-forward-delete-boundary-expected.txt b/LayoutTests/platform/gtk/editing/undo/undo-forward-delete-boundary-expected.txt
new file mode 100644
index 0000000..df0e007
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/undo-forward-delete-boundary-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x91 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 731x62
+          RenderText {#text} at (14,15) size 78x30
+            text run at (14,15) width 78: "This wo"
+          RenderInline {B} at (0,0) size 30x33
+            RenderText {#text} at (92,14) size 30x33
+              text run at (92,14) width 30: "rd "
+          RenderText {#text} at (122,15) size 731x62
+            text run at (122,15) width 617: "should be selected, since the test deleted it a character at a time"
+            text run at (739,15) width 6: " "
+            text run at (14,47) width 209: "and then did an undo."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 2 of child 0 {#text} of child 1 {B} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/undo-forward-delete-expected.txt b/LayoutTests/platform/gtk/editing/undo/undo-forward-delete-expected.txt
new file mode 100644
index 0000000..09922aa
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/undo-forward-delete-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 727x60
+          RenderText {#text} at (14,14) size 727x60
+            text run at (14,14) width 721: "This word should be selected, since the test deleted it a character at a time"
+            text run at (735,14) width 6: " "
+            text run at (14,44) width 209: "and then did an undo."
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/platform/gtk/editing/undo/undo-misspellings-expected.txt b/LayoutTests/platform/gtk/editing/undo/undo-misspellings-expected.txt
new file mode 100644
index 0000000..9788c65
--- /dev/null
+++ b/LayoutTests/platform/gtk/editing/undo/undo-misspellings-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+caret: position 0 of child 0 {DIV} of child 1 {BODY} of child 0 {HTML} of document

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list