Changeset 278974 in webkit
- Timestamp:
- Jun 16, 2021 10:39:51 PM (13 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 deleted
- 96 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/pasteboard/createMarkup-assert-expected.txt (deleted)
-
LayoutTests/editing/pasteboard/createMarkup-assert.xml (deleted)
-
LayoutTests/fast/dom/Document/document-execcommand-expected.txt (added)
-
LayoutTests/fast/dom/Document/document-execcommand.html (added)
-
LayoutTests/platform/ios/svg/text/foreignObject-repaint-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/foreignObject-text-clipping-bug-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-align-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-align-02-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-align-03-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-align-04-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-align-05-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-align-06-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-altglyph-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-deco-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-fonts-01-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-fonts-02-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-intro-05-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-path-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-spacing-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-text-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-text-03-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-text-04-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-text-05-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-text-06-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-text-07-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-text-08-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-tref-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-tselect-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-tspan-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-ws-01-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/text/text-ws-02-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/foreignObject-repaint-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-align-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-align-02-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-align-03-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-align-04-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-align-05-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-align-06-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-altglyph-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-deco-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-fonts-01-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-fonts-02-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-intro-05-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-path-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-spacing-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-text-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-text-03-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-text-04-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-text-05-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-text-06-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-text-07-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-text-08-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-tref-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-tselect-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-tspan-01-b-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-ws-01-t-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/text/text-ws-02-t-expected.txt (modified) (1 diff)
-
LayoutTests/svg/custom/bug78838.html (modified) (1 diff)
-
LayoutTests/svg/custom/bug79798.html (modified) (1 diff)
-
LayoutTests/svg/custom/delete-modified-text-in-defs-crash.svg (modified) (1 diff)
-
LayoutTests/svg/custom/layout-loop.svg (modified) (1 diff)
-
LayoutTests/svg/text/foreignObject-repaint.xml (modified) (1 diff)
-
LayoutTests/svg/text/foreignObject-text-clipping-bug.xml (modified) (1 diff)
-
LayoutTests/svg/text/text-align-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-align-02-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-align-03-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-align-04-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-align-05-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-align-06-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-altglyph-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-deco-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-fonts-01-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-fonts-02-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-intro-05-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-path-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-positioning-remove-child-crash.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-spacing-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-text-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-text-03-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-text-04-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-text-05-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-text-06-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-text-07-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-text-08-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-tref-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-tselect-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-tselect-02-f.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-tspan-01-b.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-ws-01-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/text-ws-02-t.svg (modified) (1 diff)
-
LayoutTests/svg/text/textPathBoundsBug-expected.txt (modified) (1 diff)
-
LayoutTests/svg/text/textPathBoundsBug.svg (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (1 diff)
-
Source/WebCore/dom/Document.h (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentGtk.cpp (modified) (6 diffs)
-
Source/WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/mac/DOM/DOMDocument.mm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r278969 r278974 1 2021-06-16 Chris Dumez <cdumez@apple.com> 2 3 Document's execCommand() / queryCommand*() should throw an exception on non-HTML/XHTML documents 4 https://bugs.webkit.org/show_bug.cgi?id=227016 5 6 Reviewed by Darin Adler. 7 8 * fast/dom/Document/document-execcommand-expected.txt: Added. 9 * fast/dom/Document/document-execcommand.html: Added. 10 Add layout test coverage. 11 12 * editing/pasteboard/createMarkup-assert-expected.txt: Removed. 13 * editing/pasteboard/createMarkup-assert.xml: Removed. 14 * platform/mac/svg/text/foreignObject-repaint-expected.txt: 15 * platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt: 16 * platform/mac/svg/text/text-align-01-b-expected.txt: 17 * platform/mac/svg/text/text-align-02-b-expected.txt: 18 * platform/mac/svg/text/text-align-03-b-expected.txt: 19 * platform/mac/svg/text/text-align-04-b-expected.txt: 20 * platform/mac/svg/text/text-align-05-b-expected.txt: 21 * platform/mac/svg/text/text-align-06-b-expected.txt: 22 * platform/mac/svg/text/text-deco-01-b-expected.txt: 23 * platform/mac/svg/text/text-fonts-01-t-expected.txt: 24 * platform/mac/svg/text/text-fonts-02-t-expected.txt: 25 * platform/mac/svg/text/text-intro-05-t-expected.txt: 26 * platform/mac/svg/text/text-path-01-b-expected.txt: 27 * platform/mac/svg/text/text-spacing-01-b-expected.txt: 28 * platform/mac/svg/text/text-text-01-b-expected.txt: 29 * platform/mac/svg/text/text-text-03-b-expected.txt: 30 * platform/mac/svg/text/text-text-04-t-expected.txt: 31 * platform/mac/svg/text/text-text-05-t-expected.txt: 32 * platform/mac/svg/text/text-text-07-t-expected.txt: 33 * platform/mac/svg/text/text-text-08-b-expected.txt: 34 * platform/mac/svg/text/text-tref-01-b-expected.txt: 35 * platform/mac/svg/text/text-tselect-01-b-expected.txt: 36 * platform/mac/svg/text/text-tselect-02-f-expected.txt: 37 * platform/mac/svg/text/text-tspan-01-b-expected.txt: 38 * svg/custom/bug78838-expected.txt: 39 * svg/custom/bug79798-expected.txt: 40 * svg/custom/delete-modified-text-in-defs-crash.svg: 41 * svg/custom/layout-loop-expected.txt: 42 * svg/text/text-positioning-remove-child-crash.svg: 43 Rebaseline / update existing tests due to behavior change. 44 1 45 2021-06-16 Cameron McCormack <heycam@apple.com> 2 46 -
trunk/LayoutTests/platform/ios/svg/text/foreignObject-repaint-expected.txt
r174533 r278974 9 9 text run at (0,62) width 475: "the mouse, it should" 10 10 text run at (0,124) width 336: "not disappear!" 11 caret: position 34 of child 0 {#text} of child 1 {div} of child 1 {foreignObject} of child 0 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/foreignObject-text-clipping-bug-expected.txt
r174533 r278974 20 20 RenderText {#text} at (0,2) size 239x112 21 21 text run at (0,2) width 239: "TEST" 22 selection start: position 0 of child 0 {#text} of child 1 {p} of body23 selection end: position 4 of child 0 {#text} of child 1 {div} of child 5 {div} of body -
trunk/LayoutTests/platform/ios/svg/text/text-align-01-b-expected.txt
r205001 r278974 36 36 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 37 37 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 38 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document39 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-align-02-b-expected.txt
r205001 r278974 42 42 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 43 43 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 44 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document45 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-align-03-b-expected.txt
r205001 r278974 22 22 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 23 23 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 24 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 28 {svg} of document25 selection end: position 16 of child 0 {#text} of child 15 {text} of child 28 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-align-04-b-expected.txt
r205001 r278974 59 59 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 60 60 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 61 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 28 {svg} of document62 selection end: position 16 of child 0 {#text} of child 15 {text} of child 28 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-align-05-b-expected.txt
r205001 r278974 39 39 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 40 40 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 41 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document42 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-align-06-b-expected.txt
r207778 r278974 66 66 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 67 67 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 68 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document69 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-altglyph-01-b-expected.txt
r229202 r278974 49 49 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 50 50 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 51 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 32 {svg} of document52 selection end: position 16 of child 0 {#text} of child 15 {text} of child 32 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-deco-01-b-expected.txt
r205001 r278974 46 46 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.9 $" 47 47 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 48 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 14 {svg} of document49 selection end: position 16 of child 0 {#text} of child 15 {text} of child 14 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-fonts-01-t-expected.txt
r205001 r278974 31 31 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.5 $" 32 32 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 33 selection start: position 0 of child 0 {#text} of child 1 {text} of child 1 {g} of child 13 {g} of child 34 {svg} of document34 selection end: position 16 of child 0 {#text} of child 15 {text} of child 34 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-fonts-02-t-expected.txt
r205001 r278974 49 49 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.7 $" 50 50 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 51 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 17 {svg} of document52 selection end: position 16 of child 0 {#text} of child 15 {text} of child 17 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-intro-05-t-expected.txt
r205001 r278974 17 17 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.4 $" 18 18 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 19 selection start: position 0 of child 0 {#text} of child 1 {text} of child 33 {g} of child 0 {svg} of document20 selection end: position 16 of child 0 {#text} of child 35 {text} of child 0 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-path-01-b-expected.txt
r217772 r278974 95 95 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.9 $" 96 96 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 97 selection start: position 0 of child 0 {#text} of child 1 {textPath} of child 3 {text} of child 3 {g} of child 13 {g} of child 30 {svg} of document98 selection end: position 16 of child 0 {#text} of child 15 {text} of child 30 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-spacing-01-b-expected.txt
r205001 r278974 65 65 chunk 1 text run 1 at (5.00,57.00) startOffset 0 endOffset 16 width 39.50: "$Revision: 1.6 $" 66 66 RenderSVGRect {rect} at (5,5) size 790x590 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=78.00] [height=58.00] 67 selection start: position 1 of child 0 {#text} of child 1 {text} of child 1 {g} of child 13 {g} of child 19 {svg} of document68 selection end: position 16 of child 0 {#text} of child 15 {text} of child 19 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-text-01-b-expected.txt
r205001 r278974 202 202 chunk 1 text run 1 at (5.00,117.00) startOffset 0 endOffset 16 width 52.67: "$Revision: 1.7 $" 203 203 RenderSVGRect {rect} at (2,2) size 796x596 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=158.00] [height=118.00] 204 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 26 {svg} of document205 selection end: position 16 of child 0 {#text} of child 15 {text} of child 26 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-text-03-b-expected.txt
r205001 r278974 38 38 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.8 $" 39 39 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 40 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 32 {svg} of document41 selection end: position 16 of child 0 {#text} of child 15 {text} of child 32 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-text-04-t-expected.txt
r205001 r278974 243 243 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 17 width 282.63: "$Revision: 1.13 $" 244 244 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 245 selection start: position 0 of child 0 {#text} of child 1 {text} of child 1 {g} of child 15 {g} of child 15 {svg} of document246 selection end: position 17 of child 0 {#text} of child 17 {text} of child 15 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-text-05-t-expected.txt
r205001 r278974 547 547 chunk 1 text run 1 at (10.00,350.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.8 $" 548 548 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 549 selection start: position 0 of child 0 {#text} of child 1 {text} of child 5 {g} of child 15 {g} of child 9 {svg} of document550 selection end: position 16 of child 0 {#text} of child 17 {text} of child 9 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-text-06-t-expected.txt
r205001 r278974 123 123 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.9 $" 124 124 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 125 selection start: position 0 of child 0 {#text} of child 1 {text} of child 1 {g} of child 5 {g} of child 3 {g} of child 12 {svg} of document126 selection end: position 16 of child 0 {#text} of child 5 {text} of child 12 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-text-07-t-expected.txt
r205001 r278974 41 41 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.8 $" 42 42 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 43 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 9 {svg} of document44 selection end: position 16 of child 0 {#text} of child 15 {text} of child 9 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-text-08-b-expected.txt
r205001 r278974 20 20 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.3 $" 21 21 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 22 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 14 {svg} of document23 selection end: position 16 of child 0 {#text} of child 15 {text} of child 14 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-tref-01-b-expected.txt
r205001 r278974 18 18 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.6 $" 19 19 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 20 selection start: position 0 of child 0 {#text} of child 3 {text} of child 13 {g} of child 30 {svg} of document21 selection end: position 16 of child 0 {#text} of child 15 {text} of child 30 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-tselect-01-b-expected.txt
r205001 r278974 44 44 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.8 $" 45 45 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 46 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 25 {svg} of document47 selection end: position 16 of child 0 {#text} of child 5 {text} of child 13 {g} of child 25 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-tspan-01-b-expected.txt
r205001 r278974 81 81 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.7 $" 82 82 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 83 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 35 {svg} of document84 selection end: position 16 of child 0 {#text} of child 15 {text} of child 35 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-ws-01-t-expected.txt
r205001 r278974 34 34 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.7 $" 35 35 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 36 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 29 {svg} of document37 selection end: position 16 of child 0 {#text} of child 15 {text} of child 29 {svg} of document -
trunk/LayoutTests/platform/ios/svg/text/text-ws-02-t-expected.txt
r205001 r278974 34 34 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 262.68: "$Revision: 1.8 $" 35 35 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 36 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 29 {svg} of document37 selection end: position 16 of child 0 {#text} of child 15 {text} of child 29 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/foreignObject-repaint-expected.txt
r177774 r278974 9 9 text run at (0,61) width 475: "the mouse, it should" 10 10 text run at (0,122) width 336: "not disappear!" 11 caret: position 34 of child 0 {#text} of child 1 {div} of child 1 {foreignObject} of child 0 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/foreignObject-text-clipping-bug-expected.txt
r177774 r278974 20 20 RenderText {#text} at (0,0) size 239x115 21 21 text run at (0,0) width 239: "TEST" 22 selection start: position 0 of child 0 {#text} of child 1 {p} of body23 selection end: position 4 of child 0 {#text} of child 1 {div} of child 5 {div} of body -
trunk/LayoutTests/platform/mac/svg/text/text-align-01-b-expected.txt
r177774 r278974 36 36 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 37 37 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 38 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document39 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-align-02-b-expected.txt
r177774 r278974 42 42 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 43 43 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 44 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document45 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-align-03-b-expected.txt
r177774 r278974 22 22 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 23 23 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 24 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 28 {svg} of document25 selection end: position 16 of child 0 {#text} of child 15 {text} of child 28 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-align-04-b-expected.txt
r177774 r278974 59 59 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 60 60 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 61 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 28 {svg} of document62 selection end: position 16 of child 0 {#text} of child 15 {text} of child 28 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-align-05-b-expected.txt
r177774 r278974 39 39 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 40 40 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 41 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document42 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-align-06-b-expected.txt
r207757 r278974 66 66 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 67 67 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 68 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 27 {svg} of document69 selection end: position 16 of child 0 {#text} of child 15 {text} of child 27 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-altglyph-01-b-expected.txt
r177774 r278974 49 49 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 50 50 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 51 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 32 {svg} of document52 selection end: position 16 of child 0 {#text} of child 15 {text} of child 32 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-deco-01-b-expected.txt
r177774 r278974 46 46 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.9 $" 47 47 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 48 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 14 {svg} of document49 selection end: position 16 of child 0 {#text} of child 15 {text} of child 14 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-fonts-01-t-expected.txt
r177774 r278974 31 31 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.5 $" 32 32 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 33 selection start: position 0 of child 0 {#text} of child 1 {text} of child 1 {g} of child 13 {g} of child 34 {svg} of document34 selection end: position 16 of child 0 {#text} of child 15 {text} of child 34 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-fonts-02-t-expected.txt
r177774 r278974 49 49 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.7 $" 50 50 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 51 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 17 {svg} of document52 selection end: position 16 of child 0 {#text} of child 15 {text} of child 17 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-intro-05-t-expected.txt
r187126 r278974 17 17 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.4 $" 18 18 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 19 selection start: position 0 of child 0 {#text} of child 1 {text} of child 33 {g} of child 0 {svg} of document20 selection end: position 16 of child 0 {#text} of child 35 {text} of child 0 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-path-01-b-expected.txt
r217772 r278974 95 95 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.9 $" 96 96 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 97 selection start: position 0 of child 0 {#text} of child 1 {textPath} of child 3 {text} of child 3 {g} of child 13 {g} of child 30 {svg} of document98 selection end: position 16 of child 0 {#text} of child 15 {text} of child 30 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-spacing-01-b-expected.txt
r177774 r278974 65 65 chunk 1 text run 1 at (5.00,57.00) startOffset 0 endOffset 16 width 39.50: "$Revision: 1.6 $" 66 66 RenderSVGRect {rect} at (5,5) size 790x590 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=78.00] [height=58.00] 67 selection start: position 1 of child 0 {#text} of child 1 {text} of child 1 {g} of child 13 {g} of child 19 {svg} of document68 selection end: position 16 of child 0 {#text} of child 15 {text} of child 19 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-text-01-b-expected.txt
r177774 r278974 202 202 chunk 1 text run 1 at (5.00,117.00) startOffset 0 endOffset 16 width 52.67: "$Revision: 1.7 $" 203 203 RenderSVGRect {rect} at (2,2) size 796x596 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=158.00] [height=118.00] 204 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 26 {svg} of document205 selection end: position 16 of child 0 {#text} of child 15 {text} of child 26 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-text-03-b-expected.txt
r177774 r278974 38 38 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.8 $" 39 39 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 40 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 32 {svg} of document41 selection end: position 16 of child 0 {#text} of child 15 {text} of child 32 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-text-04-t-expected.txt
r177774 r278974 243 243 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 17 width 284.76: "$Revision: 1.13 $" 244 244 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 245 selection start: position 0 of child 0 {#text} of child 1 {text} of child 1 {g} of child 15 {g} of child 15 {svg} of document246 selection end: position 17 of child 0 {#text} of child 17 {text} of child 15 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-text-05-t-expected.txt
r177774 r278974 547 547 chunk 1 text run 1 at (10.00,350.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.8 $" 548 548 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 549 selection start: position 0 of child 0 {#text} of child 1 {text} of child 5 {g} of child 15 {g} of child 9 {svg} of document550 selection end: position 16 of child 0 {#text} of child 17 {text} of child 9 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-text-06-t-expected.txt
r177774 r278974 120 120 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.9 $" 121 121 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 122 selection start: position 0 of child 0 {#text} of child 1 {text} of child 1 {g} of child 5 {g} of child 3 {g} of child 12 {svg} of document123 selection end: position 16 of child 0 {#text} of child 5 {text} of child 12 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-text-07-t-expected.txt
r177774 r278974 41 41 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.8 $" 42 42 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 43 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 9 {svg} of document44 selection end: position 16 of child 0 {#text} of child 15 {text} of child 9 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-text-08-b-expected.txt
r177774 r278974 20 20 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.3 $" 21 21 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 22 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 14 {svg} of document23 selection end: position 16 of child 0 {#text} of child 15 {text} of child 14 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-tref-01-b-expected.txt
r177774 r278974 18 18 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.6 $" 19 19 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 20 selection start: position 0 of child 0 {#text} of child 3 {text} of child 13 {g} of child 30 {svg} of document21 selection end: position 16 of child 0 {#text} of child 15 {text} of child 30 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-tselect-01-b-expected.txt
r177774 r278974 44 44 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.8 $" 45 45 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 46 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 25 {svg} of document47 selection end: position 16 of child 0 {#text} of child 5 {text} of child 13 {g} of child 25 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-tspan-01-b-expected.txt
r177774 r278974 81 81 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.7 $" 82 82 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 83 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 35 {svg} of document84 selection end: position 16 of child 0 {#text} of child 15 {text} of child 35 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-ws-01-t-expected.txt
r177774 r278974 34 34 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.7 $" 35 35 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 36 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 29 {svg} of document37 selection end: position 16 of child 0 {#text} of child 15 {text} of child 29 {svg} of document -
trunk/LayoutTests/platform/mac/svg/text/text-ws-02-t-expected.txt
r177774 r278974 34 34 chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.66: "$Revision: 1.8 $" 35 35 RenderSVGRect {rect} at (0,0) size 800x600 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00] 36 selection start: position 0 of child 0 {#text} of child 1 {text} of child 13 {g} of child 29 {svg} of document37 selection end: position 16 of child 0 {#text} of child 15 {text} of child 29 {svg} of document -
trunk/LayoutTests/svg/custom/bug78838.html
r124380 r278974 10 10 11 11 document.designMode = 'on'; 12 q.execCommand('selectAll');13 q.execCommand('insertImage');14 12 q.getElementById('x').appendChild( q.firstChild.cloneNode(1) ); 15 q.execCommand('undo');16 13 } 17 14 </script> -
trunk/LayoutTests/svg/custom/bug79798.html
r124380 r278974 16 16 17 17 document.designMode = 'on'; 18 q.execCommand('formatBlock', 1, 'h1');19 q.execCommand('formatBlock', 1, 'h1');20 q.execCommand('formatBlock', 1, 'h1');21 18 document.open(); 22 19 } -
trunk/LayoutTests/svg/custom/delete-modified-text-in-defs-crash.svg
r124380 r278974 8 8 <g><rect id="legendbox"/></g> 9 9 <script><![CDATA[ 10 document.execCommand("SelectAll");11 10 elem = document.getElementById("tspan1"); 12 11 elem.removeAttribute("x"); -
trunk/LayoutTests/svg/custom/layout-loop.svg
r124380 r278974 24 24 if (window.testRunner) 25 25 testRunner.dumpAsText(); 26 document.execCommand("SelectAll");27 26 range = document.createRange(); 28 27 range.setStartBefore(document.getElementById("stop")); -
trunk/LayoutTests/svg/text/foreignObject-repaint.xml
r43173 r278974 7 7 <script> 8 8 if (window.eventSender) { 9 document.execCommand("SelectAll");10 9 eventSender.mouseMoveTo(200, 200); 11 10 eventSender.mouseDown(); -
trunk/LayoutTests/svg/text/foreignObject-text-clipping-bug.xml
r124380 r278974 23 23 if (window.testRunner) 24 24 window.testRunner.dumpSelectionRect(); 25 document.execCommand("SelectAll");26 25 </script> 27 26 </body> -
trunk/LayoutTests/svg/text/text-align-01-b.svg
r124380 r278974 76 76 if (window.testRunner) 77 77 window.testRunner.dumpSelectionRect(); 78 document.execCommand("SelectAll");79 78 </script> 80 79 </svg> -
trunk/LayoutTests/svg/text/text-align-02-b.svg
r124380 r278974 65 65 if (window.testRunner) 66 66 window.testRunner.dumpSelectionRect(); 67 document.execCommand("SelectAll");68 67 </script> 69 68 </svg> -
trunk/LayoutTests/svg/text/text-align-03-b.svg
r124380 r278974 70 70 if (window.testRunner) 71 71 window.testRunner.dumpSelectionRect(); 72 document.execCommand("SelectAll");73 72 </script> 74 73 </svg> -
trunk/LayoutTests/svg/text/text-align-04-b.svg
r124380 r278974 82 82 if (window.testRunner) 83 83 window.testRunner.dumpSelectionRect(); 84 document.execCommand("SelectAll");85 84 </script> 86 85 </svg> -
trunk/LayoutTests/svg/text/text-align-05-b.svg
r124380 r278974 72 72 if (window.testRunner) 73 73 window.testRunner.dumpSelectionRect(); 74 document.execCommand("SelectAll");75 74 </script> 76 75 </svg> -
trunk/LayoutTests/svg/text/text-align-06-b.svg
r124380 r278974 63 63 if (window.testRunner) 64 64 window.testRunner.dumpSelectionRect(); 65 document.execCommand("SelectAll");66 65 </script> 67 66 </svg> -
trunk/LayoutTests/svg/text/text-altglyph-01-b.svg
r124380 r278974 130 130 if (window.testRunner) 131 131 window.testRunner.dumpSelectionRect(); 132 document.execCommand("SelectAll");133 132 </script> 134 133 </svg> -
trunk/LayoutTests/svg/text/text-deco-01-b.svg
r124380 r278974 65 65 if (window.testRunner) 66 66 window.testRunner.dumpSelectionRect(); 67 document.execCommand("SelectAll");68 67 </script> 69 68 </svg> -
trunk/LayoutTests/svg/text/text-fonts-01-t.svg
r202474 r278974 98 98 if (window.testRunner) 99 99 window.testRunner.dumpSelectionRect(); 100 document.execCommand("SelectAll");101 100 </script> 102 101 </svg> -
trunk/LayoutTests/svg/text/text-fonts-02-t.svg
r124380 r278974 74 74 if (window.testRunner) 75 75 window.testRunner.dumpSelectionRect(); 76 document.execCommand("SelectAll");77 76 </script> 78 77 </svg> -
trunk/LayoutTests/svg/text/text-intro-05-t.svg
r124380 r278974 40 40 if (window.testRunner) 41 41 window.testRunner.dumpSelectionRect(); 42 document.execCommand("SelectAll");43 42 </script> 44 43 </svg> -
trunk/LayoutTests/svg/text/text-path-01-b.svg
r124380 r278974 83 83 if (window.testRunner) 84 84 window.testRunner.dumpSelectionRect(); 85 document.execCommand("SelectAll");86 85 </script> 87 86 </svg> -
trunk/LayoutTests/svg/text/text-positioning-remove-child-crash.svg
r124380 r278974 8 8 9 9 <script><![CDATA[ 10 document.execCommand("SelectAll");11 10 document.getElementById("a").textContent = "PASS"; 12 11 ]]></script> -
trunk/LayoutTests/svg/text/text-spacing-01-b.svg
r124380 r278974 55 55 if (window.testRunner) 56 56 window.testRunner.dumpSelectionRect(); 57 document.execCommand("SelectAll");58 57 </script> 59 58 </svg> -
trunk/LayoutTests/svg/text/text-text-01-b.svg
r124380 r278974 211 211 if (window.testRunner) 212 212 window.testRunner.dumpSelectionRect(); 213 document.execCommand("SelectAll");214 213 </script> 215 214 </svg> -
trunk/LayoutTests/svg/text/text-text-03-b.svg
r124380 r278974 69 69 if (window.testRunner) 70 70 window.testRunner.dumpSelectionRect(); 71 document.execCommand("SelectAll");72 71 </script> 73 72 </svg> -
trunk/LayoutTests/svg/text/text-text-04-t.svg
r124380 r278974 212 212 if (window.testRunner) 213 213 window.testRunner.dumpSelectionRect(); 214 document.execCommand("SelectAll");215 214 </script> 216 215 </svg> -
trunk/LayoutTests/svg/text/text-text-05-t.svg
r124380 r278974 165 165 166 166 function repaintTest() { 167 document.execCommand("SelectAll");168 167 } 169 168 </script> -
trunk/LayoutTests/svg/text/text-text-06-t.svg
r124380 r278974 104 104 if (window.testRunner) 105 105 window.testRunner.dumpSelectionRect(); 106 document.execCommand("SelectAll");107 106 </script> 108 107 </svg> -
trunk/LayoutTests/svg/text/text-text-07-t.svg
r124380 r278974 43 43 if (window.testRunner) 44 44 window.testRunner.dumpSelectionRect(); 45 document.execCommand("SelectAll");46 45 </script> 47 46 </svg> -
trunk/LayoutTests/svg/text/text-text-08-b.svg
r124380 r278974 50 50 if (window.testRunner) 51 51 window.testRunner.dumpSelectionRect(); 52 document.execCommand("SelectAll");53 52 </script> 54 53 </svg> -
trunk/LayoutTests/svg/text/text-tref-01-b.svg
r124380 r278974 82 82 if (window.testRunner) 83 83 window.testRunner.dumpSelectionRect(); 84 document.execCommand("SelectAll");85 84 </script> 86 85 </svg> -
trunk/LayoutTests/svg/text/text-tselect-01-b.svg
r124380 r278974 72 72 if (window.testRunner) 73 73 window.testRunner.dumpSelectionRect(); 74 document.execCommand("SelectAll");75 74 </script> 76 75 </svg> -
trunk/LayoutTests/svg/text/text-tselect-02-f.svg
r124380 r278974 135 135 if (window.testRunner) 136 136 window.testRunner.dumpSelectionRect(); 137 document.execCommand("SelectAll");138 137 </script> 139 138 </svg> -
trunk/LayoutTests/svg/text/text-tspan-01-b.svg
r124380 r278974 88 88 if (window.testRunner) 89 89 window.testRunner.dumpSelectionRect(); 90 document.execCommand("SelectAll");91 90 </script> 92 91 </svg> -
trunk/LayoutTests/svg/text/text-ws-01-t.svg
r124380 r278974 99 99 if (window.testRunner) 100 100 window.testRunner.dumpSelectionRect(); 101 document.execCommand("SelectAll");102 101 </script> 103 102 </svg> -
trunk/LayoutTests/svg/text/text-ws-02-t.svg
r124380 r278974 104 104 if (window.testRunner) 105 105 window.testRunner.dumpSelectionRect(); 106 document.execCommand("SelectAll");107 106 </script> 108 107 </svg> -
trunk/LayoutTests/svg/text/textPathBoundsBug-expected.txt
r177774 r278974 12 12 chunk 1 (middle anchor) text run 4 at (123.36,100.00) startOffset 7 endOffset 8 width 6.67: "8" 13 13 RenderSVGInlineText {#text} at (0,0) size 0x0 14 selection start: position 0 of child 0 {#text} of child 1 {textPath} of child 3 {text} of child 0 {svg} of document15 selection end: position 8 of child 0 {#text} of child 1 {textPath} of child 3 {text} of child 0 {svg} of document -
trunk/LayoutTests/svg/text/textPathBoundsBug.svg
r124380 r278974 9 9 if (window.testRunner) 10 10 window.testRunner.dumpSelectionRect(); 11 document.execCommand("SelectAll");12 11 </script> 13 12 </svg> -
trunk/Source/WebCore/ChangeLog
r278969 r278974 1 2021-06-16 Chris Dumez <cdumez@apple.com> 2 3 Document's execCommand() / queryCommand*() should throw an exception on non-HTML/XHTML documents 4 https://bugs.webkit.org/show_bug.cgi?id=227016 5 6 Reviewed by Darin Adler. 7 8 Update Document's execCommand() / queryCommand*() to throw an InvalidStateError when the document 9 is not an HTML/XHTML document. This matches Blink's behavior. Firefox is even stricter and throws 10 for all non HTML documents (including XHTML). 11 12 Test: fast/dom/Document/document-execcommand.html 13 14 * dom/Document.cpp: 15 (WebCore::Document::execCommand): 16 (WebCore::Document::queryCommandEnabled): 17 (WebCore::Document::queryCommandIndeterm): 18 (WebCore::Document::queryCommandState): 19 (WebCore::Document::queryCommandSupported): 20 (WebCore::Document::queryCommandValue): 21 * dom/Document.h: 22 1 23 2021-06-16 Cameron McCormack <heycam@apple.com> 2 24 -
trunk/Source/WebCore/dom/Document.cpp
r278947 r278974 5752 5752 } 5753 5753 5754 bool Document::execCommand(const String& commandName, bool userInterface, const String& value) 5755 { 5754 ExceptionOr<bool> Document::execCommand(const String& commandName, bool userInterface, const String& value) 5755 { 5756 if (UNLIKELY(!isHTMLDocument() && !isXHTMLDocument())) 5757 return Exception { InvalidStateError, "execCommand is only supported on HTML documents." }; 5758 5756 5759 EventQueueScope eventQueueScope; 5757 5760 return command(this, commandName, userInterface).execute(value); 5758 5761 } 5759 5762 5760 bool Document::queryCommandEnabled(const String& commandName) 5761 { 5763 ExceptionOr<bool> Document::queryCommandEnabled(const String& commandName) 5764 { 5765 if (UNLIKELY(!isHTMLDocument() && !isXHTMLDocument())) 5766 return Exception { InvalidStateError, "queryCommandEnabled is only supported on HTML documents." }; 5762 5767 return command(this, commandName).isEnabled(); 5763 5768 } 5764 5769 5765 bool Document::queryCommandIndeterm(const String& commandName) 5766 { 5770 ExceptionOr<bool> Document::queryCommandIndeterm(const String& commandName) 5771 { 5772 if (UNLIKELY(!isHTMLDocument() && !isXHTMLDocument())) 5773 return Exception { InvalidStateError, "queryCommandIndeterm is only supported on HTML documents." }; 5767 5774 return command(this, commandName).state() == TriState::Indeterminate; 5768 5775 } 5769 5776 5770 bool Document::queryCommandState(const String& commandName) 5771 { 5777 ExceptionOr<bool> Document::queryCommandState(const String& commandName) 5778 { 5779 if (UNLIKELY(!isHTMLDocument() && !isXHTMLDocument())) 5780 return Exception { InvalidStateError, "queryCommandState is only supported on HTML documents." }; 5772 5781 return command(this, commandName).state() == TriState::True; 5773 5782 } 5774 5783 5775 bool Document::queryCommandSupported(const String& commandName) 5776 { 5784 ExceptionOr<bool> Document::queryCommandSupported(const String& commandName) 5785 { 5786 if (UNLIKELY(!isHTMLDocument() && !isXHTMLDocument())) 5787 return Exception { InvalidStateError, "queryCommandSupported is only supported on HTML documents." }; 5777 5788 return command(this, commandName).isSupported(); 5778 5789 } 5779 5790 5780 String Document::queryCommandValue(const String& commandName) 5781 { 5791 ExceptionOr<String> Document::queryCommandValue(const String& commandName) 5792 { 5793 if (UNLIKELY(!isHTMLDocument() && !isXHTMLDocument())) 5794 return Exception { InvalidStateError, "queryCommandValue is only supported on HTML documents." }; 5782 5795 return command(this, commandName).value(); 5783 5796 } -
trunk/Source/WebCore/dom/Document.h
r278779 r278974 1010 1010 DocumentMarkerController& markers() const { return *m_markers; } 1011 1011 1012 WEBCORE_EXPORT boolexecCommand(const String& command, bool userInterface = false, const String& value = String());1013 WEBCORE_EXPORT boolqueryCommandEnabled(const String& command);1014 WEBCORE_EXPORT boolqueryCommandIndeterm(const String& command);1015 WEBCORE_EXPORT boolqueryCommandState(const String& command);1016 WEBCORE_EXPORT boolqueryCommandSupported(const String& command);1017 WEBCORE_EXPORT StringqueryCommandValue(const String& command);1012 WEBCORE_EXPORT ExceptionOr<bool> execCommand(const String& command, bool userInterface = false, const String& value = String()); 1013 WEBCORE_EXPORT ExceptionOr<bool> queryCommandEnabled(const String& command); 1014 WEBCORE_EXPORT ExceptionOr<bool> queryCommandIndeterm(const String& command); 1015 WEBCORE_EXPORT ExceptionOr<bool> queryCommandState(const String& command); 1016 WEBCORE_EXPORT ExceptionOr<bool> queryCommandSupported(const String& command); 1017 WEBCORE_EXPORT ExceptionOr<String> queryCommandValue(const String& command); 1018 1018 1019 1019 UndoManager& undoManager() const { return m_undoManager.get(); } -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentGtk.cpp
r269665 r278974 1191 1191 WTF::String convertedCommand = WTF::String::fromUTF8(command); 1192 1192 WTF::String convertedValue = WTF::String::fromUTF8(value); 1193 gbooleanresult = item->execCommand(convertedCommand, userInterface, convertedValue);1194 return result ;1193 auto result = item->execCommand(convertedCommand, userInterface, convertedValue); 1194 return result.hasException() ? false : result.returnValue(); 1195 1195 } 1196 1196 … … 1202 1202 WebCore::Document* item = WebKit::core(self); 1203 1203 WTF::String convertedCommand = WTF::String::fromUTF8(command); 1204 gbooleanresult = item->queryCommandEnabled(convertedCommand);1205 return result ;1204 auto result = item->queryCommandEnabled(convertedCommand); 1205 return result.hasException() ? false : result.returnValue(); 1206 1206 } 1207 1207 … … 1213 1213 WebCore::Document* item = WebKit::core(self); 1214 1214 WTF::String convertedCommand = WTF::String::fromUTF8(command); 1215 gbooleanresult = item->queryCommandIndeterm(convertedCommand);1216 return result ;1215 auto result = item->queryCommandIndeterm(convertedCommand); 1216 return result.hasException() ? false : result.returnValue(); 1217 1217 } 1218 1218 … … 1224 1224 WebCore::Document* item = WebKit::core(self); 1225 1225 WTF::String convertedCommand = WTF::String::fromUTF8(command); 1226 gbooleanresult = item->queryCommandState(convertedCommand);1227 return result ;1226 auto result = item->queryCommandState(convertedCommand); 1227 return result.hasException() ? false : result.returnValue(); 1228 1228 } 1229 1229 … … 1235 1235 WebCore::Document* item = WebKit::core(self); 1236 1236 WTF::String convertedCommand = WTF::String::fromUTF8(command); 1237 gbooleanresult = item->queryCommandSupported(convertedCommand);1238 return result ;1237 auto result = item->queryCommandSupported(convertedCommand); 1238 return result.hasException() ? false : result.returnValue(); 1239 1239 } 1240 1240 … … 1246 1246 WebCore::Document* item = WebKit::core(self); 1247 1247 WTF::String convertedCommand = WTF::String::fromUTF8(command); 1248 gchar* result = convertToUTF8String(item->queryCommandValue(convertedCommand)); 1248 auto stringValue = item->queryCommandValue(convertedCommand); 1249 gchar* result = convertToUTF8String(stringValue.hasException() ? String() : stringValue.returnValue()); 1249 1250 return result; 1250 1251 } -
trunk/Source/WebKitLegacy/mac/ChangeLog
r278767 r278974 1 2021-06-16 Chris Dumez <cdumez@apple.com> 2 3 Document's execCommand() / queryCommand*() should throw an exception on non-HTML/XHTML documents 4 https://bugs.webkit.org/show_bug.cgi?id=227016 5 6 Reviewed by Darin Adler. 7 8 Update ObjC bindings since the WebCore API now returns ExceptionOr<> types. 9 10 * DOM/DOMDocument.mm: 11 (-[DOMDocument execCommand:userInterface:value:]): 12 (-[DOMDocument queryCommandEnabled:]): 13 (-[DOMDocument queryCommandIndeterm:]): 14 (-[DOMDocument queryCommandState:]): 15 (-[DOMDocument queryCommandSupported:]): 16 (-[DOMDocument queryCommandValue:]): 17 1 18 2021-06-11 Megan Gardner <megan_gardner@apple.com> 2 19 -
trunk/Source/WebKitLegacy/mac/DOM/DOMDocument.mm
r269665 r278974 614 614 { 615 615 WebCore::JSMainThreadNullState state; 616 return IMPL->execCommand(command, userInterface, value); 616 auto result = IMPL->execCommand(command, userInterface, value); 617 return result.hasException() ? NO : result.returnValue(); 617 618 } 618 619 … … 630 631 { 631 632 WebCore::JSMainThreadNullState state; 632 return IMPL->queryCommandEnabled(command); 633 auto result = IMPL->queryCommandEnabled(command); 634 return result.hasException() ? NO : result.returnValue(); 633 635 } 634 636 … … 636 638 { 637 639 WebCore::JSMainThreadNullState state; 638 return IMPL->queryCommandIndeterm(command); 640 auto result = IMPL->queryCommandIndeterm(command); 641 return result.hasException() ? NO : result.returnValue(); 639 642 } 640 643 … … 642 645 { 643 646 WebCore::JSMainThreadNullState state; 644 return IMPL->queryCommandState(command); 647 auto result = IMPL->queryCommandState(command); 648 return result.hasException() ? NO : result.returnValue(); 645 649 } 646 650 … … 648 652 { 649 653 WebCore::JSMainThreadNullState state; 650 return IMPL->queryCommandSupported(command); 654 auto result = IMPL->queryCommandSupported(command); 655 return result.hasException() ? NO : result.returnValue(); 651 656 } 652 657 … … 654 659 { 655 660 WebCore::JSMainThreadNullState state; 656 return IMPL->queryCommandValue(command); 661 auto result = IMPL->queryCommandValue(command); 662 return result.hasException() ? String() : result.returnValue(); 657 663 } 658 664
Note: See TracChangeset
for help on using the changeset viewer.