[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198

ossy at webkit.org ossy at webkit.org
Sun Feb 20 23:43:45 UTC 2011


The following commit has been merged in the webkit-1.3 branch:
commit 20e41c1b36ac36e87bbfc69ef134242cbfaf0d2c
Author: ossy at webkit.org <ossy at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Jan 24 16:56:12 2011 +0000

    Unreviewed.
    
    Add Qt specific expected results for passing editing/selections tests.
    Compared to Mac png files and Mac expected files. (part 3)
    
    * platform/qt/editing/selection/ [...]:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76523 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index bbe5194..0b554e5 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -3,6 +3,15 @@
         Unreviewed.
 
         Add Qt specific expected results for passing editing/selections tests.
+        Compared to Mac png files and Mac expected files. (part 3)
+
+        * platform/qt/editing/selection/ [...]:
+
+2011-01-24  Csaba Osztrogonác  <ossy at webkit.org>
+
+        Unreviewed.
+
+        Add Qt specific expected results for passing editing/selections tests.
         Compared to Mac png files and Mac expected files. (part 2)
 
         * platform/qt/editing/selection/ [...]:
diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped
index 2c0cdf4..b0c2427 100644
--- a/LayoutTests/platform/qt/Skipped
+++ b/LayoutTests/platform/qt/Skipped
@@ -1670,126 +1670,18 @@ editing/selection/shift-click.html
 
 # -- pass with --platform mac --ignore-metrics
 editing/selection/extend-selection-bidi.html
-editing/selection/user-drag-element-and-user-select-none.html
-editing/selection/14971.html
-editing/selection/4947387.html
-editing/selection/anchor-focus1.html
-editing/selection/doubleclick-crash.html
-editing/selection/drag-select-1.html
-editing/selection/expanding-selections2.html
-editing/selection/expanding-selections.html
-editing/selection/fake-doubleclick.html
-editing/selection/paragraph-granularity.html
-editing/selection/selection-actions.html
 editing/selection/selection-background.html
-editing/selection/triple-click-in-pre.html
-editing/selection/word-granularity.html
-editing/selection/4975120.html
-editing/selection/5354455-1.html
-editing/selection/5354455-2.html
-editing/selection/caret-and-focus-ring.html
-editing/selection/5136696.html
-editing/selection/after-line-wrap.html
-editing/selection/13804.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-2.html
-editing/selection/4895428-3.html
 editing/selection/4932260-1.html
-editing/selection/4932260-2.html
-editing/selection/4932260-3.html
-editing/selection/4960116.html
-editing/selection/4960137.html
 editing/selection/5007143-2.html
 editing/selection/5007143.html
-editing/selection/5076323-1.html
-editing/selection/5076323-2.html
-editing/selection/5076323-3.html
-editing/selection/5099303.html
-editing/selection/5131716-1.html
-editing/selection/5131716-2.html
-editing/selection/5131716-3.html
-editing/selection/5131716-4.html
-editing/selection/5240265.html
-editing/selection/6476.html
-editing/selection/addRange.html
-editing/selection/caret-before-select.html
 editing/selection/caret-rtl-2.html
 editing/selection/caret-rtl.html
-editing/selection/clear-selection.html
-editing/selection/contenteditable-click-inside.html
-editing/selection/display-table-text.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/focus-body.html
-editing/selection/focus_editable_html.html
 editing/selection/iframe.html
 editing/selection/image-before-linebreak.html
-editing/selection/inline-table.html
-editing/selection/leave-requested-block.html
-editing/selection/line-wrap-1.html
-editing/selection/line-wrap-2.html
 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-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/node-removal-1.html
-editing/selection/node-removal-2.html
-editing/selection/previous-line-position.html
-editing/selection/replaced-boundaries-1.html
-editing/selection/replaced-boundaries-2.html
-editing/selection/replaced-boundaries-3.html
-editing/selection/select-all-004.html
-editing/selection/select-all-iframe.html
 editing/selection/select-element-paragraph-boundary.html
-editing/selection/selection-3748164-fix.html
-editing/selection/select-missing-image.html
-editing/selection/selectNodeContents.html
-editing/selection/selectNode.html
-editing/selection/table-caret-1.html
-editing/selection/table-caret-2.html
-editing/selection/table-caret-3.html
-editing/selection/unrendered-001.html
-editing/selection/unrendered-002.html
-editing/selection/unrendered-003.html
-editing/selection/unrendered-004.html
-editing/selection/unrendered-005.html
-editing/selection/unrendered-space.html
-editing/selection/wrapped-line-caret-1.html
-editing/selection/wrapped-line-caret-2.html
 
 # https://bugs.webkit.org/show_bug.cgi?id=41918
 editing/selection/5195166-1.html
diff --git a/LayoutTests/platform/qt/editing/selection/13804-expected.checksum b/LayoutTests/platform/qt/editing/selection/13804-expected.checksum
new file mode 100644
index 0000000..c768ff9
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/13804-expected.checksum
@@ -0,0 +1 @@
+67891b7a6cca021c7cd75d0d304d96d4
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/13804-expected.png b/LayoutTests/platform/qt/editing/selection/13804-expected.png
new file mode 100644
index 0000000..108121c
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/13804-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/13804-expected.txt b/LayoutTests/platform/qt/editing/selection/13804-expected.txt
index 223d36d..0cafa78 100644
--- a/LayoutTests/platform/qt/editing/selection/13804-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/13804-expected.txt
@@ -3,11 +3,11 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 782x38
-          text run at (0,0) width 782: "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,19) width 208: "should be marked as misspelled."
-      RenderBlock {DIV} at (0,52) size 784x19
-        RenderText {#text} at (0,0) size 302x19
-          text run at (0,0) width 302: "This sentence ends with a misspelled word asd."
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 732x42
+          text run at (0,0) width 732: "This tests for a bug when moving the caret backward through a misspelled word. Once the caret is no longer"
+          text run at (0,21) width 322: "adjacent to it it should be marked as misspelled."
+      RenderBlock {DIV} at (0,58) size 784x21
+        RenderText {#text} at (0,0) size 316x21
+          text run at (0,0) width 316: "This sentence ends with a misspelled word asd."
 caret: position 40 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/14971-expected.checksum b/LayoutTests/platform/qt/editing/selection/14971-expected.checksum
new file mode 100644
index 0000000..caa9e47
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/14971-expected.checksum
@@ -0,0 +1 @@
+7eab72c58617bd8fcc58c51b69960651
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/14971-expected.png b/LayoutTests/platform/qt/editing/selection/14971-expected.png
new file mode 100644
index 0000000..dca9a82
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/14971-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/14971-expected.txt b/LayoutTests/platform/qt/editing/selection/14971-expected.txt
new file mode 100644
index 0000000..837bf7f
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/14971-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 784x42
+        RenderText {#text} at (0,0) size 782x42
+          text run at (0,0) width 645: "This tests to make sure that a drag-selecting through a -webkit-user-select:ignore region works. "
+          text run at (645,0) width 137: "The selection should"
+          text run at (0,21) width 317: "end somewhere inside the word 'World' below."
+      RenderBlock {DIV} at (0,58) size 784x21
+        RenderInline {SPAN} at (0,0) size 35x21
+          RenderText {#text} at (0,0) size 35x21
+            text run at (0,0) width 35: "Hello"
+        RenderText {#text} at (35,0) size 4x21
+          text run at (35,0) width 4: " "
+        RenderInline {SPAN} at (0,0) size 44x21
+          RenderText {#text} at (39,0) size 44x21
+            text run at (39,0) width 44: "World"
+selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 2 {SPAN} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.checksum
new file mode 100644
index 0000000..ad29230
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.checksum
@@ -0,0 +1 @@
+a0bfc8a95f84edabae5f3ddd85c163ac
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-2-expected.png b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.png
new file mode 100644
index 0000000..77f4cb6
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt
index e673ab9..98ca7c0 100644
--- a/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/3690703-2-expected.txt
@@ -13,140 +13,140 @@ layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,3) size 784x583 [bgcolor=#FFFFFF]
-      RenderBlock {CENTER} at (0,0) size 784x282
-        RenderTable {TABLE} at (0,0) size 784x20
-          RenderTableSection {TBODY} at (0,0) size 784x20
-            RenderTableRow {TR} at (0,0) size 784x16
-              RenderTableCell {TD} at (0,0) size 784x16 [r=0 c=0 rs=1 cs=1]
-                RenderInline {FONT} at (0,0) size 95x16
-                  RenderInline {A} at (0,0) size 95x16 [color=#0000CC]
-                    RenderText {#text} at (689,0) size 95x16
-                      text run at (689,0) width 95: "Personalized Home"
-            RenderTableRow {TR} at (0,16) size 784x4
-              RenderTableCell {TD} at (0,17) size 784x1 [r=1 c=0 rs=1 cs=1]
+    RenderBody {BODY} at (8,3) size 784x581 [bgcolor=#FFFFFF]
+      RenderBlock {CENTER} at (0,0) size 784x303
+        RenderTable {TABLE} at (0,0) size 784x21
+          RenderTableSection {TBODY} at (0,0) size 784x21
+            RenderTableRow {TR} at (0,0) size 784x17
+              RenderTableCell {TD} at (0,0) size 784x17 [r=0 c=0 rs=1 cs=1]
+                RenderInline {FONT} at (0,0) size 110x17
+                  RenderInline {A} at (0,0) size 110x17 [color=#0000CC]
+                    RenderText {#text} at (674,0) size 110x17
+                      text run at (674,0) width 110: "Personalized Home"
+            RenderTableRow {TR} at (0,17) size 784x4
+              RenderTableCell {TD} at (0,18) size 784x1 [r=1 c=0 rs=1 cs=1]
                 RenderImage {IMG} at (0,0) size 1x1
-        RenderBlock (anonymous) at (0,20) size 784x38
-          RenderBR {BR} at (392,0) size 0x19
-          RenderBR {BR} at (392,19) size 0x19
-        RenderBlock {DIV} at (0,58) size 784x124 [border: (2px solid #AAAAFF)]
-          RenderTable {TABLE} at (228,2) size 328x24
-            RenderTableSection {TBODY} at (0,0) size 328x24
-              RenderTableRow {TR} at (0,0) size 328x24
-                RenderTableCell {TD} at (0,0) size 328x24 [r=0 c=0 rs=1 cs=1]
-                  RenderInline {FONT} at (0,0) size 320x16
-                    RenderInline {B} at (0,0) size 23x16
-                      RenderText {#text} at (4,4) size 23x16
-                        text run at (4,4) width 23: "Web"
-                    RenderText {#text} at (27,4) size 12x16
-                      text run at (27,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 36x16 [color=#0000CC]
-                      RenderText {#text} at (39,4) size 36x16
-                        text run at (39,4) width 36: "Images"
-                    RenderText {#text} at (75,4) size 12x16
-                      text run at (75,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 37x16 [color=#0000CC]
-                      RenderText {#text} at (87,4) size 37x16
-                        text run at (87,4) width 37: "Groups"
-                    RenderText {#text} at (124,4) size 12x16
-                      text run at (124,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 28x16 [color=#0000CC]
-                      RenderText {#text} at (136,4) size 28x16
-                        text run at (136,4) width 28: "News"
-                    RenderText {#text} at (164,4) size 12x16
-                      text run at (164,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 37x16 [color=#0000CC]
-                      RenderText {#text} at (176,4) size 37x16
-                        text run at (176,4) width 37: "Froogle"
-                    RenderText {#text} at (213,4) size 12x16
-                      text run at (213,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 26x16 [color=#0000CC]
-                      RenderText {#text} at (225,4) size 26x16
-                        text run at (225,4) width 26: "Local"
-                      RenderInline {SUP} at (0,0) size 0x13
-                    RenderInline {A} at (0,0) size 25x16
-                      RenderInline {FONT} at (0,0) size 25x16 [color=#FF0000]
-                        RenderText {#text} at (251,4) size 25x16
-                          text run at (251,4) width 25: "New!"
-                    RenderText {#text} at (276,4) size 12x16
-                      text run at (276,4) width 12: "    "
-                    RenderInline {B} at (0,0) size 36x16
-                      RenderInline {A} at (0,0) size 36x16 [color=#0000CC]
-                        RenderText {#text} at (288,4) size 36x16
-                          text run at (288,4) width 36: "more \x{BB}"
-          RenderTable {TABLE} at (2,26) size 780x61
-            RenderTableSection {TBODY} at (0,0) size 780x61
-              RenderTableRow {TR} at (0,0) size 780x61
-                RenderTableCell {TD} at (0,21) size 156x19 [r=0 c=0 rs=1 cs=1]
-                  RenderText {#text} at (0,0) size 4x19
+        RenderBlock (anonymous) at (0,21) size 784x42
+          RenderBR {BR} at (392,0) size 0x21
+          RenderBR {BR} at (392,21) size 0x21
+        RenderBlock {DIV} at (0,63) size 784x131 [border: (2px solid #AAAAFF)]
+          RenderTable {TABLE} at (210,2) size 364x25
+            RenderTableSection {TBODY} at (0,0) size 364x25
+              RenderTableRow {TR} at (0,0) size 364x25
+                RenderTableCell {TD} at (0,0) size 364x25 [r=0 c=0 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 356x17
+                    RenderInline {B} at (0,0) size 26x17
+                      RenderText {#text} at (4,4) size 26x17
+                        text run at (4,4) width 26: "Web"
+                    RenderText {#text} at (30,4) size 12x17
+                      text run at (30,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 41x17 [color=#0000CC]
+                      RenderText {#text} at (42,4) size 41x17
+                        text run at (42,4) width 41: "Images"
+                    RenderText {#text} at (83,4) size 12x17
+                      text run at (83,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 42x17 [color=#0000CC]
+                      RenderText {#text} at (95,4) size 42x17
+                        text run at (95,4) width 42: "Groups"
+                    RenderText {#text} at (137,4) size 12x17
+                      text run at (137,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 29x17 [color=#0000CC]
+                      RenderText {#text} at (149,4) size 29x17
+                        text run at (149,4) width 29: "News"
+                    RenderText {#text} at (178,4) size 12x17
+                      text run at (178,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 45x17 [color=#0000CC]
+                      RenderText {#text} at (190,4) size 45x17
+                        text run at (190,4) width 45: "Froogle"
+                    RenderText {#text} at (235,4) size 12x17
+                      text run at (235,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 33x17 [color=#0000CC]
+                      RenderText {#text} at (247,4) size 33x17
+                        text run at (247,4) width 33: "Local"
+                      RenderInline {SUP} at (0,0) size 0x14
+                    RenderInline {A} at (0,0) size 28x17
+                      RenderInline {FONT} at (0,0) size 28x17 [color=#FF0000]
+                        RenderText {#text} at (280,4) size 28x17
+                          text run at (280,4) width 28: "New!"
+                    RenderText {#text} at (308,4) size 12x17
+                      text run at (308,4) width 12: "    "
+                    RenderInline {B} at (0,0) size 40x17
+                      RenderInline {A} at (0,0) size 40x17 [color=#0000CC]
+                        RenderText {#text} at (320,4) size 40x17
+                          text run at (320,4) width 40: "more \x{BB}"
+          RenderTable {TABLE} at (2,27) size 780x64
+            RenderTableSection {TBODY} at (0,0) size 780x64
+              RenderTableRow {TR} at (0,0) size 780x64
+                RenderTableCell {TD} at (0,21) size 157x21 [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (0,0) size 4x21
                     text run at (0,0) width 4: " "
-                RenderTableCell {TD} at (156,0) size 452x61 [r=0 c=1 rs=1 cs=1]
-                  RenderTextControl {INPUT} at (2,2) size 448x25 [border: (2px inset #000000)]
-                  RenderBR {BR} at (452,19) size 0x0
-                  RenderButton {INPUT} at (124,31) size 94x28 [bgcolor=#C0C0C0]
-                    RenderBlock (anonymous) at (6,6) size 82x17
-                      RenderText at (0,0) size 82x17
-                        text run at (0,0) width 82: "Google Search"
-                  RenderButton {INPUT} at (222,31) size 106x28 [bgcolor=#C0C0C0]
-                    RenderBlock (anonymous) at (6,6) size 94x17
-                      RenderText at (0,0) size 94x17
-                        text run at (0,0) width 94: "I'm Feeling Lucky"
-                RenderTableCell {TD} at (608,0) size 172x39 [r=0 c=2 rs=1 cs=1]
-                  RenderInline {FONT} at (0,0) size 79x39
+                RenderTableCell {TD} at (157,0) size 450x64 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 446x25
+                  RenderBR {BR} at (450,20) size 0x0
+                  RenderButton {INPUT} at (95,31) size 119x31 [bgcolor=#C0C0C0]
+                    RenderBlock (anonymous) at (6,6) size 107x20
+                      RenderText at (0,0) size 107x20
+                        text run at (0,0) width 107: "Google Search"
+                  RenderButton {INPUT} at (218,31) size 136x31 [bgcolor=#C0C0C0]
+                    RenderBlock (anonymous) at (6,6) size 124x20
+                      RenderText at (0,0) size 124x20
+                        text run at (0,0) width 124: "I'm Feeling Lucky"
+                RenderTableCell {TD} at (607,0) size 173x39 [r=0 c=2 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 81x39
                     RenderText {#text} at (0,0) size 6x13
                       text run at (0,0) width 6: "  "
-                    RenderInline {A} at (0,0) size 73x13 [color=#0000CC]
-                      RenderText {#text} at (6,0) size 73x13
-                        text run at (6,0) width 73: "Advanced Search"
-                    RenderBR {BR} at (79,9) size 0x0
+                    RenderInline {A} at (0,0) size 75x13 [color=#0000CC]
+                      RenderText {#text} at (6,0) size 75x13
+                        text run at (6,0) width 75: "Advanced Search"
+                    RenderBR {BR} at (81,10) size 0x0
                     RenderText {#text} at (0,13) size 6x13
                       text run at (0,13) width 6: "  "
-                    RenderInline {A} at (0,0) size 50x13 [color=#0000CC]
-                      RenderText {#text} at (6,13) size 50x13
-                        text run at (6,13) width 50: "Preferences"
-                    RenderBR {BR} at (56,22) size 0x0
+                    RenderInline {A} at (0,0) size 47x13 [color=#0000CC]
+                      RenderText {#text} at (6,13) size 47x13
+                        text run at (6,13) width 47: "Preferences"
+                    RenderBR {BR} at (53,23) size 0x0
                     RenderText {#text} at (0,26) size 6x13
                       text run at (0,26) width 6: "  "
-                    RenderInline {A} at (0,0) size 66x13 [color=#0000CC]
-                      RenderText {#text} at (6,26) size 66x13
-                        text run at (6,26) width 66: "Language Tools"
-          RenderBlock (anonymous) at (2,87) size 780x35
-            RenderBR {BR} at (390,0) size 0x19
-            RenderInline {FONT} at (0,0) size 135x16
-              RenderInline {FONT} at (0,0) size 25x16 [color=#FF0000]
-                RenderText {#text} at (322,19) size 25x16
-                  text run at (322,19) width 25: "New!"
-              RenderText {#text} at (347,19) size 3x16
-                text run at (347,19) width 3: " "
-              RenderInline {A} at (0,0) size 104x16 [color=#0000CC]
-                RenderText {#text} at (350,19) size 104x16
-                  text run at (350,19) width 104: "Personalize this page"
-              RenderText {#text} at (454,19) size 3x16
-                text run at (454,19) width 3: "."
+                    RenderInline {A} at (0,0) size 70x13 [color=#0000CC]
+                      RenderText {#text} at (6,26) size 70x13
+                        text run at (6,26) width 70: "Language Tools"
+          RenderBlock (anonymous) at (2,91) size 780x38
+            RenderBR {BR} at (390,0) size 0x21
+            RenderInline {FONT} at (0,0) size 153x17
+              RenderInline {FONT} at (0,0) size 28x17 [color=#FF0000]
+                RenderText {#text} at (313,21) size 28x17
+                  text run at (313,21) width 28: "New!"
+              RenderText {#text} at (341,21) size 3x17
+                text run at (341,21) width 3: " "
+              RenderInline {A} at (0,0) size 119x17 [color=#0000CC]
+                RenderText {#text} at (344,21) size 119x17
+                  text run at (344,21) width 119: "Personalize this page"
+              RenderText {#text} at (463,21) size 3x17
+                text run at (463,21) width 3: "."
             RenderText {#text} at (0,0) size 0x0
-        RenderBlock (anonymous) at (0,182) size 784x73
-          RenderBR {BR} at (392,0) size 0x19
-          RenderBR {BR} at (392,19) size 0x19
-          RenderBR {BR} at (392,38) size 0x19
-          RenderInline {FONT} at (0,0) size 283x16
-            RenderInline {A} at (0,0) size 105x16 [color=#0000CC]
-              RenderText {#text} at (250,57) size 105x16
-                text run at (250,57) width 105: "Advertising Programs"
-            RenderText {#text} at (355,57) size 10x16
-              text run at (355,57) width 10: " - "
-            RenderInline {A} at (0,0) size 92x16 [color=#0000CC]
-              RenderText {#text} at (365,57) size 92x16
-                text run at (365,57) width 92: "Business Solutions"
-            RenderText {#text} at (457,57) size 10x16
-              text run at (457,57) width 10: " - "
-            RenderInline {A} at (0,0) size 66x16 [color=#0000CC]
-              RenderText {#text} at (467,57) size 66x16
-                text run at (467,57) width 66: "About Google"
-        RenderBlock {P} at (0,269) size 784x13
-          RenderInline {FONT} at (0,0) size 59x13
-            RenderText {#text} at (362,0) size 59x13
-              text run at (362,0) width 59: "\x{A9}2005 Google"
-layer at (171,92) size 442x19
-  RenderBlock {DIV} at (3,3) size 442x19
+        RenderBlock (anonymous) at (0,194) size 784x80
+          RenderBR {BR} at (392,0) size 0x21
+          RenderBR {BR} at (392,21) size 0x21
+          RenderBR {BR} at (392,42) size 0x21
+          RenderInline {FONT} at (0,0) size 327x17
+            RenderInline {A} at (0,0) size 126x17 [color=#0000CC]
+              RenderText {#text} at (228,63) size 126x17
+                text run at (228,63) width 126: "Advertising Programs"
+            RenderText {#text} at (354,63) size 10x17
+              text run at (354,63) width 10: " - "
+            RenderInline {A} at (0,0) size 103x17 [color=#0000CC]
+              RenderText {#text} at (364,63) size 103x17
+                text run at (364,63) width 103: "Business Solutions"
+            RenderText {#text} at (467,63) size 10x17
+              text run at (467,63) width 10: " - "
+            RenderInline {A} at (0,0) size 78x17 [color=#0000CC]
+              RenderText {#text} at (477,63) size 78x17
+                text run at (477,63) width 78: "About Google"
+        RenderBlock {P} at (0,290) size 784x13
+          RenderInline {FONT} at (0,0) size 60x13
+            RenderText {#text} at (362,0) size 60x13
+              text run at (362,0) width 60: "\x{A9}2005 Google"
+layer at (171,97) size 442x21
+  RenderBlock {DIV} at (2,2) size 442x21
 selection start: position 0 of child 3 {INPUT} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
 selection end:   position 1 of child 2 {BR} of child 0 {FONT} of child 2 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-expected.checksum b/LayoutTests/platform/qt/editing/selection/3690703-expected.checksum
new file mode 100644
index 0000000..f1ab52e
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/3690703-expected.checksum
@@ -0,0 +1 @@
+9787596b7146d8205ef9a53e17c3e4e6
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-expected.png b/LayoutTests/platform/qt/editing/selection/3690703-expected.png
new file mode 100644
index 0000000..03d5381
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/3690703-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/3690703-expected.txt b/LayoutTests/platform/qt/editing/selection/3690703-expected.txt
index 116866a..84e064d 100644
--- a/LayoutTests/platform/qt/editing/selection/3690703-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/3690703-expected.txt
@@ -15,140 +15,140 @@ layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,3) size 784x583 [bgcolor=#FFFFFF]
-      RenderBlock {CENTER} at (0,0) size 784x282
-        RenderTable {TABLE} at (0,0) size 784x20
-          RenderTableSection {TBODY} at (0,0) size 784x20
-            RenderTableRow {TR} at (0,0) size 784x16
-              RenderTableCell {TD} at (0,0) size 784x16 [r=0 c=0 rs=1 cs=1]
-                RenderInline {FONT} at (0,0) size 95x16
-                  RenderInline {A} at (0,0) size 95x16 [color=#0000CC]
-                    RenderText {#text} at (689,0) size 95x16
-                      text run at (689,0) width 95: "Personalized Home"
-            RenderTableRow {TR} at (0,16) size 784x4
-              RenderTableCell {TD} at (0,17) size 784x1 [r=1 c=0 rs=1 cs=1]
+    RenderBody {BODY} at (8,3) size 784x581 [bgcolor=#FFFFFF]
+      RenderBlock {CENTER} at (0,0) size 784x303
+        RenderTable {TABLE} at (0,0) size 784x21
+          RenderTableSection {TBODY} at (0,0) size 784x21
+            RenderTableRow {TR} at (0,0) size 784x17
+              RenderTableCell {TD} at (0,0) size 784x17 [r=0 c=0 rs=1 cs=1]
+                RenderInline {FONT} at (0,0) size 110x17
+                  RenderInline {A} at (0,0) size 110x17 [color=#0000CC]
+                    RenderText {#text} at (674,0) size 110x17
+                      text run at (674,0) width 110: "Personalized Home"
+            RenderTableRow {TR} at (0,17) size 784x4
+              RenderTableCell {TD} at (0,18) size 784x1 [r=1 c=0 rs=1 cs=1]
                 RenderImage {IMG} at (0,0) size 1x1
-        RenderBlock (anonymous) at (0,20) size 784x38
-          RenderBR {BR} at (392,0) size 0x19
-          RenderBR {BR} at (392,19) size 0x19
-        RenderBlock {DIV} at (0,58) size 784x124 [border: (2px solid #AAAAFF)]
-          RenderTable {TABLE} at (228,2) size 328x24
-            RenderTableSection {TBODY} at (0,0) size 328x24
-              RenderTableRow {TR} at (0,0) size 328x24
-                RenderTableCell {TD} at (0,0) size 328x24 [r=0 c=0 rs=1 cs=1]
-                  RenderInline {FONT} at (0,0) size 320x16
-                    RenderInline {B} at (0,0) size 23x16
-                      RenderText {#text} at (4,4) size 23x16
-                        text run at (4,4) width 23: "Web"
-                    RenderText {#text} at (27,4) size 12x16
-                      text run at (27,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 36x16 [color=#0000CC]
-                      RenderText {#text} at (39,4) size 36x16
-                        text run at (39,4) width 36: "Images"
-                    RenderText {#text} at (75,4) size 12x16
-                      text run at (75,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 37x16 [color=#0000CC]
-                      RenderText {#text} at (87,4) size 37x16
-                        text run at (87,4) width 37: "Groups"
-                    RenderText {#text} at (124,4) size 12x16
-                      text run at (124,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 28x16 [color=#0000CC]
-                      RenderText {#text} at (136,4) size 28x16
-                        text run at (136,4) width 28: "News"
-                    RenderText {#text} at (164,4) size 12x16
-                      text run at (164,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 37x16 [color=#0000CC]
-                      RenderText {#text} at (176,4) size 37x16
-                        text run at (176,4) width 37: "Froogle"
-                    RenderText {#text} at (213,4) size 12x16
-                      text run at (213,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 26x16 [color=#0000CC]
-                      RenderText {#text} at (225,4) size 26x16
-                        text run at (225,4) width 26: "Local"
-                      RenderInline {SUP} at (0,0) size 0x13
-                    RenderInline {A} at (0,0) size 25x16
-                      RenderInline {FONT} at (0,0) size 25x16 [color=#FF0000]
-                        RenderText {#text} at (251,4) size 25x16
-                          text run at (251,4) width 25: "New!"
-                    RenderText {#text} at (276,4) size 12x16
-                      text run at (276,4) width 12: "    "
-                    RenderInline {B} at (0,0) size 36x16
-                      RenderInline {A} at (0,0) size 36x16 [color=#0000CC]
-                        RenderText {#text} at (288,4) size 36x16
-                          text run at (288,4) width 36: "more \x{BB}"
-          RenderTable {TABLE} at (2,26) size 780x61
-            RenderTableSection {TBODY} at (0,0) size 780x61
-              RenderTableRow {TR} at (0,0) size 780x61
-                RenderTableCell {TD} at (0,21) size 156x19 [r=0 c=0 rs=1 cs=1]
-                  RenderText {#text} at (0,0) size 4x19
+        RenderBlock (anonymous) at (0,21) size 784x42
+          RenderBR {BR} at (392,0) size 0x21
+          RenderBR {BR} at (392,21) size 0x21
+        RenderBlock {DIV} at (0,63) size 784x131 [border: (2px solid #AAAAFF)]
+          RenderTable {TABLE} at (210,2) size 364x25
+            RenderTableSection {TBODY} at (0,0) size 364x25
+              RenderTableRow {TR} at (0,0) size 364x25
+                RenderTableCell {TD} at (0,0) size 364x25 [r=0 c=0 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 356x17
+                    RenderInline {B} at (0,0) size 26x17
+                      RenderText {#text} at (4,4) size 26x17
+                        text run at (4,4) width 26: "Web"
+                    RenderText {#text} at (30,4) size 12x17
+                      text run at (30,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 41x17 [color=#0000CC]
+                      RenderText {#text} at (42,4) size 41x17
+                        text run at (42,4) width 41: "Images"
+                    RenderText {#text} at (83,4) size 12x17
+                      text run at (83,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 42x17 [color=#0000CC]
+                      RenderText {#text} at (95,4) size 42x17
+                        text run at (95,4) width 42: "Groups"
+                    RenderText {#text} at (137,4) size 12x17
+                      text run at (137,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 29x17 [color=#0000CC]
+                      RenderText {#text} at (149,4) size 29x17
+                        text run at (149,4) width 29: "News"
+                    RenderText {#text} at (178,4) size 12x17
+                      text run at (178,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 45x17 [color=#0000CC]
+                      RenderText {#text} at (190,4) size 45x17
+                        text run at (190,4) width 45: "Froogle"
+                    RenderText {#text} at (235,4) size 12x17
+                      text run at (235,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 33x17 [color=#0000CC]
+                      RenderText {#text} at (247,4) size 33x17
+                        text run at (247,4) width 33: "Local"
+                      RenderInline {SUP} at (0,0) size 0x14
+                    RenderInline {A} at (0,0) size 28x17
+                      RenderInline {FONT} at (0,0) size 28x17 [color=#FF0000]
+                        RenderText {#text} at (280,4) size 28x17
+                          text run at (280,4) width 28: "New!"
+                    RenderText {#text} at (308,4) size 12x17
+                      text run at (308,4) width 12: "    "
+                    RenderInline {B} at (0,0) size 40x17
+                      RenderInline {A} at (0,0) size 40x17 [color=#0000CC]
+                        RenderText {#text} at (320,4) size 40x17
+                          text run at (320,4) width 40: "more \x{BB}"
+          RenderTable {TABLE} at (2,27) size 780x64
+            RenderTableSection {TBODY} at (0,0) size 780x64
+              RenderTableRow {TR} at (0,0) size 780x64
+                RenderTableCell {TD} at (0,21) size 157x21 [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (0,0) size 4x21
                     text run at (0,0) width 4: " "
-                RenderTableCell {TD} at (156,0) size 452x61 [r=0 c=1 rs=1 cs=1]
-                  RenderTextControl {INPUT} at (2,2) size 448x25 [border: (2px inset #000000)]
-                  RenderBR {BR} at (452,19) size 0x0
-                  RenderButton {INPUT} at (124,31) size 94x28 [bgcolor=#C0C0C0]
-                    RenderBlock (anonymous) at (6,6) size 82x17
-                      RenderText at (0,0) size 82x17
-                        text run at (0,0) width 82: "Google Search"
-                  RenderButton {INPUT} at (222,31) size 106x28 [bgcolor=#C0C0C0]
-                    RenderBlock (anonymous) at (6,6) size 94x17
-                      RenderText at (0,0) size 94x17
-                        text run at (0,0) width 94: "I'm Feeling Lucky"
-                RenderTableCell {TD} at (608,0) size 172x39 [r=0 c=2 rs=1 cs=1]
-                  RenderInline {FONT} at (0,0) size 79x39
+                RenderTableCell {TD} at (157,0) size 450x64 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 446x25
+                  RenderBR {BR} at (450,20) size 0x0
+                  RenderButton {INPUT} at (95,31) size 119x31 [bgcolor=#C0C0C0]
+                    RenderBlock (anonymous) at (6,6) size 107x20
+                      RenderText at (0,0) size 107x20
+                        text run at (0,0) width 107: "Google Search"
+                  RenderButton {INPUT} at (218,31) size 136x31 [bgcolor=#C0C0C0]
+                    RenderBlock (anonymous) at (6,6) size 124x20
+                      RenderText at (0,0) size 124x20
+                        text run at (0,0) width 124: "I'm Feeling Lucky"
+                RenderTableCell {TD} at (607,0) size 173x39 [r=0 c=2 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 81x39
                     RenderText {#text} at (0,0) size 6x13
                       text run at (0,0) width 6: "  "
-                    RenderInline {A} at (0,0) size 73x13 [color=#0000CC]
-                      RenderText {#text} at (6,0) size 73x13
-                        text run at (6,0) width 73: "Advanced Search"
-                    RenderBR {BR} at (79,9) size 0x0
+                    RenderInline {A} at (0,0) size 75x13 [color=#0000CC]
+                      RenderText {#text} at (6,0) size 75x13
+                        text run at (6,0) width 75: "Advanced Search"
+                    RenderBR {BR} at (81,10) size 0x0
                     RenderText {#text} at (0,13) size 6x13
                       text run at (0,13) width 6: "  "
-                    RenderInline {A} at (0,0) size 50x13 [color=#0000CC]
-                      RenderText {#text} at (6,13) size 50x13
-                        text run at (6,13) width 50: "Preferences"
-                    RenderBR {BR} at (56,22) size 0x0
+                    RenderInline {A} at (0,0) size 47x13 [color=#0000CC]
+                      RenderText {#text} at (6,13) size 47x13
+                        text run at (6,13) width 47: "Preferences"
+                    RenderBR {BR} at (53,23) size 0x0
                     RenderText {#text} at (0,26) size 6x13
                       text run at (0,26) width 6: "  "
-                    RenderInline {A} at (0,0) size 66x13 [color=#0000CC]
-                      RenderText {#text} at (6,26) size 66x13
-                        text run at (6,26) width 66: "Language Tools"
-          RenderBlock (anonymous) at (2,87) size 780x35
-            RenderBR {BR} at (390,0) size 0x19
-            RenderInline {FONT} at (0,0) size 135x16
-              RenderInline {FONT} at (0,0) size 25x16 [color=#FF0000]
-                RenderText {#text} at (322,19) size 25x16
-                  text run at (322,19) width 25: "New!"
-              RenderText {#text} at (347,19) size 3x16
-                text run at (347,19) width 3: " "
-              RenderInline {A} at (0,0) size 104x16 [color=#0000CC]
-                RenderText {#text} at (350,19) size 104x16
-                  text run at (350,19) width 104: "Personalize this page"
-              RenderText {#text} at (454,19) size 3x16
-                text run at (454,19) width 3: "."
+                    RenderInline {A} at (0,0) size 70x13 [color=#0000CC]
+                      RenderText {#text} at (6,26) size 70x13
+                        text run at (6,26) width 70: "Language Tools"
+          RenderBlock (anonymous) at (2,91) size 780x38
+            RenderBR {BR} at (390,0) size 0x21
+            RenderInline {FONT} at (0,0) size 153x17
+              RenderInline {FONT} at (0,0) size 28x17 [color=#FF0000]
+                RenderText {#text} at (313,21) size 28x17
+                  text run at (313,21) width 28: "New!"
+              RenderText {#text} at (341,21) size 3x17
+                text run at (341,21) width 3: " "
+              RenderInline {A} at (0,0) size 119x17 [color=#0000CC]
+                RenderText {#text} at (344,21) size 119x17
+                  text run at (344,21) width 119: "Personalize this page"
+              RenderText {#text} at (463,21) size 3x17
+                text run at (463,21) width 3: "."
             RenderText {#text} at (0,0) size 0x0
-        RenderBlock (anonymous) at (0,182) size 784x73
-          RenderBR {BR} at (392,0) size 0x19
-          RenderBR {BR} at (392,19) size 0x19
-          RenderBR {BR} at (392,38) size 0x19
-          RenderInline {FONT} at (0,0) size 283x16
-            RenderInline {A} at (0,0) size 105x16 [color=#0000CC]
-              RenderText {#text} at (250,57) size 105x16
-                text run at (250,57) width 105: "Advertising Programs"
-            RenderText {#text} at (355,57) size 10x16
-              text run at (355,57) width 10: " - "
-            RenderInline {A} at (0,0) size 92x16 [color=#0000CC]
-              RenderText {#text} at (365,57) size 92x16
-                text run at (365,57) width 92: "Business Solutions"
-            RenderText {#text} at (457,57) size 10x16
-              text run at (457,57) width 10: " - "
-            RenderInline {A} at (0,0) size 66x16 [color=#0000CC]
-              RenderText {#text} at (467,57) size 66x16
-                text run at (467,57) width 66: "About Google"
-        RenderBlock {P} at (0,269) size 784x13
-          RenderInline {FONT} at (0,0) size 59x13
-            RenderText {#text} at (362,0) size 59x13
-              text run at (362,0) width 59: "\x{A9}2005 Google"
-layer at (171,92) size 442x19
-  RenderBlock {DIV} at (3,3) size 442x19
+        RenderBlock (anonymous) at (0,194) size 784x80
+          RenderBR {BR} at (392,0) size 0x21
+          RenderBR {BR} at (392,21) size 0x21
+          RenderBR {BR} at (392,42) size 0x21
+          RenderInline {FONT} at (0,0) size 327x17
+            RenderInline {A} at (0,0) size 126x17 [color=#0000CC]
+              RenderText {#text} at (228,63) size 126x17
+                text run at (228,63) width 126: "Advertising Programs"
+            RenderText {#text} at (354,63) size 10x17
+              text run at (354,63) width 10: " - "
+            RenderInline {A} at (0,0) size 103x17 [color=#0000CC]
+              RenderText {#text} at (364,63) size 103x17
+                text run at (364,63) width 103: "Business Solutions"
+            RenderText {#text} at (467,63) size 10x17
+              text run at (467,63) width 10: " - "
+            RenderInline {A} at (0,0) size 78x17 [color=#0000CC]
+              RenderText {#text} at (477,63) size 78x17
+                text run at (477,63) width 78: "About Google"
+        RenderBlock {P} at (0,290) size 784x13
+          RenderInline {FONT} at (0,0) size 60x13
+            RenderText {#text} at (362,0) size 60x13
+              text run at (362,0) width 60: "\x{A9}2005 Google"
+layer at (171,97) size 442x21
+  RenderBlock {DIV} at (2,2) size 442x21
 selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
 selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of body
diff --git a/LayoutTests/platform/qt/editing/selection/3690719-expected.checksum b/LayoutTests/platform/qt/editing/selection/3690719-expected.checksum
new file mode 100644
index 0000000..f1ab52e
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/3690719-expected.checksum
@@ -0,0 +1 @@
+9787596b7146d8205ef9a53e17c3e4e6
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/3690719-expected.png b/LayoutTests/platform/qt/editing/selection/3690719-expected.png
new file mode 100644
index 0000000..03d5381
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/3690719-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/3690719-expected.txt b/LayoutTests/platform/qt/editing/selection/3690719-expected.txt
index 2d9a298..0143f52 100644
--- a/LayoutTests/platform/qt/editing/selection/3690719-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/3690719-expected.txt
@@ -7,140 +7,140 @@ layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,3) size 784x583 [bgcolor=#FFFFFF]
-      RenderBlock {CENTER} at (0,0) size 784x282
-        RenderTable {TABLE} at (0,0) size 784x20
-          RenderTableSection {TBODY} at (0,0) size 784x20
-            RenderTableRow {TR} at (0,0) size 784x16
-              RenderTableCell {TD} at (0,0) size 784x16 [r=0 c=0 rs=1 cs=1]
-                RenderInline {FONT} at (0,0) size 95x16
-                  RenderInline {A} at (0,0) size 95x16 [color=#0000CC]
-                    RenderText {#text} at (689,0) size 95x16
-                      text run at (689,0) width 95: "Personalized Home"
-            RenderTableRow {TR} at (0,16) size 784x4
-              RenderTableCell {TD} at (0,17) size 784x1 [r=1 c=0 rs=1 cs=1]
+    RenderBody {BODY} at (8,3) size 784x581 [bgcolor=#FFFFFF]
+      RenderBlock {CENTER} at (0,0) size 784x303
+        RenderTable {TABLE} at (0,0) size 784x21
+          RenderTableSection {TBODY} at (0,0) size 784x21
+            RenderTableRow {TR} at (0,0) size 784x17
+              RenderTableCell {TD} at (0,0) size 784x17 [r=0 c=0 rs=1 cs=1]
+                RenderInline {FONT} at (0,0) size 110x17
+                  RenderInline {A} at (0,0) size 110x17 [color=#0000CC]
+                    RenderText {#text} at (674,0) size 110x17
+                      text run at (674,0) width 110: "Personalized Home"
+            RenderTableRow {TR} at (0,17) size 784x4
+              RenderTableCell {TD} at (0,18) size 784x1 [r=1 c=0 rs=1 cs=1]
                 RenderImage {IMG} at (0,0) size 1x1
-        RenderBlock (anonymous) at (0,20) size 784x38
-          RenderBR {BR} at (392,0) size 0x19
-          RenderBR {BR} at (392,19) size 0x19
-        RenderBlock {DIV} at (0,58) size 784x124 [border: (2px solid #AAAAFF)]
-          RenderTable {TABLE} at (228,2) size 328x24
-            RenderTableSection {TBODY} at (0,0) size 328x24
-              RenderTableRow {TR} at (0,0) size 328x24
-                RenderTableCell {TD} at (0,0) size 328x24 [r=0 c=0 rs=1 cs=1]
-                  RenderInline {FONT} at (0,0) size 320x16
-                    RenderInline {B} at (0,0) size 23x16
-                      RenderText {#text} at (4,4) size 23x16
-                        text run at (4,4) width 23: "Web"
-                    RenderText {#text} at (27,4) size 12x16
-                      text run at (27,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 36x16 [color=#0000CC]
-                      RenderText {#text} at (39,4) size 36x16
-                        text run at (39,4) width 36: "Images"
-                    RenderText {#text} at (75,4) size 12x16
-                      text run at (75,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 37x16 [color=#0000CC]
-                      RenderText {#text} at (87,4) size 37x16
-                        text run at (87,4) width 37: "Groups"
-                    RenderText {#text} at (124,4) size 12x16
-                      text run at (124,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 28x16 [color=#0000CC]
-                      RenderText {#text} at (136,4) size 28x16
-                        text run at (136,4) width 28: "News"
-                    RenderText {#text} at (164,4) size 12x16
-                      text run at (164,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 37x16 [color=#0000CC]
-                      RenderText {#text} at (176,4) size 37x16
-                        text run at (176,4) width 37: "Froogle"
-                    RenderText {#text} at (213,4) size 12x16
-                      text run at (213,4) width 12: "    "
-                    RenderInline {A} at (0,0) size 26x16 [color=#0000CC]
-                      RenderText {#text} at (225,4) size 26x16
-                        text run at (225,4) width 26: "Local"
-                      RenderInline {SUP} at (0,0) size 0x13
-                    RenderInline {A} at (0,0) size 25x16
-                      RenderInline {FONT} at (0,0) size 25x16 [color=#FF0000]
-                        RenderText {#text} at (251,4) size 25x16
-                          text run at (251,4) width 25: "New!"
-                    RenderText {#text} at (276,4) size 12x16
-                      text run at (276,4) width 12: "    "
-                    RenderInline {B} at (0,0) size 36x16
-                      RenderInline {A} at (0,0) size 36x16 [color=#0000CC]
-                        RenderText {#text} at (288,4) size 36x16
-                          text run at (288,4) width 36: "more \x{BB}"
-          RenderTable {TABLE} at (2,26) size 780x61
-            RenderTableSection {TBODY} at (0,0) size 780x61
-              RenderTableRow {TR} at (0,0) size 780x61
-                RenderTableCell {TD} at (0,21) size 156x19 [r=0 c=0 rs=1 cs=1]
-                  RenderText {#text} at (0,0) size 4x19
+        RenderBlock (anonymous) at (0,21) size 784x42
+          RenderBR {BR} at (392,0) size 0x21
+          RenderBR {BR} at (392,21) size 0x21
+        RenderBlock {DIV} at (0,63) size 784x131 [border: (2px solid #AAAAFF)]
+          RenderTable {TABLE} at (210,2) size 364x25
+            RenderTableSection {TBODY} at (0,0) size 364x25
+              RenderTableRow {TR} at (0,0) size 364x25
+                RenderTableCell {TD} at (0,0) size 364x25 [r=0 c=0 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 356x17
+                    RenderInline {B} at (0,0) size 26x17
+                      RenderText {#text} at (4,4) size 26x17
+                        text run at (4,4) width 26: "Web"
+                    RenderText {#text} at (30,4) size 12x17
+                      text run at (30,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 41x17 [color=#0000CC]
+                      RenderText {#text} at (42,4) size 41x17
+                        text run at (42,4) width 41: "Images"
+                    RenderText {#text} at (83,4) size 12x17
+                      text run at (83,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 42x17 [color=#0000CC]
+                      RenderText {#text} at (95,4) size 42x17
+                        text run at (95,4) width 42: "Groups"
+                    RenderText {#text} at (137,4) size 12x17
+                      text run at (137,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 29x17 [color=#0000CC]
+                      RenderText {#text} at (149,4) size 29x17
+                        text run at (149,4) width 29: "News"
+                    RenderText {#text} at (178,4) size 12x17
+                      text run at (178,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 45x17 [color=#0000CC]
+                      RenderText {#text} at (190,4) size 45x17
+                        text run at (190,4) width 45: "Froogle"
+                    RenderText {#text} at (235,4) size 12x17
+                      text run at (235,4) width 12: "    "
+                    RenderInline {A} at (0,0) size 33x17 [color=#0000CC]
+                      RenderText {#text} at (247,4) size 33x17
+                        text run at (247,4) width 33: "Local"
+                      RenderInline {SUP} at (0,0) size 0x14
+                    RenderInline {A} at (0,0) size 28x17
+                      RenderInline {FONT} at (0,0) size 28x17 [color=#FF0000]
+                        RenderText {#text} at (280,4) size 28x17
+                          text run at (280,4) width 28: "New!"
+                    RenderText {#text} at (308,4) size 12x17
+                      text run at (308,4) width 12: "    "
+                    RenderInline {B} at (0,0) size 40x17
+                      RenderInline {A} at (0,0) size 40x17 [color=#0000CC]
+                        RenderText {#text} at (320,4) size 40x17
+                          text run at (320,4) width 40: "more \x{BB}"
+          RenderTable {TABLE} at (2,27) size 780x64
+            RenderTableSection {TBODY} at (0,0) size 780x64
+              RenderTableRow {TR} at (0,0) size 780x64
+                RenderTableCell {TD} at (0,21) size 157x21 [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (0,0) size 4x21
                     text run at (0,0) width 4: " "
-                RenderTableCell {TD} at (156,0) size 452x61 [r=0 c=1 rs=1 cs=1]
-                  RenderTextControl {INPUT} at (2,2) size 448x25 [border: (2px inset #000000)]
-                  RenderBR {BR} at (452,19) size 0x0
-                  RenderButton {INPUT} at (124,31) size 94x28 [bgcolor=#C0C0C0]
-                    RenderBlock (anonymous) at (6,6) size 82x17
-                      RenderText at (0,0) size 82x17
-                        text run at (0,0) width 82: "Google Search"
-                  RenderButton {INPUT} at (222,31) size 106x28 [bgcolor=#C0C0C0]
-                    RenderBlock (anonymous) at (6,6) size 94x17
-                      RenderText at (0,0) size 94x17
-                        text run at (0,0) width 94: "I'm Feeling Lucky"
-                RenderTableCell {TD} at (608,0) size 172x39 [r=0 c=2 rs=1 cs=1]
-                  RenderInline {FONT} at (0,0) size 79x39
+                RenderTableCell {TD} at (157,0) size 450x64 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 446x25
+                  RenderBR {BR} at (450,20) size 0x0
+                  RenderButton {INPUT} at (95,31) size 119x31 [bgcolor=#C0C0C0]
+                    RenderBlock (anonymous) at (6,6) size 107x20
+                      RenderText at (0,0) size 107x20
+                        text run at (0,0) width 107: "Google Search"
+                  RenderButton {INPUT} at (218,31) size 136x31 [bgcolor=#C0C0C0]
+                    RenderBlock (anonymous) at (6,6) size 124x20
+                      RenderText at (0,0) size 124x20
+                        text run at (0,0) width 124: "I'm Feeling Lucky"
+                RenderTableCell {TD} at (607,0) size 173x39 [r=0 c=2 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 81x39
                     RenderText {#text} at (0,0) size 6x13
                       text run at (0,0) width 6: "  "
-                    RenderInline {A} at (0,0) size 73x13 [color=#0000CC]
-                      RenderText {#text} at (6,0) size 73x13
-                        text run at (6,0) width 73: "Advanced Search"
-                    RenderBR {BR} at (79,9) size 0x0
+                    RenderInline {A} at (0,0) size 75x13 [color=#0000CC]
+                      RenderText {#text} at (6,0) size 75x13
+                        text run at (6,0) width 75: "Advanced Search"
+                    RenderBR {BR} at (81,10) size 0x0
                     RenderText {#text} at (0,13) size 6x13
                       text run at (0,13) width 6: "  "
-                    RenderInline {A} at (0,0) size 50x13 [color=#0000CC]
-                      RenderText {#text} at (6,13) size 50x13
-                        text run at (6,13) width 50: "Preferences"
-                    RenderBR {BR} at (56,22) size 0x0
+                    RenderInline {A} at (0,0) size 47x13 [color=#0000CC]
+                      RenderText {#text} at (6,13) size 47x13
+                        text run at (6,13) width 47: "Preferences"
+                    RenderBR {BR} at (53,23) size 0x0
                     RenderText {#text} at (0,26) size 6x13
                       text run at (0,26) width 6: "  "
-                    RenderInline {A} at (0,0) size 66x13 [color=#0000CC]
-                      RenderText {#text} at (6,26) size 66x13
-                        text run at (6,26) width 66: "Language Tools"
-          RenderBlock (anonymous) at (2,87) size 780x35
-            RenderBR {BR} at (390,0) size 0x19
-            RenderInline {FONT} at (0,0) size 135x16
-              RenderInline {FONT} at (0,0) size 25x16 [color=#FF0000]
-                RenderText {#text} at (322,19) size 25x16
-                  text run at (322,19) width 25: "New!"
-              RenderText {#text} at (347,19) size 3x16
-                text run at (347,19) width 3: " "
-              RenderInline {A} at (0,0) size 104x16 [color=#0000CC]
-                RenderText {#text} at (350,19) size 104x16
-                  text run at (350,19) width 104: "Personalize this page"
-              RenderText {#text} at (454,19) size 3x16
-                text run at (454,19) width 3: "."
+                    RenderInline {A} at (0,0) size 70x13 [color=#0000CC]
+                      RenderText {#text} at (6,26) size 70x13
+                        text run at (6,26) width 70: "Language Tools"
+          RenderBlock (anonymous) at (2,91) size 780x38
+            RenderBR {BR} at (390,0) size 0x21
+            RenderInline {FONT} at (0,0) size 153x17
+              RenderInline {FONT} at (0,0) size 28x17 [color=#FF0000]
+                RenderText {#text} at (313,21) size 28x17
+                  text run at (313,21) width 28: "New!"
+              RenderText {#text} at (341,21) size 3x17
+                text run at (341,21) width 3: " "
+              RenderInline {A} at (0,0) size 119x17 [color=#0000CC]
+                RenderText {#text} at (344,21) size 119x17
+                  text run at (344,21) width 119: "Personalize this page"
+              RenderText {#text} at (463,21) size 3x17
+                text run at (463,21) width 3: "."
             RenderText {#text} at (0,0) size 0x0
-        RenderBlock (anonymous) at (0,182) size 784x73
-          RenderBR {BR} at (392,0) size 0x19
-          RenderBR {BR} at (392,19) size 0x19
-          RenderBR {BR} at (392,38) size 0x19
-          RenderInline {FONT} at (0,0) size 283x16
-            RenderInline {A} at (0,0) size 105x16 [color=#0000CC]
-              RenderText {#text} at (250,57) size 105x16
-                text run at (250,57) width 105: "Advertising Programs"
-            RenderText {#text} at (355,57) size 10x16
-              text run at (355,57) width 10: " - "
-            RenderInline {A} at (0,0) size 92x16 [color=#0000CC]
-              RenderText {#text} at (365,57) size 92x16
-                text run at (365,57) width 92: "Business Solutions"
-            RenderText {#text} at (457,57) size 10x16
-              text run at (457,57) width 10: " - "
-            RenderInline {A} at (0,0) size 66x16 [color=#0000CC]
-              RenderText {#text} at (467,57) size 66x16
-                text run at (467,57) width 66: "About Google"
-        RenderBlock {P} at (0,269) size 784x13
-          RenderInline {FONT} at (0,0) size 59x13
-            RenderText {#text} at (362,0) size 59x13
-              text run at (362,0) width 59: "\x{A9}2005 Google"
-layer at (171,92) size 442x19
-  RenderBlock {DIV} at (3,3) size 442x19
+        RenderBlock (anonymous) at (0,194) size 784x80
+          RenderBR {BR} at (392,0) size 0x21
+          RenderBR {BR} at (392,21) size 0x21
+          RenderBR {BR} at (392,42) size 0x21
+          RenderInline {FONT} at (0,0) size 327x17
+            RenderInline {A} at (0,0) size 126x17 [color=#0000CC]
+              RenderText {#text} at (228,63) size 126x17
+                text run at (228,63) width 126: "Advertising Programs"
+            RenderText {#text} at (354,63) size 10x17
+              text run at (354,63) width 10: " - "
+            RenderInline {A} at (0,0) size 103x17 [color=#0000CC]
+              RenderText {#text} at (364,63) size 103x17
+                text run at (364,63) width 103: "Business Solutions"
+            RenderText {#text} at (467,63) size 10x17
+              text run at (467,63) width 10: " - "
+            RenderInline {A} at (0,0) size 78x17 [color=#0000CC]
+              RenderText {#text} at (477,63) size 78x17
+                text run at (477,63) width 78: "About Google"
+        RenderBlock {P} at (0,290) size 784x13
+          RenderInline {FONT} at (0,0) size 60x13
+            RenderText {#text} at (362,0) size 60x13
+              text run at (362,0) width 60: "\x{A9}2005 Google"
+layer at (171,97) size 442x21
+  RenderBlock {DIV} at (2,2) size 442x21
 selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of body
 selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4402375-expected.checksum b/LayoutTests/platform/qt/editing/selection/4402375-expected.checksum
new file mode 100644
index 0000000..b222226
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4402375-expected.checksum
@@ -0,0 +1 @@
+fd5594483f506c8ca68b0198281f1119
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4402375-expected.png b/LayoutTests/platform/qt/editing/selection/4402375-expected.png
new file mode 100644
index 0000000..1234bae
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4402375-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4402375-expected.txt b/LayoutTests/platform/qt/editing/selection/4402375-expected.txt
index fe53f6e..3dc97f4 100644
--- a/LayoutTests/platform/qt/editing/selection/4402375-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4402375-expected.txt
@@ -4,24 +4,24 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 135x19
-          text run at (0,0) width 135: "This is a testcase for "
-        RenderInline {A} at (0,0) size 150x19 [color=#0000EE]
-          RenderText {#text} at (135,0) size 150x19
-            text run at (135,0) width 150: "rdar://problem/4402375"
-        RenderText {#text} at (285,0) size 756x38
-          text run at (285,0) width 471: " \"REGRESSION (417.8-TOT): finding text sometimes also selects previous"
-          text run at (0,19) width 136: "image (5127) (6451)\""
-      RenderBlock {HR} at (0,52) size 784x2 [border: (1px inset #000000)]
-      RenderBlock {P} at (0,68) size 784x38
-        RenderText {#text} at (0,0) size 756x38
-          text run at (0,0) width 419: "This test uses a right aligned image next to some left aligned text. "
-          text run at (419,0) width 337: "The image should not be selected, and should not be"
-          text run at (0,19) width 601: "included in the selection rect (you won't see the selection rect when you run this test manually)."
-      RenderBlock {DIV} at (0,120) size 784x19
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 139x21
+          text run at (0,0) width 139: "This is a testcase for "
+        RenderInline {A} at (0,0) size 161x21 [color=#0000EE]
+          RenderText {#text} at (139,0) size 161x21
+            text run at (139,0) width 161: "rdar://problem/4402375"
+        RenderText {#text} at (300,0) size 743x42
+          text run at (300,0) width 443: " \"REGRESSION (417.8-TOT): finding text sometimes also selects"
+          text run at (0,21) width 203: "previous image (5127) (6451)\""
+      RenderBlock {HR} at (0,58) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,76) size 784x42
+        RenderText {#text} at (0,0) size 769x42
+          text run at (0,0) width 438: "This test uses a right aligned image next to some left aligned text. "
+          text run at (438,0) width 331: "The image should not be selected, and should not"
+          text run at (0,21) width 657: "be included in the selection rect (you won't see the selection rect when you run this test manually)."
+      RenderBlock {DIV} at (0,134) size 784x21
         RenderImage {IMG} at (708,0) size 76x103
-        RenderText {#text} at (0,0) size 181x19
-          text run at (0,0) width 181: "This text should be selected."
+        RenderText {#text} at (0,0) size 188x21
+          text run at (0,0) width 188: "This text should be selected."
 selection start: position 0 of child 1 {#text} of child 6 {DIV} of body
 selection end:   position 29 of child 1 {#text} of child 6 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4776665-expected.checksum b/LayoutTests/platform/qt/editing/selection/4776665-expected.checksum
new file mode 100644
index 0000000..f1fe6a2
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4776665-expected.checksum
@@ -0,0 +1 @@
+47d85af20d6f27c2d80c78d8076c2e5e
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4776665-expected.png b/LayoutTests/platform/qt/editing/selection/4776665-expected.png
new file mode 100644
index 0000000..10bda7a
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4776665-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4776665-expected.txt b/LayoutTests/platform/qt/editing/selection/4776665-expected.txt
index 69d0d29..60bffa3 100644
--- a/LayoutTests/platform/qt/editing/selection/4776665-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4776665-expected.txt
@@ -4,11 +4,11 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 592x19
-          text run at (0,0) width 220: "This tests for a caret painting bug. "
-          text run at (220,0) width 372: "You should not see a caret in the editable subframe below."
-      RenderBlock (anonymous) at (0,33) size 784x154
+      RenderBlock {P} at (0,0) size 784x21
+        RenderText {#text} at (0,0) size 628x21
+          text run at (0,0) width 235: "This tests for a caret painting bug. "
+          text run at (235,0) width 393: "You should not see a caret in the editable subframe below."
+      RenderBlock (anonymous) at (0,37) 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
diff --git a/LayoutTests/platform/qt/editing/selection/4818145-expected.checksum b/LayoutTests/platform/qt/editing/selection/4818145-expected.checksum
new file mode 100644
index 0000000..b4dc94a
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4818145-expected.checksum
@@ -0,0 +1 @@
+634fab42a2f81499e99720758c773802
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4818145-expected.png b/LayoutTests/platform/qt/editing/selection/4818145-expected.png
new file mode 100644
index 0000000..433d25f
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4818145-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4818145-expected.txt b/LayoutTests/platform/qt/editing/selection/4818145-expected.txt
index 2aea1c7..22139a5 100644
--- a/LayoutTests/platform/qt/editing/selection/4818145-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4818145-expected.txt
@@ -3,17 +3,17 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 747x38
-          text run at (0,0) width 517: "This tries to select a table inside an editable region whose content is not editable. "
-          text run at (517,0) width 230: "The table and its contents should be"
-          text run at (0,19) width 57: "selected."
-      RenderBlock {DIV} at (0,52) size 784x29
-        RenderTable {TABLE} at (0,0) size 30x29 [border: (1px outset #808080)]
-          RenderTableSection {TBODY} at (1,1) size 28x27
-            RenderTableRow {TR} at (0,2) size 28x23
-              RenderTableCell {TD} at (2,2) size 24x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 20x19
-                  text run at (2,2) width 20: "foo"
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 784x42
+          text run at (0,0) width 542: "This tries to select a table inside an editable region whose content is not editable. "
+          text run at (542,0) width 242: "The table and its contents should be"
+          text run at (0,21) width 56: "selected."
+      RenderBlock {DIV} at (0,58) size 784x31
+        RenderTable {TABLE} at (0,0) size 31x31 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 29x29
+            RenderTableRow {TR} at (0,2) size 29x25
+              RenderTableCell {TD} at (2,2) size 25x25 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 21x21
+                  text run at (2,2) width 21: "foo"
 selection start: position 0 of child 0 {TABLE} of child 2 {DIV} of body
 selection end:   position 1 of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4866671-expected.checksum b/LayoutTests/platform/qt/editing/selection/4866671-expected.checksum
new file mode 100644
index 0000000..d03c0bf
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4866671-expected.checksum
@@ -0,0 +1 @@
+efb6639bac6fb9c99fa7f6655ab74f51
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4866671-expected.png b/LayoutTests/platform/qt/editing/selection/4866671-expected.png
new file mode 100644
index 0000000..4a79aee
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4866671-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4866671-expected.txt b/LayoutTests/platform/qt/editing/selection/4866671-expected.txt
index ea74ea7..18a58d0 100644
--- a/LayoutTests/platform/qt/editing/selection/4866671-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4866671-expected.txt
@@ -3,21 +3,21 @@ layer 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 622x19
-          text run at (0,0) width 440: "This tests caret movement through -webkit-user-select:none content. "
-          text run at (440,0) width 182: "The caret should move over "
-        RenderInline {B} at (0,0) size 24x20
-          RenderText {#text} at (622,0) size 24x20
-            text run at (622,0) width 24: "yyy"
-        RenderText {#text} at (646,0) size 4x19
-          text run at (646,0) width 4: "."
-      RenderBlock {DIV} at (0,34) size 784x20
-        RenderText {#text} at (0,0) size 7x19
-          text run at (0,0) width 7: "x"
-        RenderInline {SPAN} at (0,0) size 24x20
-          RenderText {#text} at (7,0) size 24x20
-            text run at (7,0) width 24: "yyy"
-        RenderText {#text} at (31,0) size 7x19
-          text run at (31,0) width 7: "x"
+      RenderBlock {P} at (0,0) size 784x21
+        RenderText {#text} at (0,0) size 656x21
+          text run at (0,0) width 464: "This tests caret movement through -webkit-user-select:none content. "
+          text run at (464,0) width 192: "The caret should move over "
+        RenderInline {B} at (0,0) size 24x21
+          RenderText {#text} at (656,0) size 24x21
+            text run at (656,0) width 24: "yyy"
+        RenderText {#text} at (680,0) size 4x21
+          text run at (680,0) width 4: "."
+      RenderBlock {DIV} at (0,37) size 784x21
+        RenderText {#text} at (0,0) size 8x21
+          text run at (0,0) width 8: "x"
+        RenderInline {SPAN} at (0,0) size 24x21
+          RenderText {#text} at (8,0) size 24x21
+            text run at (8,0) width 24: "yyy"
+        RenderText {#text} at (32,0) size 8x21
+          text run at (32,0) width 8: "x"
 caret: position 0 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4889598-expected.checksum b/LayoutTests/platform/qt/editing/selection/4889598-expected.checksum
new file mode 100644
index 0000000..e95c810
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4889598-expected.checksum
@@ -0,0 +1 @@
+cc959bdd80e59fb101abe01bf794e51f
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4889598-expected.png b/LayoutTests/platform/qt/editing/selection/4889598-expected.png
new file mode 100644
index 0000000..1856c42
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4889598-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4889598-expected.txt b/LayoutTests/platform/qt/editing/selection/4889598-expected.txt
index d695d51..86e95c6 100644
--- a/LayoutTests/platform/qt/editing/selection/4889598-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4889598-expected.txt
@@ -41,25 +41,26 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 772x19
-          text run at (0,0) width 772: "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,33) size 784x67
-        RenderBlock {DIV} at (0,0) size 784x19
-          RenderText {#text} at (0,0) size 272x19
-            text run at (0,0) width 272: "Click anywhere in this line and move down."
-        RenderTable {TABLE} at (0,19) size 337x29 [border: (1px outset #808080)]
-          RenderTableSection {TBODY} at (1,1) size 335x27
-            RenderTableRow {TR} at (0,2) size 335x23
-              RenderTableCell {TD} at (2,2) size 331x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 65x19
-                  text run at (2,2) width 65: "The caret "
-                RenderInline {SPAN} at (0,0) size 42x19 [color=#0000FF]
-                  RenderText {#text} at (67,2) size 42x19
-                    text run at (67,2) width 42: "should"
-                RenderText {#text} at (109,2) size 220x19
-                  text run at (109,2) width 220: " always go into the editable region."
-        RenderBlock {DIV} at (0,48) size 784x19
-          RenderText {#text} at (0,0) size 254x19
-            text run at (0,0) width 254: "Click anywhere in this line and move up."
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 784x42
+          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"
+          text run at (0,21) width 43: "ToDo."
+      RenderBlock {DIV} at (0,58) size 784x73
+        RenderBlock {DIV} at (0,0) size 784x21
+          RenderText {#text} at (0,0) size 296x21
+            text run at (0,0) width 296: "Click anywhere in this line and move down."
+        RenderTable {TABLE} at (0,21) size 357x31 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 355x29
+            RenderTableRow {TR} at (0,2) size 355x25
+              RenderTableCell {TD} at (2,2) size 351x25 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 69x21
+                  text run at (2,2) width 69: "The caret "
+                RenderInline {SPAN} at (0,0) size 45x21 [color=#0000FF]
+                  RenderText {#text} at (71,2) size 45x21
+                    text run at (71,2) width 45: "should"
+                RenderText {#text} at (116,2) size 233x21
+                  text run at (116,2) width 233: " always go into the editable region."
+        RenderBlock {DIV} at (0,52) size 784x21
+          RenderText {#text} at (0,0) size 276x21
+            text run at (0,0) width 276: "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 body
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.checksum
new file mode 100644
index 0000000..2001872
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.checksum
@@ -0,0 +1 @@
+59a94887517bcdca61e075a8eae7dbb1
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-2-expected.png b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.png
new file mode 100644
index 0000000..3537350
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt
index d71f4d9..7dd824b 100644
--- a/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4895428-2-expected.txt
@@ -2,27 +2,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 784x578
-      RenderBlock {P} at (0,0) size 784x57
-        RenderText {#text} at (0,0) size 784x57
-          text run at (0,0) width 738: "This tests to see if a mouse click inside an editable, focusable node focuses that node. Normally, we focus a node on"
-          text run at (0,19) width 784: "mouse down, but to make it easier to drag selections containing editable pieces we delay focus until mouse up. The editable"
-          text run at (0,38) width 486: "table cell should be focused and you should see a 'Success' message below."
-      RenderBlock {DIV} at (0,71) size 784x29
-        RenderTable {TABLE} at (0,0) size 145x29 [border: (1px outset #808080)]
-          RenderTableSection {TBODY} at (1,1) size 143x27
-            RenderTableRow {TR} at (0,2) size 143x23
-              RenderTableCell {TD} at (2,2) size 83x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 79x19
-                  text run at (2,2) width 79: "non-editable"
-              RenderTableCell {TD} at (87,2) size 54x23 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 50x19
-                  text run at (2,2) width 50: "editable"
-      RenderBlock {DIV} at (0,100) size 784x19
-        RenderBR {BR} at (0,0) size 0x19
-      RenderBlock {UL} at (0,133) size 784x19
-        RenderListItem {LI} at (40,0) size 744x19
-          RenderListMarker at (-17,0) size 7x19: bullet
-          RenderText {#text} at (0,0) size 53x19
-            text run at (0,0) width 53: "Success"
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x63
+        RenderText {#text} at (0,0) size 768x63
+          text run at (0,0) width 768: "This tests to see if a mouse click inside an editable, focusable node focuses that node. Normally, we focus a node on"
+          text run at (0,21) width 767: "mouse down, but to make it easier to drag selections containing editable pieces we delay focus until mouse up. The"
+          text run at (0,42) width 554: "editable table cell should be focused and you should see a 'Success' message below."
+      RenderBlock {DIV} at (0,79) size 784x31
+        RenderTable {TABLE} at (0,0) size 153x31 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 151x29
+            RenderTableRow {TR} at (0,2) size 151x25
+              RenderTableCell {TD} at (2,2) size 88x25 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 84x21
+                  text run at (2,2) width 84: "non-editable"
+              RenderTableCell {TD} at (92,2) size 57x25 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 53x21
+                  text run at (2,2) width 53: "editable"
+      RenderBlock {DIV} at (0,110) size 784x21
+        RenderBR {BR} at (0,0) size 0x21
+      RenderBlock {UL} at (0,147) size 784x21
+        RenderListItem {LI} at (40,0) size 744x21
+          RenderListMarker at (-18,0) size 7x21: bullet
+          RenderText {#text} at (0,0) size 51x21
+            text run at (0,0) width 51: "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 body
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-3-expected.checksum b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.checksum
new file mode 100644
index 0000000..0a64aea
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.checksum
@@ -0,0 +1 @@
+45fd589202f523d5c3c481324c94d80a
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-3-expected.png b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.png
new file mode 100644
index 0000000..cb553f3
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt
index 60fd269..70e9af1 100644
--- a/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4895428-3-expected.txt
@@ -3,24 +3,24 @@ layer 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 784x58
-        RenderText {#text} at (0,0) size 762x57
-          text run at (0,0) width 762: "We delay focus until mouse up if the mouse down occurs inside a focusable node that is inside an already focused node."
-          text run at (0,19) width 564: "But we shouldn't delay focus unless the mouse down occurs in an already focused node. "
-          text run at (564,19) width 189: "The text field below should be"
-          text run at (0,38) width 58: "focused. "
-        RenderInline {B} at (0,0) size 664x20
-          RenderText {#text} at (58,38) size 664x20
-            text run at (58,38) width 664: "To run manually, select everything from 'foo' though 'baz', then mouse down inside the text field."
-      RenderBlock {DIV} at (0,72) size 784x67
-        RenderBlock {DIV} at (0,0) size 784x19
-          RenderText {#text} at (0,0) size 20x19
-            text run at (0,0) width 20: "foo"
-        RenderBlock (anonymous) at (0,19) size 784x29
-          RenderTextControl {INPUT} at (2,2) size 168x25 [border: (2px inset #000000)]
-        RenderBlock {DIV} at (0,48) size 784x19
-          RenderText {#text} at (0,0) size 23x19
-            text run at (0,0) width 23: "baz"
-layer at (13,104) size 162x19
-  RenderBlock {DIV} at (3,3) size 162x19
+      RenderBlock {P} at (0,0) size 784x63
+        RenderText {#text} at (0,0) size 768x63
+          text run at (0,0) width 759: "We delay focus until mouse up if the mouse down occurs inside a focusable node that is inside an already focused"
+          text run at (0,21) width 635: "node. But we shouldn't delay focus unless the mouse down occurs in an already focused node. "
+          text run at (635,21) width 133: "The text field below"
+          text run at (0,42) width 128: "should be focused. "
+        RenderInline {B} at (0,0) size 654x21
+          RenderText {#text} at (128,42) size 654x21
+            text run at (128,42) width 654: "To run manually, select everything from 'foo' though 'baz', then mouse down inside the text field."
+      RenderBlock {DIV} at (0,79) size 784x71
+        RenderBlock {DIV} at (0,0) size 784x21
+          RenderText {#text} at (0,0) size 21x21
+            text run at (0,0) width 21: "foo"
+        RenderBlock (anonymous) at (0,21) size 784x29
+          RenderTextControl {INPUT} at (2,2) size 166x25
+        RenderBlock {DIV} at (0,50) size 784x21
+          RenderText {#text} at (0,0) size 24x21
+            text run at (0,0) width 24: "baz"
+layer at (12,112) size 162x21
+  RenderBlock {DIV} at (2,2) size 162x21
 caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.checksum
new file mode 100644
index 0000000..7b248de
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.checksum
@@ -0,0 +1 @@
+60fc6f9f82693a355cfdaa199a30ddb4
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-2-expected.png b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.png
new file mode 100644
index 0000000..035e320
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt
index 38eb8f4..4a0408e 100644
--- a/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4932260-2-expected.txt
@@ -8,13 +8,13 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 412x19
-          text run at (0,0) width 412: "This tests for a bug where images would act as word boundaries."
-      RenderBlock {DIV} at (0,33) size 784x108
-        RenderText {#text} at (0,89) size 25x19
-          text run at (0,89) width 25: "The"
-        RenderImage {IMG} at (25,0) size 76x103
-        RenderText {#text} at (101,89) size 373x19
-          text run at (101,89) width 373: "caret should be just after the second word in this sentence."
+      RenderBlock {P} at (0,0) size 784x21
+        RenderText {#text} at (0,0) size 437x21
+          text run at (0,0) width 437: "This tests for a bug where images would act as word boundaries."
+      RenderBlock {DIV} at (0,37) size 784x108
+        RenderText {#text} at (0,87) size 27x21
+          text run at (0,87) width 27: "The"
+        RenderImage {IMG} at (27,0) size 76x103
+        RenderText {#text} at (103,87) size 393x21
+          text run at (103,87) width 393: "caret should be just after the second word in this sentence."
 caret: position 5 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-3-expected.checksum b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.checksum
new file mode 100644
index 0000000..ced6fb3
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.checksum
@@ -0,0 +1 @@
+39919cf0ed15917fb6d1c27142ac9501
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-3-expected.png b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.png
new file mode 100644
index 0000000..2429be8
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt
index 2c7a894..cef2780 100644
--- a/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4932260-3-expected.txt
@@ -8,13 +8,13 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 412x19
-          text run at (0,0) width 412: "This tests for a bug where images would act as word boundaries."
-      RenderBlock {DIV} at (0,33) size 784x108
-        RenderText {#text} at (0,89) size 390x19
-          text run at (0,89) width 390: "The caret should be just before the second to last word in this"
-        RenderImage {IMG} at (390,0) size 76x103
-        RenderText {#text} at (466,89) size 62x19
-          text run at (466,89) width 62: "sentence."
+      RenderBlock {P} at (0,0) size 784x21
+        RenderText {#text} at (0,0) size 437x21
+          text run at (0,0) width 437: "This tests for a bug where images would act as word boundaries."
+      RenderBlock {DIV} at (0,37) size 784x108
+        RenderText {#text} at (0,87) size 414x21
+          text run at (0,87) width 414: "The caret should be just before the second to last word in this"
+        RenderImage {IMG} at (414,0) size 76x103
+        RenderText {#text} at (490,87) size 61x21
+          text run at (490,87) width 61: "sentence."
 caret: position 59 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4947387-expected.checksum b/LayoutTests/platform/qt/editing/selection/4947387-expected.checksum
new file mode 100644
index 0000000..9498e21
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4947387-expected.checksum
@@ -0,0 +1 @@
+702fc43cc31a9501d6a4b309624241db
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4947387-expected.png b/LayoutTests/platform/qt/editing/selection/4947387-expected.png
new file mode 100644
index 0000000..98fc4b1
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4947387-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4947387-expected.txt b/LayoutTests/platform/qt/editing/selection/4947387-expected.txt
new file mode 100644
index 0000000..1a4db6d
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4947387-expected.txt
@@ -0,0 +1,35 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 51 of #text > DIV > BODY > HTML > #document to 51 of #text > DIV > BODY > HTML > #document toDOMRange:range from 27 of #text > DIV > BODY > HTML > #document to 51 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 27 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 51 of #text > DIV > BODY > HTML > #document to 51 of #text > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 51 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 51 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView 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 784x84
+        RenderText {#text} at (0,0) size 767x84
+          text run at (0,0) width 435: "This tests moveTo{Beginning, End}OfLineAndModifySelection. "
+          text run at (435,0) width 300: "It should operate on line boundaries and not"
+          text run at (0,21) width 161: "paragraph boundaries. "
+          text run at (161,21) width 535: "To run it manually, click inside the first line of the editable region below and do"
+          text run at (0,42) width 767: "Command+Shift+Left/Right Arrow, the selection should extend to the start/end of the line, not the start/end of the"
+          text run at (0,63) width 81: "paragraph. "
+          text run at (81,63) width 534: "Also, moveTo{Beginning, End}OfParagraphAndModifySelection should work."
+      RenderBlock {DIV} at (0,100) size 200x42
+        RenderText {#text} at (0,0) size 200x42
+          text run at (0,0) width 199: "The quick brown fox jumped"
+          text run at (199,0) width 1: " "
+          text run at (0,21) width 168: "over the lazy brown dog."
+selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 51 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4960116-expected.checksum b/LayoutTests/platform/qt/editing/selection/4960116-expected.checksum
new file mode 100644
index 0000000..b9f80a6
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4960116-expected.checksum
@@ -0,0 +1 @@
+bb210d3e74810b0df065815d92776089
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4960116-expected.png b/LayoutTests/platform/qt/editing/selection/4960116-expected.png
new file mode 100644
index 0000000..586f9b7
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4960116-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4960116-expected.txt b/LayoutTests/platform/qt/editing/selection/4960116-expected.txt
index c4b3567..e830514 100644
--- a/LayoutTests/platform/qt/editing/selection/4960116-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4960116-expected.txt
@@ -3,11 +3,11 @@ layer 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 784x57
-        RenderText {#text} at (0,0) size 779x57
-          text run at (0,0) width 766: "This tests for a crash when performing a selection modification, when a node containing the selection was made invisible,"
-          text run at (0,19) width 364: "and when there is nowhere visible for the selection to go. "
-          text run at (364,19) width 415: "For example, set the caret inside of an editable div, and make the"
-          text run at (0,38) width 489: "div invisible, then try to move the selection forward/backward by a paragraph."
-      RenderBlock {DIV} at (0,71) size 784x19
+      RenderBlock {P} at (0,0) size 784x63
+        RenderText {#text} at (0,0) size 759x63
+          text run at (0,0) width 749: "This tests for a crash when performing a selection modification, when a node containing the selection was made"
+          text run at (0,21) width 447: "invisible, and when there is nowhere visible for the selection to go. "
+          text run at (447,21) width 312: "For example, set the caret inside of an editable"
+          text run at (0,42) width 657: "div, and make the div invisible, then try to move the selection forward/backward by a paragraph."
+      RenderBlock {DIV} at (0,79) size 784x21
 caret: position 0 of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/4960137-expected.checksum b/LayoutTests/platform/qt/editing/selection/4960137-expected.checksum
new file mode 100644
index 0000000..0ec64cc
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4960137-expected.checksum
@@ -0,0 +1 @@
+d543bc9b0bbbb26048dac3c703585249
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4960137-expected.png b/LayoutTests/platform/qt/editing/selection/4960137-expected.png
new file mode 100644
index 0000000..4f3338d
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4960137-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4960137-expected.txt b/LayoutTests/platform/qt/editing/selection/4960137-expected.txt
index 82008ce..cbcd6da 100644
--- a/LayoutTests/platform/qt/editing/selection/4960137-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/4960137-expected.txt
@@ -3,17 +3,17 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 661x19
-          text run at (0,0) width 661: "This tests for an ASSERTion failure when setting the main frame's selection inside a node in a subframe."
-      RenderBlock (anonymous) at (0,33) size 784x154
+      RenderBlock {P} at (0,0) size 784x21
+        RenderText {#text} at (0,0) size 705x21
+          text run at (0,0) width 705: "This tests for an ASSERTion failure when setting the main frame's selection inside a node in a subframe."
+      RenderBlock (anonymous) at (0,37) 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 68x19
-                  text run at (0,0) width 68: "hello world"
+                RenderText {#text} at (0,0) size 76x21
+                  text run at (0,0) width 76: "hello world"
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/qt/editing/selection/4975120-expected.checksum b/LayoutTests/platform/qt/editing/selection/4975120-expected.checksum
new file mode 100644
index 0000000..9b18989
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4975120-expected.checksum
@@ -0,0 +1 @@
+ecf30b037c7ad568e21d4c40f43f5eae
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/4975120-expected.png b/LayoutTests/platform/qt/editing/selection/4975120-expected.png
new file mode 100644
index 0000000..483e312
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/4975120-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/4975120-expected.txt b/LayoutTests/platform/qt/editing/selection/4975120-expected.txt
new file mode 100644
index 0000000..395646d
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/4975120-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 784x63
+        RenderText {#text} at (0,0) size 779x63
+          text run at (0,0) width 746: "This tests for a bug that caused the parent of an active frame to paint as though it were active when its window"
+          text run at (0,21) width 93: "becomes key. "
+          text run at (93,21) width 686: "To run manually, make another window active and then make this window active. Only the subframe"
+          text run at (0,42) width 144: "should appear active."
+      RenderBlock (anonymous) at (0,79) size 784x183
+        RenderTextControl {INPUT} at (2,2) size 166x25
+        RenderBR {BR} at (170,20) size 0x0
+        RenderPartObject {IFRAME} at (0,29) 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 [bgcolor=#FFFFE0]
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+layer at (12,91) size 162x21
+  RenderBlock {DIV} at (2,2) size 162x21
+    RenderText {#text} at (1,0) size 21x21
+      text run at (1,0) width 21: "foo"
+selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of body
+selection end:   position 3 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5007143-expected.checksum b/LayoutTests/platform/qt/editing/selection/5007143-expected.checksum
new file mode 100644
index 0000000..0af1292
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5007143-expected.checksum
@@ -0,0 +1 @@
+3f06459ad4b5608cfe18891271204403
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5007143-expected.png b/LayoutTests/platform/qt/editing/selection/5007143-expected.png
new file mode 100644
index 0000000..7e0cba5
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5007143-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-1-expected.checksum b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.checksum
new file mode 100644
index 0000000..30180ed
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.checksum
@@ -0,0 +1 @@
+1e4e6c3b8e4beda6c62e667a5f7c9ae7
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-1-expected.png b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.png
new file mode 100644
index 0000000..f0f2073
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt
index c003071..53a7241 100644
--- a/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5076323-1-expected.txt
@@ -2,22 +2,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 784x578
-      RenderBlock {P} at (0,0) size 784x38
-        RenderText {#text} at (0,0) size 784x38
-          text run at (0,0) width 784: "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,19) width 226: "selection started just before a table."
-      RenderBlock {DIV} at (0,52) size 784x46
-        RenderTable {TABLE} at (0,0) size 28x27 [border: (1px solid #AAAAAA)]
-          RenderTableSection {TBODY} at (1,1) size 26x25
-            RenderTableRow {TR} at (0,2) size 26x21
-              RenderTableCell {TD} at (2,2) size 22x21 [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (1,1) size 20x19
-                  text run at (1,1) width 20: "foo"
-        RenderBlock (anonymous) at (0,27) size 784x19
-          RenderText {#text} at (0,0) size 21x19
-            text run at (0,0) width 21: "bar"
-      RenderBlock {P} at (0,112) size 784x19
-        RenderText {#text} at (0,0) size 571x19
-          text run at (0,0) width 571: "In the above editable region, you should see 'foo' in the bordered table and 'bar' outside it."
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 745x42
+          text run at (0,0) width 745: "This tests for a bug where moving the selection to the end of the document would move it outside of an editable"
+          text run at (0,21) width 322: "region if the selection started just before a table."
+      RenderBlock {DIV} at (0,58) size 784x50
+        RenderTable {TABLE} at (0,0) size 29x29 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 27x27
+            RenderTableRow {TR} at (0,2) size 27x23
+              RenderTableCell {TD} at (2,2) size 23x23 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 21x21
+                  text run at (1,1) width 21: "foo"
+        RenderBlock (anonymous) at (0,29) size 784x21
+          RenderText {#text} at (0,0) size 24x21
+            text run at (0,0) width 24: "bar"
+      RenderBlock {P} at (0,124) size 784x21
+        RenderText {#text} at (0,0) size 608x21
+          text run at (0,0) width 608: "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 body
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.checksum
new file mode 100644
index 0000000..33855d4
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.checksum
@@ -0,0 +1 @@
+1fea3f6726f9a3bf302d5da19c6ac7df
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-2-expected.png b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.png
new file mode 100644
index 0000000..fb671f3
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt
index 87c8da9..8cea9d9 100644
--- a/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5076323-2-expected.txt
@@ -3,14 +3,14 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 645x19
-          text run at (0,0) width 645: "This tests caret painting before a table, you should see a caret before the table containing 'foo' above."
-      RenderBlock {DIV} at (0,33) size 784x27
-        RenderTable {TABLE} at (0,0) size 28x27 [border: (1px solid #AAAAAA)]
-          RenderTableSection {TBODY} at (1,1) size 26x25
-            RenderTableRow {TR} at (0,2) size 26x21
-              RenderTableCell {TD} at (2,2) size 22x21 [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (1,1) size 20x19
-                  text run at (1,1) width 20: "foo"
+      RenderBlock {P} at (0,0) size 784x21
+        RenderText {#text} at (0,0) size 678x21
+          text run at (0,0) width 678: "This tests caret painting before a table, you should see a caret before the table containing 'foo' above."
+      RenderBlock {DIV} at (0,37) size 784x29
+        RenderTable {TABLE} at (0,0) size 29x29 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 27x27
+            RenderTableRow {TR} at (0,2) size 27x23
+              RenderTableCell {TD} at (2,2) size 23x23 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 21x21
+                  text run at (1,1) width 21: "foo"
 caret: position 0 of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-3-expected.checksum b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.checksum
new file mode 100644
index 0000000..6db53a3
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.checksum
@@ -0,0 +1 @@
+40480f674af7c6d61b042b15376e429b
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-3-expected.png b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.png
new file mode 100644
index 0000000..8d0b28c
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt
index 4fb9acc..abd3d7d 100644
--- a/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5076323-3-expected.txt
@@ -3,14 +3,14 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 621x19
-          text run at (0,0) width 621: "This tests caret painting after a table, you should see a caret after the table containing 'foo' above."
-      RenderBlock {DIV} at (0,33) size 784x27
-        RenderTable {TABLE} at (0,0) size 28x27 [border: (1px solid #AAAAAA)]
-          RenderTableSection {TBODY} at (1,1) size 26x25
-            RenderTableRow {TR} at (0,2) size 26x21
-              RenderTableCell {TD} at (2,2) size 22x21 [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (1,1) size 20x19
-                  text run at (1,1) width 20: "foo"
+      RenderBlock {P} at (0,0) size 784x21
+        RenderText {#text} at (0,0) size 656x21
+          text run at (0,0) width 656: "This tests caret painting after a table, you should see a caret after the table containing 'foo' above."
+      RenderBlock {DIV} at (0,37) size 784x29
+        RenderTable {TABLE} at (0,0) size 29x29 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 27x27
+            RenderTableRow {TR} at (0,2) size 27x23
+              RenderTableCell {TD} at (2,2) size 23x23 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 21x21
+                  text run at (1,1) width 21: "foo"
 caret: position 1 of child 0 {TABLE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5099303-expected.checksum b/LayoutTests/platform/qt/editing/selection/5099303-expected.checksum
new file mode 100644
index 0000000..af15903
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5099303-expected.checksum
@@ -0,0 +1 @@
+737a38cad975121244104fcd2a251ce9
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5099303-expected.png b/LayoutTests/platform/qt/editing/selection/5099303-expected.png
new file mode 100644
index 0000000..d6c1d97
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5099303-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5099303-expected.txt b/LayoutTests/platform/qt/editing/selection/5099303-expected.txt
index bb9b87b..921071c 100644
--- a/LayoutTests/platform/qt/editing/selection/5099303-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5099303-expected.txt
@@ -3,17 +3,18 @@ layer 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 784x19
-        RenderText {#text} at (0,0) size 767x19
-          text run at (0,0) width 449: "This tests extending an editable selection across non-editable content. "
-          text run at (449,0) width 318: "Everything in the region below should be selected."
-      RenderBlock {DIV} at (0,33) size 784x19
-        RenderText {#text} at (0,0) size 7x19
-          text run at (0,0) width 7: "x"
-        RenderInline {SPAN} at (0,0) size 14x19
-          RenderText {#text} at (7,0) size 14x19
-            text run at (7,0) width 14: "xx"
-        RenderText {#text} at (21,0) size 7x19
-          text run at (21,0) width 7: "x"
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 746x42
+          text run at (0,0) width 468: "This tests extending an editable selection across non-editable content. "
+          text run at (468,0) width 278: "Everything in the region below should be"
+          text run at (0,21) width 56: "selected."
+      RenderBlock {DIV} at (0,58) size 784x21
+        RenderText {#text} at (0,0) size 8x21
+          text run at (0,0) width 8: "x"
+        RenderInline {SPAN} at (0,0) size 16x21
+          RenderText {#text} at (8,0) size 16x21
+            text run at (8,0) width 16: "xx"
+        RenderText {#text} at (24,0) size 8x21
+          text run at (24,0) width 8: "x"
 selection start: position 0 of child 0 {#text} of child 2 {DIV} of body
 selection end:   position 1 of child 2 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-1-expected.checksum b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.checksum
new file mode 100644
index 0000000..ea65249
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.checksum
@@ -0,0 +1 @@
+66f4f9f79fcc034fd6962522567c2b62
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-1-expected.png b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.png
new file mode 100644
index 0000000..5e4ad28
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt
index b232055..83071a7 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-1-expected.txt
@@ -3,25 +3,25 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 727x38
-          text run at (0,0) width 449: "This tests clicking to place a caret in the padding of an editable region. "
-          text run at (449,0) width 278: "The eventSender clicks to the left of the first"
-          text run at (0,19) width 665: "paragraph in the left padding of the editable region and the caret should be at the start of that paragraph."
-      RenderBlock {DIV} at (0,52) size 784x119 [border: (1px solid #000000)]
-        RenderBlock {DIV} at (26,26) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph One."
-        RenderTable {TABLE} at (26,45) size 90x29 [border: (1px solid #BBBBBB)]
-          RenderTableSection {TBODY} at (1,1) size 88x27
-            RenderTableRow {TR} at (0,2) size 88x23 [border: (1px solid #BBBBBB)]
-              RenderTableCell {TD} at (2,2) size 8x23 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 4x19
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 773x42
+          text run at (0,0) width 477: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (477,0) width 296: "The eventSender clicks to the left of the first"
+          text run at (0,21) width 714: "paragraph in the left padding of the editable region and the caret should be at the start of that paragraph."
+      RenderBlock {DIV} at (0,58) size 784x125 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x21
+          RenderText {#text} at (0,0) size 110x21
+            text run at (0,0) width 110: "Paragraph One."
+        RenderTable {TABLE} at (26,47) size 95x31 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 93x29
+            RenderTableRow {TR} at (0,2) size 93x25 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x25 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x21
                   text run at (2,2) width 4: " "
-              RenderTableCell {TD} at (12,2) size 74x23 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 70x19
-                  text run at (2,2) width 70: "ToDo One."
-        RenderBlock {DIV} at (26,74) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph Two."
+              RenderTableCell {TD} at (12,2) size 79x25 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 75x21
+                  text run at (2,2) width 75: "ToDo One."
+        RenderBlock {DIV} at (26,78) size 732x21
+          RenderText {#text} at (0,0) size 113x21
+            text run at (0,0) width 113: "Paragraph Two."
 caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.checksum
new file mode 100644
index 0000000..cfdf3a7
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.checksum
@@ -0,0 +1 @@
+38e6f63ca22feeac426e5d90f4141bf9
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-2-expected.png b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.png
new file mode 100644
index 0000000..2637276
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt
index ffd394b..38cf893 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-2-expected.txt
@@ -3,25 +3,25 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 778x38
-          text run at (0,0) width 449: "This tests clicking to place a caret in the padding of an editable region. "
-          text run at (449,0) width 329: "The eventSender clicks to the left of the ToDo in the"
-          text run at (0,19) width 508: "left padding of the editable region and the caret should be just before that ToDo."
-      RenderBlock {DIV} at (0,52) size 784x119 [border: (1px solid #000000)]
-        RenderBlock {DIV} at (26,26) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph One."
-        RenderTable {TABLE} at (26,45) size 90x29 [border: (1px solid #BBBBBB)]
-          RenderTableSection {TBODY} at (1,1) size 88x27
-            RenderTableRow {TR} at (0,2) size 88x23 [border: (1px solid #BBBBBB)]
-              RenderTableCell {TD} at (2,2) size 8x23 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 4x19
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 742x42
+          text run at (0,0) width 477: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (477,0) width 265: "The eventSender clicks to the left of the"
+          text run at (0,21) width 628: "ToDo in the left padding of the editable region and the caret should be just before that ToDo."
+      RenderBlock {DIV} at (0,58) size 784x125 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x21
+          RenderText {#text} at (0,0) size 110x21
+            text run at (0,0) width 110: "Paragraph One."
+        RenderTable {TABLE} at (26,47) size 95x31 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 93x29
+            RenderTableRow {TR} at (0,2) size 93x25 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x25 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x21
                   text run at (2,2) width 4: " "
-              RenderTableCell {TD} at (12,2) size 74x23 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 70x19
-                  text run at (2,2) width 70: "ToDo One."
-        RenderBlock {DIV} at (26,74) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph Two."
+              RenderTableCell {TD} at (12,2) size 79x25 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 75x21
+                  text run at (2,2) width 75: "ToDo One."
+        RenderBlock {DIV} at (26,78) size 732x21
+          RenderText {#text} at (0,0) size 113x21
+            text run at (0,0) width 113: "Paragraph Two."
 caret: position 0 of child 3 {TABLE} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-3-expected.checksum b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.checksum
new file mode 100644
index 0000000..e750db1
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.checksum
@@ -0,0 +1 @@
+e719bcdb4f065a77871782ed9eb51f9d
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-3-expected.png b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.png
new file mode 100644
index 0000000..39573ae
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt
index 9ef8f8e..2484215 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-3-expected.txt
@@ -3,25 +3,25 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 777x38
-          text run at (0,0) width 449: "This tests clicking to place a caret in the padding of an editable region. "
-          text run at (449,0) width 328: "The eventSender clicks in the left padding to the left"
-          text run at (0,19) width 482: "of the third paragraph and the caret should be at the start of that paragraph."
-      RenderBlock {DIV} at (0,52) size 784x119 [border: (1px solid #000000)]
-        RenderBlock {DIV} at (26,26) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph One."
-        RenderTable {TABLE} at (26,45) size 90x29 [border: (1px solid #BBBBBB)]
-          RenderTableSection {TBODY} at (1,1) size 88x27
-            RenderTableRow {TR} at (0,2) size 88x23 [border: (1px solid #BBBBBB)]
-              RenderTableCell {TD} at (2,2) size 8x23 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 4x19
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 777x42
+          text run at (0,0) width 477: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (477,0) width 300: "The eventSender clicks in the left padding to"
+          text run at (0,21) width 571: "the left of the third paragraph and the caret should be at the start of that paragraph."
+      RenderBlock {DIV} at (0,58) size 784x125 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x21
+          RenderText {#text} at (0,0) size 110x21
+            text run at (0,0) width 110: "Paragraph One."
+        RenderTable {TABLE} at (26,47) size 95x31 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 93x29
+            RenderTableRow {TR} at (0,2) size 93x25 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x25 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x21
                   text run at (2,2) width 4: " "
-              RenderTableCell {TD} at (12,2) size 74x23 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 70x19
-                  text run at (2,2) width 70: "ToDo One."
-        RenderBlock {DIV} at (26,74) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph Two."
+              RenderTableCell {TD} at (12,2) size 79x25 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 75x21
+                  text run at (2,2) width 75: "ToDo One."
+        RenderBlock {DIV} at (26,78) size 732x21
+          RenderText {#text} at (0,0) size 113x21
+            text run at (0,0) width 113: "Paragraph Two."
 caret: position 0 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-4-expected.checksum b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.checksum
new file mode 100644
index 0000000..3783ff9
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.checksum
@@ -0,0 +1 @@
+b458f41c17a9d3e393f7d41449ab5636
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-4-expected.png b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.png
new file mode 100644
index 0000000..b47301d
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt
index bf734ad..70c8bcf 100644
--- a/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5131716-4-expected.txt
@@ -3,25 +3,25 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 779x38
-          text run at (0,0) width 449: "This tests clicking to place a caret in the padding of an editable region. "
-          text run at (449,0) width 330: "The eventSender clicks in the bottom padding of the"
-          text run at (0,19) width 454: "editable region and the caret should be placed at the end of that region."
-      RenderBlock {DIV} at (0,52) size 784x119 [border: (1px solid #000000)]
-        RenderBlock {DIV} at (26,26) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph One."
-        RenderTable {TABLE} at (26,45) size 90x29 [border: (1px solid #BBBBBB)]
-          RenderTableSection {TBODY} at (1,1) size 88x27
-            RenderTableRow {TR} at (0,2) size 88x23 [border: (1px solid #BBBBBB)]
-              RenderTableCell {TD} at (2,2) size 8x23 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 4x19
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 727x42
+          text run at (0,0) width 477: "This tests clicking to place a caret in the padding of an editable region. "
+          text run at (477,0) width 250: "The eventSender clicks in the bottom"
+          text run at (0,21) width 582: "padding of the editable region and the caret should be placed at the end of that region."
+      RenderBlock {DIV} at (0,58) size 784x125 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x21
+          RenderText {#text} at (0,0) size 110x21
+            text run at (0,0) width 110: "Paragraph One."
+        RenderTable {TABLE} at (26,47) size 95x31 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 93x29
+            RenderTableRow {TR} at (0,2) size 93x25 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x25 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x21
                   text run at (2,2) width 4: " "
-              RenderTableCell {TD} at (12,2) size 74x23 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
-                RenderText {#text} at (2,2) size 70x19
-                  text run at (2,2) width 70: "ToDo One."
-        RenderBlock {DIV} at (26,74) size 732x19
-          RenderText {#text} at (0,0) size 102x19
-            text run at (0,0) width 102: "Paragraph Two."
+              RenderTableCell {TD} at (12,2) size 79x25 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 75x21
+                  text run at (2,2) width 75: "ToDo One."
+        RenderBlock {DIV} at (26,78) size 732x21
+          RenderText {#text} at (0,0) size 113x21
+            text run at (0,0) width 113: "Paragraph Two."
 caret: position 14 of child 0 {#text} of child 5 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/51344-expected.checksum b/LayoutTests/platform/qt/editing/selection/51344-expected.checksum
new file mode 100644
index 0000000..eb08d85
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/51344-expected.checksum
@@ -0,0 +1 @@
+a0af00cd0e55bdfeabbb3f9d078154d0
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/51344-expected.png b/LayoutTests/platform/qt/editing/selection/51344-expected.png
new file mode 100644
index 0000000..59919a5
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/51344-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/doubleclick-whitespace-img-crash-expected.checksum b/LayoutTests/platform/qt/editing/selection/5136696-expected.checksum
similarity index 100%
copy from LayoutTests/platform/qt/editing/selection/doubleclick-whitespace-img-crash-expected.checksum
copy to LayoutTests/platform/qt/editing/selection/5136696-expected.checksum
diff --git a/LayoutTests/platform/qt/editing/selection/5195166-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/5195166-2-expected.checksum
new file mode 100644
index 0000000..c811f8b
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5195166-2-expected.checksum
@@ -0,0 +1 @@
+057a173b91385ab907ca64341e596c2b
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5195166-2-expected.png b/LayoutTests/platform/qt/editing/selection/5195166-2-expected.png
new file mode 100644
index 0000000..eae7c74
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5195166-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5209984-expected.checksum b/LayoutTests/platform/qt/editing/selection/5209984-expected.checksum
new file mode 100644
index 0000000..414e1ed
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5209984-expected.checksum
@@ -0,0 +1 @@
+363195ae8e53184eaa1b9d33b9ecdd58
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5209984-expected.png b/LayoutTests/platform/qt/editing/selection/5209984-expected.png
new file mode 100644
index 0000000..bca3a10
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5209984-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5213963-expected.checksum b/LayoutTests/platform/qt/editing/selection/5213963-expected.checksum
new file mode 100644
index 0000000..ae9e516
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5213963-expected.checksum
@@ -0,0 +1 @@
+c97d5fb33faff51a1de51e5414e1db9b
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5213963-expected.png b/LayoutTests/platform/qt/editing/selection/5213963-expected.png
new file mode 100644
index 0000000..64c11f0
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5213963-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5240265-expected.checksum b/LayoutTests/platform/qt/editing/selection/5240265-expected.checksum
new file mode 100644
index 0000000..71b0aaf
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5240265-expected.checksum
@@ -0,0 +1 @@
+0bdcf8b4d15a213a1c6c3e4e9ada8f5c
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5240265-expected.png b/LayoutTests/platform/qt/editing/selection/5240265-expected.png
new file mode 100644
index 0000000..a3481de
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5240265-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5240265-expected.txt b/LayoutTests/platform/qt/editing/selection/5240265-expected.txt
index 32074ca..aa4aa20 100644
--- a/LayoutTests/platform/qt/editing/selection/5240265-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/5240265-expected.txt
@@ -3,20 +3,20 @@ layer 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 784x57
-        RenderText {#text} at (0,0) size 783x57
-          text run at (0,0) width 764: "This tests to see that clicking on content outside of an editable region with -webkit-user-select: ignore doesn't remove the"
-          text run at (0,19) width 464: "selection from the editable region. To run it manually, click on the button. "
-          text run at (464,19) width 319: "The editable region should not be focused, but the"
-          text run at (0,38) width 218: "text inside of it should be selected."
-      RenderBlock (anonymous) at (0,71) size 784x32
-        RenderButton {INPUT} at (2,2) size 76x28 [bgcolor=#C0C0C0]
-          RenderBlock (anonymous) at (6,6) size 64x17
-            RenderText at (0,0) size 64x17
-              text run at (0,0) width 64: "Click on me"
+      RenderBlock {P} at (0,0) size 784x63
+        RenderText {#text} at (0,0) size 782x63
+          text run at (0,0) width 782: "This tests to see that clicking on content outside of an editable region with -webkit-user-select: ignore doesn't remove"
+          text run at (0,21) width 526: "the selection from the editable region. To run it manually, click on the button. "
+          text run at (526,21) width 226: "The editable region should not be"
+          text run at (0,42) width 338: "focused, but the text inside of it should be selected."
+      RenderBlock (anonymous) at (0,79) size 784x35
+        RenderButton {INPUT} at (2,2) size 96x31 [bgcolor=#C0C0C0]
+          RenderBlock (anonymous) at (6,6) size 84x20
+            RenderText at (0,0) size 84x20
+              text run at (0,0) width 84: "Click on me"
         RenderText {#text} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,103) size 784x19
-        RenderText {#text} at (0,0) size 181x19
-          text run at (0,0) width 181: "This text should be selected."
+      RenderBlock {DIV} at (0,114) size 784x21
+        RenderText {#text} at (0,0) size 188x21
+          text run at (0,0) width 188: "This text should be selected."
 selection start: position 0 of child 0 {#text} of child 4 {DIV} of body
 selection end:   position 29 of child 0 {#text} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5241148-expected.checksum b/LayoutTests/platform/qt/editing/selection/5241148-expected.checksum
new file mode 100644
index 0000000..d7dfe58
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5241148-expected.checksum
@@ -0,0 +1 @@
+54d3328539ec016c9b4cb208fe282029
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5241148-expected.png b/LayoutTests/platform/qt/editing/selection/5241148-expected.png
new file mode 100644
index 0000000..0530364
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5241148-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5354455-1-expected.checksum b/LayoutTests/platform/qt/editing/selection/5354455-1-expected.checksum
new file mode 100644
index 0000000..93ccb00
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5354455-1-expected.checksum
@@ -0,0 +1 @@
+19b5fd93b51a5f476585e908b4649039
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5354455-1-expected.png b/LayoutTests/platform/qt/editing/selection/5354455-1-expected.png
new file mode 100644
index 0000000..a33361a
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5354455-1-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5354455-1-expected.txt b/LayoutTests/platform/qt/editing/selection/5354455-1-expected.txt
new file mode 100644
index 0000000..cf1548b
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5354455-1-expected.txt
@@ -0,0 +1,8 @@
+This tests whether right clicking on a paragraph break in editable content selects it. The break should be selected on OS X, but not on Windows or Unix. To run it manually, right click on the paragraph break after the first paragraph below.
+
+The following paragraph break should be selected on OS X.
+Mac: Caret
+
+Win: Caret
+
+Unix: Caret
diff --git a/LayoutTests/platform/qt/editing/selection/5354455-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/5354455-2-expected.checksum
new file mode 100644
index 0000000..60f2f6d
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5354455-2-expected.checksum
@@ -0,0 +1 @@
+3f8d953fd7b6f471119e8b64c8cbcdff
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5354455-2-expected.png b/LayoutTests/platform/qt/editing/selection/5354455-2-expected.png
new file mode 100644
index 0000000..b0a47ed
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5354455-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5354455-2-expected.txt b/LayoutTests/platform/qt/editing/selection/5354455-2-expected.txt
new file mode 100644
index 0000000..bc36a00
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5354455-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
+layer at (8,8) size 612x159
+  RenderBody {BODY} at (8,8) size 612x159 [border: (1px solid #000000)]
+    RenderBlock {H1} at (6,6) size 600x42
+      RenderText {#text} at (0,0) size 451x41
+        text run at (0,0) width 451: "Word selection on right click test"
+    RenderBlock (anonymous) at (6,69) size 600x84
+      RenderText {#text} at (0,0) size 556x42
+        text run at (0,0) width 556: "This tests to make sure that right clicking non-editable content only creates a word"
+        text run at (0,21) width 193: "selection for clicks over text. "
+      RenderInline {SPAN} at (0,0) size 19x21
+        RenderText {#text} at (193,21) size 19x21
+          text run at (193,21) width 19: "To"
+      RenderText {#text} at (212,21) size 590x63
+        text run at (212,21) width 377: " run manually, right click on text, and a word should be"
+        text run at (0,42) width 60: "selected. "
+        text run at (60,42) width 530: "Right click on the empty space outside and to the right of the black border, the"
+        text run at (0,63) width 193: "selection should be removed."
+      RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 0 {#text} of child 1 {H1} of body
diff --git a/LayoutTests/platform/qt/editing/selection/5497643-expected.checksum b/LayoutTests/platform/qt/editing/selection/5497643-expected.checksum
new file mode 100644
index 0000000..d63c220
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5497643-expected.checksum
@@ -0,0 +1 @@
+709ba1f234914601b115da25a54e0d3b
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5497643-expected.png b/LayoutTests/platform/qt/editing/selection/5497643-expected.png
new file mode 100644
index 0000000..bfc8daf
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5497643-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5714333-expected.checksum b/LayoutTests/platform/qt/editing/selection/5714333-expected.checksum
new file mode 100644
index 0000000..8b48cc8
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5714333-expected.checksum
@@ -0,0 +1 @@
+86b84fc9679d7587f9ea7429ec634f0d
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5714333-expected.png b/LayoutTests/platform/qt/editing/selection/5714333-expected.png
new file mode 100644
index 0000000..a4141ac
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5714333-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5779984-1-expected.checksum b/LayoutTests/platform/qt/editing/selection/5779984-1-expected.checksum
new file mode 100644
index 0000000..0056e6c
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5779984-1-expected.checksum
@@ -0,0 +1 @@
+018df52d64e36fd37170b301f9afd98e
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5779984-1-expected.png b/LayoutTests/platform/qt/editing/selection/5779984-1-expected.png
new file mode 100644
index 0000000..6f4b59d
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5779984-1-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5794920-1-expected.checksum b/LayoutTests/platform/qt/editing/selection/5794920-1-expected.checksum
new file mode 100644
index 0000000..898ad36
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5794920-1-expected.checksum
@@ -0,0 +1 @@
+f414232fd3a4d97c610c00eed42a7089
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5794920-1-expected.png b/LayoutTests/platform/qt/editing/selection/5794920-1-expected.png
new file mode 100644
index 0000000..7047c99
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5794920-1-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5825350-1-expected.checksum b/LayoutTests/platform/qt/editing/selection/5825350-1-expected.checksum
new file mode 100644
index 0000000..4005fe6
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5825350-1-expected.checksum
@@ -0,0 +1 @@
+b07788107f4f7c17e6d22f97ead8799e
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5825350-1-expected.png b/LayoutTests/platform/qt/editing/selection/5825350-1-expected.png
new file mode 100644
index 0000000..315ab1c
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5825350-1-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/5825350-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/5825350-2-expected.checksum
new file mode 100644
index 0000000..f89db13
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/5825350-2-expected.checksum
@@ -0,0 +1 @@
+8769a63d34aad6129bf26cc6f60c6f3c
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/5825350-2-expected.png b/LayoutTests/platform/qt/editing/selection/5825350-2-expected.png
new file mode 100644
index 0000000..35f9fee
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/5825350-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/6476-expected.checksum b/LayoutTests/platform/qt/editing/selection/6476-expected.checksum
new file mode 100644
index 0000000..6d19dab
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/6476-expected.checksum
@@ -0,0 +1 @@
+9d5ce4d659323516f790efd62138bc91
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/6476-expected.png b/LayoutTests/platform/qt/editing/selection/6476-expected.png
new file mode 100644
index 0000000..279c540
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/6476-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/6476-expected.txt b/LayoutTests/platform/qt/editing/selection/6476-expected.txt
index 96f23f3..b598a39 100644
--- a/LayoutTests/platform/qt/editing/selection/6476-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/6476-expected.txt
@@ -6,33 +6,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 784x578
-      RenderBlock {DIV} at (0,0) size 250x38
-        RenderText {#text} at (0,0) size 206x19
-          text run at (0,0) width 206: "Try to create a caret after this lin"
-        RenderInline {SPAN} at (0,0) size 8x19
-          RenderText {#text} at (206,0) size 8x19
-            text run at (206,0) width 8: "e"
-        RenderText {#text} at (214,0) size 4x19
-          text run at (214,0) width 4: " "
-        RenderInline {SPAN} at (0,0) size 0x19
-        RenderText {#text} at (0,19) size 184x19
-          text run at (0,19) width 184: "thisshouldbeonthesecondline"
-      RenderBlock {HR} at (0,45) size 784x2 [border: (1px inset #000000)]
-      RenderBlock {P} at (0,61) size 784x38
-        RenderText {#text} at (0,0) size 135x19
-          text run at (0,0) width 135: "This is a testcase for "
-        RenderInline {A} at (0,0) size 337x19 [color=#0000EE]
-          RenderText {#text} at (135,0) size 337x19
-            text run at (135,0) width 337: "http://bugzilla.opendarwin.org/show_bug.cgi?id=6476"
-        RenderText {#text} at (472,0) size 783x38
-          text run at (472,0) width 8: ". "
-          text run at (480,0) width 303: "Creating an upstream caret with the mouse was"
-          text run at (0,19) width 604: "impossible if the upstream and downstream carets were separated only by unrendered content."
-      RenderBlock {P} at (0,113) size 784x38
-        RenderText {#text} at (0,0) size 770x38
-          text run at (0,0) width 326: "This test uses the eventSender to do mouse clicks. "
-          text run at (326,0) width 444: "To run it manually, click in the space after all the text on the first line in"
-          text run at (0,19) width 169: "the above editable region. "
-          text run at (169,19) width 392: "Clicking should create a caret after the first space after the 'e'."
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 250x42
+        RenderText {#text} at (0,0) size 223x21
+          text run at (0,0) width 223: "Try to create a caret after this lin"
+        RenderInline {SPAN} at (0,0) size 7x21
+          RenderText {#text} at (223,0) size 7x21
+            text run at (223,0) width 7: "e"
+        RenderText {#text} at (230,0) size 4x21
+          text run at (230,0) width 4: " "
+        RenderInline {SPAN} at (0,0) size 0x21
+        RenderText {#text} at (0,21) size 193x21
+          text run at (0,21) width 193: "thisshouldbeonthesecondline"
+      RenderBlock {HR} at (0,50) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,68) size 784x42
+        RenderText {#text} at (0,0) size 139x21
+          text run at (0,0) width 139: "This is a testcase for "
+        RenderInline {A} at (0,0) size 365x21 [color=#0000EE]
+          RenderText {#text} at (139,0) size 365x21
+            text run at (139,0) width 365: "http://bugzilla.opendarwin.org/show_bug.cgi?id=6476"
+        RenderText {#text} at (504,0) size 758x42
+          text run at (504,0) width 8: ". "
+          text run at (512,0) width 246: "Creating an upstream caret with the"
+          text run at (0,21) width 718: "mouse was impossible if the upstream and downstream carets were separated only by unrendered content."
+      RenderBlock {P} at (0,126) size 784x42
+        RenderText {#text} at (0,0) size 773x42
+          text run at (0,0) width 336: "This test uses the eventSender to do mouse clicks. "
+          text run at (336,0) width 437: "To run it manually, click in the space after all the text on the first"
+          text run at (0,21) width 222: "line in the above editable region. "
+          text run at (222,21) width 418: "Clicking should create a caret after the first space after the 'e'."
 caret: position 1 of child 2 {#text} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/DOMSelection-DocumentType-expected.checksum b/LayoutTests/platform/qt/editing/selection/DOMSelection-DocumentType-expected.checksum
new file mode 100644
index 0000000..4f1fefe
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/DOMSelection-DocumentType-expected.checksum
@@ -0,0 +1 @@
+4f0147a173eb59cef67881f46684e302
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/DOMSelection-DocumentType-expected.png b/LayoutTests/platform/qt/editing/selection/DOMSelection-DocumentType-expected.png
new file mode 100644
index 0000000..37aff60
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/DOMSelection-DocumentType-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/DOMSelection-crossing-document-expected.checksum b/LayoutTests/platform/qt/editing/selection/DOMSelection-crossing-document-expected.checksum
new file mode 100644
index 0000000..f166e73
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/DOMSelection-crossing-document-expected.checksum
@@ -0,0 +1 @@
+fe8ecb749fd4a9b42cc005a918270fa9
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/DOMSelection-crossing-document-expected.png b/LayoutTests/platform/qt/editing/selection/DOMSelection-crossing-document-expected.png
new file mode 100644
index 0000000..abe7c77
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/DOMSelection-crossing-document-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/addRange-expected.checksum b/LayoutTests/platform/qt/editing/selection/addRange-expected.checksum
new file mode 100644
index 0000000..550a52f
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/addRange-expected.checksum
@@ -0,0 +1 @@
+445883e1ed0e58ba30e77e8a7bd3094e
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/addRange-expected.png b/LayoutTests/platform/qt/editing/selection/addRange-expected.png
new file mode 100644
index 0000000..3139628
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/addRange-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/addRange-expected.txt b/LayoutTests/platform/qt/editing/selection/addRange-expected.txt
index a7170eb..f84ccd8 100644
--- a/LayoutTests/platform/qt/editing/selection/addRange-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/addRange-expected.txt
@@ -3,14 +3,14 @@ layer 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 784x38
-        RenderText {#text} at (0,0) size 773x38
-          text run at (0,0) width 215: "This tests Selection::addRange(). "
-          text run at (215,0) width 558: "It should have no effect if the range passed to it does not intersect the currently selected"
-          text run at (0,19) width 45: "range. "
-          text run at (45,19) width 165: "'3456' should be selected."
-      RenderBlock {DIV} at (0,52) size 784x19
-        RenderText {#text} at (0,0) size 72x19
+      RenderBlock {P} at (0,0) size 784x42
+        RenderText {#text} at (0,0) size 755x42
+          text run at (0,0) width 225: "This tests Selection::addRange(). "
+          text run at (225,0) width 530: "It should have no effect if the range passed to it does not intersect the currently"
+          text run at (0,21) width 103: "selected range. "
+          text run at (103,21) width 169: "'3456' should be selected."
+      RenderBlock {DIV} at (0,58) size 784x21
+        RenderText {#text} at (0,0) size 72x21
           text run at (0,0) width 72: "123456789"
 selection start: position 2 of child 0 {#text} of child 2 {DIV} of body
 selection end:   position 6 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.checksum b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.checksum
new file mode 100644
index 0000000..91fbf69
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.checksum
@@ -0,0 +1 @@
+fec607d0f110c1c6a5865c9f19f8d4c6
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.png b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.png
new file mode 100644
index 0000000..6c15578
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt
index 8cc4b81..e25dca5 100644
--- a/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/after-line-wrap-expected.txt
@@ -9,32 +9,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 784x578
-      RenderBlock {P} at (0,0) size 784x39
-        RenderInline {B} at (0,0) size 306x20
-          RenderText {#text} at (0,0) size 306x20
-            text run at (0,0) width 306: "Make sure that your window is small enough"
-        RenderText {#text} at (306,0) size 771x39
-          text run at (306,0) width 465: " so that 'don't select this line' and 'try to select just this line' appear on two"
-          text run at (0,20) width 93: "different lines. "
-          text run at (93,20) width 627: "The two phrases are actually in the same paragraph, there are just lots of spaces in between them."
-      RenderBlock {P} at (0,53) size 784x38
-        RenderText {#text} at (0,0) size 105x19
-          text run at (0,0) width 105: "This is a test for "
-        RenderInline {A} at (0,0) size 363x19 [color=#0000EE]
-          RenderText {#text} at (105,0) size 363x19
-            text run at (105,0) width 363: "REGRESSION: Selection includes spaces that it shouldn't"
-        RenderText {#text} at (468,0) size 755x38
-          text run at (468,0) width 287: ". The test makes sure that a word that is right"
-          text run at (0,19) width 290: "after a line wrap can be selected successfully."
-      RenderBlock {P} at (0,105) size 784x0
-      RenderBlock {DIV} at (14,105) size 756x41 [border: (1px solid #000000)]
-        RenderText {#text} at (1,1) size 754x19
-          text run at (1,1) width 752: "don't select me                                                                                                                                                                    "
-          text run at (753,1) width 2: "                                                                                                                                                                                         "
-        RenderInline {I} at (0,0) size 152x19
-          RenderText {#text} at (1,20) size 152x19
-            text run at (1,20) width 152: "try to select just this text"
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x63
+        RenderInline {B} at (0,0) size 304x21
+          RenderText {#text} at (0,0) size 304x21
+            text run at (0,0) width 304: "Make sure that your window is small enough"
+        RenderText {#text} at (304,0) size 773x63
+          text run at (304,0) width 469: " so that 'don't select this line' and 'try to select just this line' appear on"
+          text run at (0,21) width 129: "two different lines. "
+          text run at (129,21) width 618: "The two phrases are actually in the same paragraph, there are just lots of spaces in between"
+          text run at (0,42) width 38: "them."
+      RenderBlock {P} at (0,79) size 784x42
+        RenderText {#text} at (0,0) size 111x21
+          text run at (0,0) width 111: "This is a test for "
+        RenderInline {A} at (0,0) size 392x21 [color=#0000EE]
+          RenderText {#text} at (111,0) size 392x21
+            text run at (111,0) width 392: "REGRESSION: Selection includes spaces that it shouldn't"
+        RenderText {#text} at (503,0) size 773x42
+          text run at (503,0) width 270: ". The test makes sure that a word that is"
+          text run at (0,21) width 339: "right after a line wrap can be selected successfully."
+      RenderBlock {P} at (0,137) size 784x0
+      RenderBlock {DIV} at (16,137) size 752x44 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 750x21
+          text run at (1,1) width 99: "don't select me"
+          text run at (100,1) width 651: "                                                                                                                                                                                                                                                                                                                                                             "
+        RenderInline {I} at (0,0) size 153x21
+          RenderText {#text} at (1,22) size 153x21
+            text run at (1,22) width 153: "try to select just this text"
         RenderText {#text} at (0,0) size 0x0
 selection start: position 0 of child 0 {#text} of child 1 {I} of child 7 {DIV} of body
 selection end:   position 3 of child 0 {#text} of child 1 {I} of child 7 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/anchor-focus1-expected.checksum b/LayoutTests/platform/qt/editing/selection/anchor-focus1-expected.checksum
new file mode 100644
index 0000000..2096613
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/anchor-focus1-expected.checksum
@@ -0,0 +1 @@
+0816ae9f5bffe4859f4e45de667d8d29
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/anchor-focus1-expected.png b/LayoutTests/platform/qt/editing/selection/anchor-focus1-expected.png
new file mode 100644
index 0000000..c1ec42a
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/anchor-focus1-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/anchor-focus2-expected.checksum b/LayoutTests/platform/qt/editing/selection/anchor-focus2-expected.checksum
new file mode 100644
index 0000000..f151c06
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/anchor-focus2-expected.checksum
@@ -0,0 +1 @@
+d593ea6bc379902dfb153f9ce37512f6
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/anchor-focus2-expected.png b/LayoutTests/platform/qt/editing/selection/anchor-focus2-expected.png
new file mode 100644
index 0000000..98f4b66
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/anchor-focus2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/anchor-focus3-expected.checksum b/LayoutTests/platform/qt/editing/selection/anchor-focus3-expected.checksum
new file mode 100644
index 0000000..259daf4
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/anchor-focus3-expected.checksum
@@ -0,0 +1 @@
+d109f2a64c51f8953260a9eec4eb8419
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/anchor-focus3-expected.png b/LayoutTests/platform/qt/editing/selection/anchor-focus3-expected.png
new file mode 100644
index 0000000..e4d15de
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/anchor-focus3-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/applystyle-to-inline-in-block-expected.checksum b/LayoutTests/platform/qt/editing/selection/applystyle-to-inline-in-block-expected.checksum
new file mode 100644
index 0000000..8375a69
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/applystyle-to-inline-in-block-expected.checksum
@@ -0,0 +1 @@
+31787f6013cc2a92be4732a234b93234
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/applystyle-to-inline-in-block-expected.png b/LayoutTests/platform/qt/editing/selection/applystyle-to-inline-in-block-expected.png
new file mode 100644
index 0000000..daaea99
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/applystyle-to-inline-in-block-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/blockquote-crash-expected.checksum b/LayoutTests/platform/qt/editing/selection/blockquote-crash-expected.checksum
new file mode 100644
index 0000000..6102e92
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/blockquote-crash-expected.checksum
@@ -0,0 +1 @@
+2ea237aaa2d9ae223cc80d28232cf8b0
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/blockquote-crash-expected.png b/LayoutTests/platform/qt/editing/selection/blockquote-crash-expected.png
new file mode 100644
index 0000000..6c924b0
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/blockquote-crash-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/button-right-click-expected.checksum b/LayoutTests/platform/qt/editing/selection/button-right-click-expected.checksum
new file mode 100644
index 0000000..7484c47
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/button-right-click-expected.checksum
@@ -0,0 +1 @@
+ffa37b4e8122414ebeb9e9a9917cc34c
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/button-right-click-expected.png b/LayoutTests/platform/qt/editing/selection/button-right-click-expected.png
new file mode 100644
index 0000000..053997b
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/button-right-click-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.checksum
index 6adba1f..6013528 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.checksum
+++ b/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.checksum
@@ -1 +1 @@
-7cdb1801b3edf82c7fe1f6983d816da6
\ No newline at end of file
+ed27bd2c44ed0471563cafd08e8f64f2
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.png b/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.png
index 884fc02..1797136 100644
Binary files a/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.png and b/LayoutTests/platform/qt/editing/selection/caret-and-focus-ring-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.checksum
new file mode 100644
index 0000000..d485918
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.checksum
@@ -0,0 +1 @@
+13b21b1b88817ff02ed996070e32c0bc
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.png b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.png
new file mode 100644
index 0000000..c2089d0
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt
index b0fa957..babadc6 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt
+++ b/LayoutTests/platform/qt/editing/selection/caret-before-select-expected.txt
@@ -3,11 +3,11 @@ layer 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 784x95 [border: (5px solid #FF0000)]
-        RenderMenuList {SELECT} at (35,35) size 74x25 [bgcolor=#FFFFFF]
-          RenderBlock (anonymous) at (8,4) size 42x19
-            RenderText at (0,0) size 27x19
-              text run at (0,0) width 27: "One"
-        RenderText {#text} at (111,39) size 27x19
-          text run at (111,39) width 27: "blaa"
+      RenderBlock {DIV} at (0,0) size 784x105 [border: (5px solid #FF0000)]
+        RenderMenuList {SELECT} at (39,39) size 74x27 [bgcolor=#FFFFFF]
+          RenderBlock (anonymous) at (8,4) size 42x21
+            RenderText at (0,0) size 28x21
+              text run at (0,0) width 28: "One"
+        RenderText {#text} at (115,43) size 29x21
+          text run at (115,43) width 29: "blaa"
 caret: position 0 of child 0 {SELECT} of child 0 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.checksum
index 0d02b07..dfcdbed 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.checksum
+++ b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.checksum
@@ -1 +1 @@
-9b433b6bffa3b364c7cfc86a4d4598a6
\ No newline at end of file
+e0b090009a8cb487d6416b3a8ef739fd
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.png b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.png
index 00e1bcc..901ebdd 100644
Binary files a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.png and b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.checksum
index bb364c7..e7181b9 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.checksum
+++ b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.checksum
@@ -1 +1 @@
-c436fe2c4f0b14e3b6538e522efaa396
\ No newline at end of file
+e5d0f497afaf873869bb28ea2a491f3e
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.png b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.png
index ac32325..968fbdf 100644
Binary files a/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.png and b/LayoutTests/platform/qt/editing/selection/caret-ltr-2-left-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.checksum
index 05d8441..3deb659 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.checksum
+++ b/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.checksum
@@ -1 +1 @@
-887b0c97e497ef69eeea7abd11af1ddd
\ No newline at end of file
+8259f0d965c6a27c1456a17ee101506d
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.png b/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.png
index acd5b54..83b9fdc 100644
Binary files a/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.png and b/LayoutTests/platform/qt/editing/selection/caret-ltr-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.checksum
index 1bce5d4..789b4a6 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.checksum
+++ b/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.checksum
@@ -1 +1 @@
-78a66f85ce43514858ad8aafe8d35b4f
\ No newline at end of file
+8127e905ab8d227938b518a3ebeddfcf
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.png b/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.png
index 8da4a38..be6dfed 100644
Binary files a/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.png and b/LayoutTests/platform/qt/editing/selection/caret-ltr-right-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-mode-paragraph-keys-navigation-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-mode-paragraph-keys-navigation-expected.checksum
new file mode 100644
index 0000000..ee4c5bc
--- /dev/null
+++ b/LayoutTests/platform/qt/editing/selection/caret-mode-paragraph-keys-navigation-expected.checksum
@@ -0,0 +1 @@
+8fa05802ca7bc4fc4e62f4214a32ec6a
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-mode-paragraph-keys-navigation-expected.png b/LayoutTests/platform/qt/editing/selection/caret-mode-paragraph-keys-navigation-expected.png
new file mode 100644
index 0000000..a6e4072
Binary files /dev/null and b/LayoutTests/platform/qt/editing/selection/caret-mode-paragraph-keys-navigation-expected.png differ
diff --git a/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.checksum b/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.checksum
index 3ad00d5..2c8ac45 100644
--- a/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.checksum
+++ b/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.checksum
@@ -1 +1 @@
-3f7def41a0261620949296a07c95b720
\ No newline at end of file
+e7fa68d8713737444bdd642fe2756dd7
\ No newline at end of file
diff --git a/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.png b/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.png
index 5270051..d35f560 100644
Binary files a/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.png and b/LayoutTests/platform/qt/editing/selection/caret-rtl-2-left-expected.png differ

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list