Changeset 280482 in webkit


Ignore:
Timestamp:
Jul 30, 2021 10:46:30 AM (12 months ago)
Author:
Chris Dumez
Message:

HTMLElement.innerText setter should convert new lines to <br>
https://bugs.webkit.org/show_bug.cgi?id=228605

Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

Rebaselined WPT tests that are now passing. Note that those were failing in WebKit but passing in Firefox
and Chrome.

  • web-platform-tests/html/dom/elements/the-innertext-and-outertext-properties/innertext-setter-expected.txt:
  • web-platform-tests/html/dom/elements/the-innertext-idl-attribute/setter-expected.txt:
  • web-platform-tests/innerText/setter-expected.txt:

Source/WebCore:

HTMLElement.innerText setter should convert new lines to <br>:

Our innerText setter had some logic that was specific to form elements and specific render
styles that wasn't part of the specification. It was causing us to not replace the new lines
with <br> in some cases. I dropped this logic to align with Blink and Gecko, as those are
passing the same WPT tests.

No new tests, rebaselined existing tests.

  • html/HTMLElement.cpp:

(WebCore::HTMLElement::setInnerText):

LayoutTests:

Rebaseline a few tests that changed output.

  • editing/pasteboard/smart-paste-paragraph-003-expected.txt:
  • platform/mac/editing/input/reveal-caret-of-multiline-input-expected.txt:
  • platform/mac/fast/forms/basic-textareas-quirks-expected.txt:
  • platform/mac/fast/forms/textarea-scroll-height-expected.txt:
  • platform/mac/fast/forms/textarea-scrollbar-expected.txt:
  • platform/mac/fast/forms/textarea-scrolled-type-expected.txt:
  • platform/mac/fast/forms/textarea-width-expected.txt:
  • platform/mac/fast/parser/open-comment-in-textarea-expected.txt:
  • platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt:
  • platform/mac/http/tests/navigation/javascriptlink-frames-expected.txt:
Location:
trunk
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r280480 r280482  
     12021-07-30  Chris Dumez  <cdumez@apple.com>
     2
     3        HTMLElement.innerText setter should convert new lines to <br>
     4        https://bugs.webkit.org/show_bug.cgi?id=228605
     5
     6        Reviewed by Sam Weinig.
     7
     8        Rebaseline a few tests that changed output.
     9
     10        * editing/pasteboard/smart-paste-paragraph-003-expected.txt:
     11        * platform/mac/editing/input/reveal-caret-of-multiline-input-expected.txt:
     12        * platform/mac/fast/forms/basic-textareas-quirks-expected.txt:
     13        * platform/mac/fast/forms/textarea-scroll-height-expected.txt:
     14        * platform/mac/fast/forms/textarea-scrollbar-expected.txt:
     15        * platform/mac/fast/forms/textarea-scrolled-type-expected.txt:
     16        * platform/mac/fast/forms/textarea-width-expected.txt:
     17        * platform/mac/fast/parser/open-comment-in-textarea-expected.txt:
     18        * platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt:
     19        * platform/mac/http/tests/navigation/javascriptlink-frames-expected.txt:
     20
    1212021-07-30  Sihui Liu  <sihui_liu@apple.com>
    222
  • trunk/LayoutTests/accessibility/mac/pseudo-element-text-markers-expected.txt

    r277286 r280482  
    2828AXRole: AXGroup AXValue:
    2929AXRole: AXStaticText AXValue: AXRole: AXScrollArea AXValue:
    30 AXRole: AXWebArea AXValue:
    31 AXRole: AXGroup AXValue:
    32 AXRole: AXStaticText AXValue: Hello
    33 AXRole: AXGroup AXValue:
    34 AXRole: AXStaticText AXValue: This tests that the pseudo element style:body:before is accessible via the accessibility tree but not via TextMarkers.
    35 AXRole: AXGroup AXValue:
    36 AXRole: AXStaticText AXValue: On success, you will see a series of "
    37 AXRole: AXStaticText AXValue: PASS
    38 AXRole: AXStaticText AXValue: " messages, followed by "
    39 AXRole: AXStaticText AXValue: TEST COMPLETE
    40 AXRole: AXStaticText AXValue: ".
    41 AXRole: AXGroup AXValue:
     30AXRole: AXStaticText AXValue: AXRole: AXWebArea AXValue:
     31AXRole: AXStaticText AXValue: AXRole: AXGroup AXValue:
     32AXRole: AXStaticText AXValue: AXRole: AXStaticText AXValue: Hello
     33AXRole: AXStaticText AXValue: AXRole: AXGroup AXValue:
     34AXRole: AXStaticText AXValue: AXRole: AXStaticText AXValue: This tests that the pseudo element style:body:before is accessible via the accessibility tree but not via TextMarkers.
     35AXRole: AXStaticText AXValue: AXRole: AXGroup AXValue:
     36AXRole: AXStaticText AXValue: AXRole: AXStaticText AXValue: On success, you will see a series of "
     37AXRole: AXStaticText AXValue: AXRole: AXStaticText AXValue: PASS
     38AXRole: AXStaticText AXValue: AXRole: AXStaticText AXValue: " messages, followed by "
     39AXRole: AXStaticText AXValue: AXRole: AXStaticText AXValue: TEST COMPLETE
     40AXRole: AXStaticText AXValue: AXRole: AXStaticText AXValue: ".
     41AXRole: AXStaticText AXValue: AXRole: AXGroup AXValue:
    4242
    43 
  • trunk/LayoutTests/editing/pasteboard/smart-paste-paragraph-003-expected.txt

    r267644 r280482  
    77EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    88EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    9 EDITING DELEGATE: shouldInsertText:Test paragraph. replacingDOMRange:range from 16 of #text > DIV > #document-fragment to 16 of #text > DIV > #document-fragment givenAction:WebViewInsertActionPasted
    10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 32 of #text > DIV > #document-fragment to 32 of #text > DIV > #document-fragment toDOMRange:range from 1 of #text > DIV > #document-fragment to 1 of #text > DIV > #document-fragment affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     9EDITING DELEGATE: shouldInsertText:Test paragraph. replacingDOMRange:range from 2 of DIV > #document-fragment to 2 of DIV > #document-fragment givenAction:WebViewInsertActionPasted
    1210EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1311EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r280479 r280482  
     12021-07-30  Chris Dumez  <cdumez@apple.com>
     2
     3        HTMLElement.innerText setter should convert new lines to <br>
     4        https://bugs.webkit.org/show_bug.cgi?id=228605
     5
     6        Reviewed by Sam Weinig.
     7
     8        Rebaselined WPT tests that are now passing. Note that those were failing in WebKit but passing in Firefox
     9        and Chrome.
     10
     11        * web-platform-tests/html/dom/elements/the-innertext-and-outertext-properties/innertext-setter-expected.txt:
     12        * web-platform-tests/html/dom/elements/the-innertext-idl-attribute/setter-expected.txt:
     13        * web-platform-tests/innerText/setter-expected.txt:
     14
    1152021-07-30  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/the-innertext-and-outertext-properties/innertext-setter-expected.txt

    r279427 r280482  
    44PASS Newlines convert to <br> in non-white-space:pre elements
    55PASS Newlines convert to <br> in non-white-space:pre elements, detached
    6 FAIL Newlines convert to <br> in <pre> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     6PASS Newlines convert to <br> in <pre> element
    77PASS Newlines convert to <br> in <pre> element, detached
    8 FAIL Newlines convert to <br> in <textarea> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     8PASS Newlines convert to <br> in <textarea> element
    99PASS Newlines convert to <br> in <textarea> element, detached
    10 FAIL Newlines convert to <br> in white-space:pre element assert_equals: expected "abc<br>def" but got "abc\ndef"
     10PASS Newlines convert to <br> in white-space:pre element
    1111PASS Newlines convert to <br> in white-space:pre element, detached
    1212PASS CRs convert to <br> in non-white-space:pre elements
    1313PASS CRs convert to <br> in non-white-space:pre elements, detached
    14 FAIL CRs convert to <br> in <pre> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     14PASS CRs convert to <br> in <pre> element
    1515PASS CRs convert to <br> in <pre> element, detached
    1616PASS Newline/CR pair converts to <br> in non-white-space:pre element
     
    2020PASS CR/CR pair converts to two <br>s in non-white-space:pre element
    2121PASS CR/CR pair converts to two <br>s in non-white-space:pre element, detached
    22 FAIL CRs convert to <br> in white-space:pre element assert_equals: expected "abc<br>def" but got "abc\ndef"
     22PASS CRs convert to <br> in white-space:pre element
    2323PASS CRs convert to <br> in white-space:pre element, detached
    2424PASS < preserved
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/the-innertext-idl-attribute/setter-expected.txt

    r267646 r280482  
    44PASS Newlines convert to <br> in non-white-space:pre elements
    55PASS Newlines convert to <br> in non-white-space:pre elements, detached
    6 FAIL Newlines convert to <br> in <pre> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     6PASS Newlines convert to <br> in <pre> element
    77PASS Newlines convert to <br> in <pre> element, detached
    8 FAIL Newlines convert to <br> in <textarea> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     8PASS Newlines convert to <br> in <textarea> element
    99PASS Newlines convert to <br> in <textarea> element, detached
    10 FAIL Newlines convert to <br> in white-space:pre element assert_equals: expected "abc<br>def" but got "abc\ndef"
     10PASS Newlines convert to <br> in white-space:pre element
    1111PASS Newlines convert to <br> in white-space:pre element, detached
    1212PASS CRs convert to <br> in non-white-space:pre elements
    1313PASS CRs convert to <br> in non-white-space:pre elements, detached
    14 FAIL CRs convert to <br> in <pre> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     14PASS CRs convert to <br> in <pre> element
    1515PASS CRs convert to <br> in <pre> element, detached
    1616PASS Newline/CR pair converts to <br> in non-white-space:pre element
     
    2020PASS CR/CR pair converts to two <br>s in non-white-space:pre element
    2121PASS CR/CR pair converts to two <br>s in non-white-space:pre element, detached
    22 FAIL CRs convert to <br> in white-space:pre element assert_equals: expected "abc<br>def" but got "abc\ndef"
     22PASS CRs convert to <br> in white-space:pre element
    2323PASS CRs convert to <br> in white-space:pre element, detached
    2424PASS < preserved
  • trunk/LayoutTests/imported/w3c/web-platform-tests/innerText/setter-expected.txt

    r267647 r280482  
    44PASS Newlines convert to <br> in non-white-space:pre elements
    55PASS Newlines convert to <br> in non-white-space:pre elements, detached
    6 FAIL Newlines convert to <br> in <pre> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     6PASS Newlines convert to <br> in <pre> element
    77PASS Newlines convert to <br> in <pre> element, detached
    8 FAIL Newlines convert to <br> in <textarea> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     8PASS Newlines convert to <br> in <textarea> element
    99PASS Newlines convert to <br> in <textarea> element, detached
    10 FAIL Newlines convert to <br> in white-space:pre element assert_equals: expected "abc<br>def" but got "abc\ndef"
     10PASS Newlines convert to <br> in white-space:pre element
    1111PASS Newlines convert to <br> in white-space:pre element, detached
    1212PASS CRs convert to <br> in non-white-space:pre elements
    1313PASS CRs convert to <br> in non-white-space:pre elements, detached
    14 FAIL CRs convert to <br> in <pre> element assert_equals: expected "abc<br>def" but got "abc\ndef"
     14PASS CRs convert to <br> in <pre> element
    1515PASS CRs convert to <br> in <pre> element, detached
    1616PASS Newline/CR pair converts to <br> in non-white-space:pre element
     
    2020PASS CR/CR pair converts to two <br>s in non-white-space:pre element
    2121PASS CR/CR pair converts to two <br>s in non-white-space:pre element, detached
    22 FAIL CRs convert to <br> in white-space:pre element assert_equals: expected "abc<br>def" but got "abc\ndef"
     22PASS CRs convert to <br> in white-space:pre element
    2323PASS CRs convert to <br> in white-space:pre element, detached
    2424PASS < preserved
  • trunk/LayoutTests/platform/ios-wk2/editing/input/reveal-caret-of-multiline-input-expected.txt

    r279795 r280482  
    1313  RenderTextControl {TEXTAREA} at (2,2) size 98x146 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    1414    RenderBlock {DIV} at (6,3) size 71x448
    15       RenderText {#text} at (0,0) size 15x434
     15      RenderText {#text} at (0,0) size 14x14
    1616        text run at (0,0) width 14: "00"
    17         text run at (13,0) width 1: " "
     17      RenderBR {BR} at (13,0) size 1x14
     18      RenderText {#text} at (0,14) size 13x14
    1819        text run at (0,14) width 13: "01"
    19         text run at (12,14) width 1: " "
     20      RenderBR {BR} at (12,14) size 1x14
     21      RenderText {#text} at (0,28) size 14x14
    2022        text run at (0,28) width 14: "02"
    21         text run at (13,28) width 1: " "
     23      RenderBR {BR} at (13,28) size 1x14
     24      RenderText {#text} at (0,42) size 14x14
    2225        text run at (0,42) width 14: "03"
    23         text run at (13,42) width 1: " "
     26      RenderBR {BR} at (13,42) size 1x14
     27      RenderText {#text} at (0,56) size 15x14
    2428        text run at (0,56) width 15: "04"
    25         text run at (14,56) width 1: " "
     29      RenderBR {BR} at (14,56) size 1x14
     30      RenderText {#text} at (0,70) size 14x14
    2631        text run at (0,70) width 14: "05"
    27         text run at (13,70) width 1: " "
     32      RenderBR {BR} at (13,70) size 1x14
     33      RenderText {#text} at (0,84) size 15x14
    2834        text run at (0,84) width 15: "06"
    29         text run at (14,84) width 1: " "
     35      RenderBR {BR} at (14,84) size 1x14
     36      RenderText {#text} at (0,98) size 14x14
    3037        text run at (0,98) width 14: "07"
    31         text run at (13,98) width 1: " "
     38      RenderBR {BR} at (13,98) size 1x14
     39      RenderText {#text} at (0,112) size 15x14
    3240        text run at (0,112) width 15: "08"
    33         text run at (14,112) width 1: " "
     41      RenderBR {BR} at (14,112) size 1x14
     42      RenderText {#text} at (0,126) size 15x14
    3443        text run at (0,126) width 15: "09"
    35         text run at (14,126) width 1: " "
     44      RenderBR {BR} at (14,126) size 1x14
     45      RenderText {#text} at (0,140) size 13x14
    3646        text run at (0,140) width 13: "10"
    37         text run at (12,140) width 1: " "
     47      RenderBR {BR} at (12,140) size 1x14
     48      RenderText {#text} at (0,154) size 11x14
    3849        text run at (0,154) width 11: "11"
    39         text run at (10,154) width 1: " "
     50      RenderBR {BR} at (10,154) size 1x14
     51      RenderText {#text} at (0,168) size 12x14
    4052        text run at (0,168) width 12: "12"
    41         text run at (11,168) width 1: " "
     53      RenderBR {BR} at (11,168) size 1x14
     54      RenderText {#text} at (0,182) size 13x14
    4255        text run at (0,182) width 13: "13"
    43         text run at (12,182) width 1: " "
     56      RenderBR {BR} at (12,182) size 1x14
     57      RenderText {#text} at (0,196) size 13x14
    4458        text run at (0,196) width 13: "14"
    45         text run at (12,196) width 1: " "
     59      RenderBR {BR} at (12,196) size 1x14
     60      RenderText {#text} at (0,210) size 13x14
    4661        text run at (0,210) width 13: "15"
    47         text run at (12,210) width 1: " "
     62      RenderBR {BR} at (12,210) size 1x14
     63      RenderText {#text} at (0,224) size 13x14
    4864        text run at (0,224) width 13: "16"
    49         text run at (12,224) width 1: " "
     65      RenderBR {BR} at (12,224) size 1x14
     66      RenderText {#text} at (0,238) size 12x14
    5067        text run at (0,238) width 12: "17"
    51         text run at (11,238) width 1: " "
     68      RenderBR {BR} at (11,238) size 1x14
     69      RenderText {#text} at (0,252) size 13x14
    5270        text run at (0,252) width 13: "18"
    53         text run at (12,252) width 1: " "
     71      RenderBR {BR} at (12,252) size 1x14
     72      RenderText {#text} at (0,266) size 13x14
    5473        text run at (0,266) width 13: "19"
    55         text run at (12,266) width 1: " "
     74      RenderBR {BR} at (12,266) size 1x14
     75      RenderText {#text} at (0,280) size 14x14
    5676        text run at (0,280) width 14: "20"
    57         text run at (13,280) width 1: " "
     77      RenderBR {BR} at (13,280) size 1x14
     78      RenderText {#text} at (0,294) size 12x14
    5879        text run at (0,294) width 12: "21"
    59         text run at (11,294) width 1: " "
     80      RenderBR {BR} at (11,294) size 1x14
     81      RenderText {#text} at (0,308) size 14x14
    6082        text run at (0,308) width 14: "22"
    61         text run at (13,308) width 1: " "
     83      RenderBR {BR} at (13,308) size 1x14
     84      RenderText {#text} at (0,322) size 14x14
    6285        text run at (0,322) width 14: "23"
    63         text run at (13,322) width 1: " "
     86      RenderBR {BR} at (13,322) size 1x14
     87      RenderText {#text} at (0,336) size 14x14
    6488        text run at (0,336) width 14: "24"
    65         text run at (13,336) width 1: " "
     89      RenderBR {BR} at (13,336) size 1x14
     90      RenderText {#text} at (0,350) size 14x14
    6691        text run at (0,350) width 14: "25"
    67         text run at (13,350) width 1: " "
     92      RenderBR {BR} at (13,350) size 1x14
     93      RenderText {#text} at (0,364) size 14x14
    6894        text run at (0,364) width 14: "26"
    69         text run at (13,364) width 1: " "
     95      RenderBR {BR} at (13,364) size 1x14
     96      RenderText {#text} at (0,378) size 14x14
    7097        text run at (0,378) width 14: "27"
    71         text run at (13,378) width 1: " "
     98      RenderBR {BR} at (13,378) size 1x14
     99      RenderText {#text} at (0,392) size 14x14
    72100        text run at (0,392) width 14: "28"
    73         text run at (13,392) width 1: " "
     101      RenderBR {BR} at (13,392) size 1x14
     102      RenderText {#text} at (0,406) size 14x14
    74103        text run at (0,406) width 14: "29"
    75         text run at (13,406) width 1: " "
     104      RenderBR {BR} at (13,406) size 1x14
     105      RenderText {#text} at (0,420) size 14x14
    76106        text run at (0,420) width 14: "30"
    77         text run at (13,420) width 1: " "
     107      RenderBR {BR} at (13,420) size 1x14
    78108      RenderBR {BR} at (0,434) size 0x14
    79 caret: position 36 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
     109caret: position 0 of child 24 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
  • trunk/LayoutTests/platform/ios-wk2/fast/forms/textarea-scroll-height-expected.txt

    r279795 r280482  
    1111  RenderTextControl {TEXTAREA} at (0,0) size 200x200 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    1212    RenderBlock {DIV} at (6,3) size 173x336
    13       RenderText {#text} at (0,0) size 83x322
     13      RenderText {#text} at (0,0) size 83x14
    1414        text run at (0,0) width 83: "Lots of content."
    15         text run at (82,0) width 1: " "
     15      RenderBR {BR} at (82,0) size 1x14
     16      RenderText {#text} at (0,14) size 83x14
    1617        text run at (0,14) width 83: "Lots of content."
    17         text run at (82,14) width 1: " "
     18      RenderBR {BR} at (82,14) size 1x14
     19      RenderText {#text} at (0,28) size 83x14
    1820        text run at (0,28) width 83: "Lots of content."
    19         text run at (82,28) width 1: " "
     21      RenderBR {BR} at (82,28) size 1x14
     22      RenderText {#text} at (0,42) size 83x14
    2023        text run at (0,42) width 83: "Lots of content."
    21         text run at (82,42) width 1: " "
    22         text run at (0,56) width 0: " "
     24      RenderBR {BR} at (82,42) size 1x14
     25      RenderBR {BR} at (0,56) size 0x14
     26      RenderText {#text} at (0,70) size 83x14
    2327        text run at (0,70) width 83: "Lots of content."
    24         text run at (82,70) width 1: " "
     28      RenderBR {BR} at (82,70) size 1x14
     29      RenderText {#text} at (0,84) size 83x14
    2530        text run at (0,84) width 83: "Lots of content."
    26         text run at (82,84) width 1: " "
    27         text run at (0,98) width 0: " "
     31      RenderBR {BR} at (82,84) size 1x14
     32      RenderBR {BR} at (0,98) size 0x14
     33      RenderText {#text} at (0,112) size 83x14
    2834        text run at (0,112) width 83: "Lots of content."
    29         text run at (82,112) width 1: " "
     35      RenderBR {BR} at (82,112) size 1x14
     36      RenderText {#text} at (0,126) size 83x14
    3037        text run at (0,126) width 83: "Lots of content."
    31         text run at (82,126) width 1: " "
    32         text run at (0,140) width 0: " "
     38      RenderBR {BR} at (82,126) size 1x14
     39      RenderBR {BR} at (0,140) size 0x14
     40      RenderText {#text} at (0,154) size 83x14
    3341        text run at (0,154) width 83: "Lots of content."
    34         text run at (82,154) width 1: " "
     42      RenderBR {BR} at (82,154) size 1x14
     43      RenderText {#text} at (0,168) size 83x14
    3544        text run at (0,168) width 83: "Lots of content."
    36         text run at (82,168) width 1: " "
    37         text run at (0,182) width 0: " "
     45      RenderBR {BR} at (82,168) size 1x14
     46      RenderBR {BR} at (0,182) size 0x14
     47      RenderText {#text} at (0,196) size 83x14
    3848        text run at (0,196) width 83: "Lots of content."
    39         text run at (82,196) width 1: " "
     49      RenderBR {BR} at (82,196) size 1x14
     50      RenderText {#text} at (0,210) size 83x14
    4051        text run at (0,210) width 83: "Lots of content."
    41         text run at (82,210) width 1: " "
    42         text run at (0,224) width 0: " "
     52      RenderBR {BR} at (82,210) size 1x14
     53      RenderBR {BR} at (0,224) size 0x14
     54      RenderText {#text} at (0,238) size 83x14
    4355        text run at (0,238) width 83: "Lots of content."
    44         text run at (82,238) width 1: " "
     56      RenderBR {BR} at (82,238) size 1x14
     57      RenderText {#text} at (0,252) size 83x14
    4558        text run at (0,252) width 83: "Lots of content."
    46         text run at (82,252) width 1: " "
    47         text run at (0,266) width 0: " "
     59      RenderBR {BR} at (82,252) size 1x14
     60      RenderBR {BR} at (0,266) size 0x14
     61      RenderText {#text} at (0,280) size 83x14
    4862        text run at (0,280) width 83: "Lots of content."
    49         text run at (82,280) width 1: " "
     63      RenderBR {BR} at (82,280) size 1x14
     64      RenderText {#text} at (0,294) size 83x14
    5065        text run at (0,294) width 83: "Lots of content."
    51         text run at (82,294) width 1: " "
    52         text run at (0,308) width 0: " "
     66      RenderBR {BR} at (82,294) size 1x14
     67      RenderBR {BR} at (0,308) size 0x14
    5368      RenderBR {BR} at (0,322) size 0x14
  • trunk/LayoutTests/platform/ios-wk2/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt

    r279795 r280482  
    1717  RenderTextControl {TEXTAREA} at (2,2) size 378x62 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    1818    RenderBlock {DIV} at (6,3) size 366x43
    19       RenderText {#text} at (339,0) size 365x29
    20         text run at (339,0) width 1 RTL: " "
     19      RenderText {#text} at (339,0) size 26x14
    2120        text run at (339,0) width 26 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     21      RenderBR {BR} at (339,0) size 1x14
     22      RenderText {#text} at (0,15) size 29x14
    2223        text run at (0,15) width 29: "hello!"
    23         text run at (28,15) width 1: " "
     24      RenderBR {BR} at (28,15) size 1x14
    2425      RenderBR {BR} at (365,29) size 0x14
    2526layer at (10,121) size 378x62 clip at (11,122) size 376x60
    2627  RenderTextControl {TEXTAREA} at (2,73) size 378x62 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    2728    RenderBlock {DIV} at (6,3) size 366x43
    28       RenderText {#text} at (339,0) size 365x29
    29         text run at (339,0) width 1 RTL: " "
     29      RenderText {#text} at (339,0) size 26x14
    3030        text run at (339,0) width 26 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     31      RenderBR {BR} at (339,0) size 1x14
     32      RenderText {#text} at (0,15) size 29x14
    3133        text run at (0,15) width 29: "hello!"
    32         text run at (28,15) width 1: " "
     34      RenderBR {BR} at (28,15) size 1x14
    3335      RenderBR {BR} at (0,29) size 0x14
    3436layer at (10,192) size 378x62 clip at (11,193) size 376x60
    3537  RenderTextControl {TEXTAREA} at (2,144) size 378x62 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    3638    RenderBlock {DIV} at (6,3) size 366x43
    37       RenderText {#text} at (339,0) size 365x29
    38         text run at (339,0) width 1 RTL: " "
     39      RenderText {#text} at (339,0) size 26x14
    3940        text run at (339,0) width 26 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     41      RenderBR {BR} at (339,0) size 1x14
     42      RenderText {#text} at (0,15) size 29x14
    4043        text run at (0,15) width 29: "hello!"
    41         text run at (28,15) width 1: " "
     44      RenderBR {BR} at (28,15) size 1x14
    4245      RenderBR {BR} at (0,29) size 0x14
    4346layer at (10,263) size 378x62 clip at (11,264) size 376x60
    4447  RenderTextControl {TEXTAREA} at (2,215) size 378x62 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    4548    RenderBlock {DIV} at (6,3) size 366x43
    46       RenderText {#text} at (339,0) size 365x29
    47         text run at (339,0) width 1 RTL: " "
     49      RenderText {#text} at (339,0) size 26x14
    4850        text run at (339,0) width 26 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     51      RenderBR {BR} at (339,0) size 1x14
     52      RenderText {#text} at (0,15) size 29x14
    4953        text run at (0,15) width 29: "hello!"
    50         text run at (28,15) width 1: " "
     54      RenderBR {BR} at (28,15) size 1x14
    5155      RenderBR {BR} at (365,29) size 0x14
  • trunk/LayoutTests/platform/ios/fast/forms/textarea-scrollbar-expected.txt

    r279795 r280482  
    1111  RenderTextControl {TEXTAREA} at (2,22) size 168x90 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    1212    RenderBlock {DIV} at (6,3) size 141x126
    13       RenderText {#text} at (0,0) size 8x56
     13      RenderText {#text} at (0,0) size 6x14
    1414        text run at (0,0) width 6: "1"
    15         text run at (5,0) width 1: " "
     15      RenderBR {BR} at (5,0) size 1x14
     16      RenderText {#text} at (0,14) size 7x14
    1617        text run at (0,14) width 7: "2"
    17         text run at (6,14) width 1: " "
     18      RenderBR {BR} at (6,14) size 1x14
     19      RenderText {#text} at (0,28) size 7x14
    1820        text run at (0,28) width 7: "3"
    19         text run at (6,28) width 1: " "
     21      RenderBR {BR} at (6,28) size 1x14
     22      RenderText {#text} at (0,42) size 8x14
    2023        text run at (0,42) width 8: "4"
    21         text run at (7,42) width 1: " "
     24      RenderBR {BR} at (7,42) size 1x14
    2225      RenderText {#text} at (0,56) size 7x14
    2326        text run at (0,56) width 7: "5"
     
    3841      RenderText {#text} at (0,112) size 0x14
    3942        text run at (0,112) width 0: " "
    40 caret: position 0 of child 9 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
     43caret: position 0 of child 16 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
  • trunk/LayoutTests/platform/ios/fast/forms/textarea-scrolled-type-expected.txt

    r279795 r280482  
    1515  RenderTextControl {TEXTAREA} at (2,22) size 168x104 [bgcolor=#FFFFFF] [border: (1px solid #3C3C4399)]
    1616    RenderBlock {DIV} at (6,3) size 141x294
    17       RenderText {#text} at (0,0) size 40x280
     17      RenderText {#text} at (0,0) size 6x14
    1818        text run at (0,0) width 6: "1"
    19         text run at (5,0) width 1: " "
     19      RenderBR {BR} at (5,0) size 1x14
     20      RenderText {#text} at (0,14) size 7x14
    2021        text run at (0,14) width 7: "2"
    21         text run at (6,14) width 1: " "
     22      RenderBR {BR} at (6,14) size 1x14
     23      RenderText {#text} at (0,28) size 7x14
    2224        text run at (0,28) width 7: "3"
    23         text run at (6,28) width 1: " "
     25      RenderBR {BR} at (6,28) size 1x14
     26      RenderText {#text} at (0,42) size 8x14
    2427        text run at (0,42) width 8: "4"
    25         text run at (7,42) width 1: " "
     28      RenderBR {BR} at (7,42) size 1x14
     29      RenderText {#text} at (0,56) size 7x14
    2630        text run at (0,56) width 7: "5"
    27         text run at (6,56) width 1: " "
     31      RenderBR {BR} at (6,56) size 1x14
     32      RenderText {#text} at (0,70) size 8x14
    2833        text run at (0,70) width 8: "6"
    29         text run at (7,70) width 1: " "
     34      RenderBR {BR} at (7,70) size 1x14
     35      RenderText {#text} at (0,84) size 7x14
    3036        text run at (0,84) width 7: "7"
    31         text run at (6,84) width 1: " "
     37      RenderBR {BR} at (6,84) size 1x14
     38      RenderText {#text} at (0,98) size 8x14
    3239        text run at (0,98) width 8: "8"
    33         text run at (7,98) width 1: " "
     40      RenderBR {BR} at (7,98) size 1x14
     41      RenderText {#text} at (0,112) size 8x14
    3442        text run at (0,112) width 8: "9"
    35         text run at (7,112) width 1: " "
     43      RenderBR {BR} at (7,112) size 1x14
     44      RenderText {#text} at (0,126) size 13x14
    3645        text run at (0,126) width 13: "10"
    37         text run at (12,126) width 1: " "
     46      RenderBR {BR} at (12,126) size 1x14
     47      RenderText {#text} at (0,140) size 11x14
    3848        text run at (0,140) width 11: "11"
    39         text run at (10,140) width 1: " "
     49      RenderBR {BR} at (10,140) size 1x14
     50      RenderText {#text} at (0,154) size 12x14
    4051        text run at (0,154) width 12: "12"
    41         text run at (11,154) width 1: " "
     52      RenderBR {BR} at (11,154) size 1x14
     53      RenderText {#text} at (0,168) size 13x14
    4254        text run at (0,168) width 13: "13"
    43         text run at (12,168) width 1: " "
     55      RenderBR {BR} at (12,168) size 1x14
     56      RenderText {#text} at (0,182) size 13x14
    4457        text run at (0,182) width 13: "14"
    45         text run at (12,182) width 1: " "
     58      RenderBR {BR} at (12,182) size 1x14
     59      RenderText {#text} at (0,196) size 13x14
    4660        text run at (0,196) width 13: "15"
    47         text run at (12,196) width 1: " "
     61      RenderBR {BR} at (12,196) size 1x14
     62      RenderText {#text} at (0,210) size 13x14
    4863        text run at (0,210) width 13: "16"
    49         text run at (12,210) width 1: " "
     64      RenderBR {BR} at (12,210) size 1x14
     65      RenderText {#text} at (0,224) size 12x14
    5066        text run at (0,224) width 12: "17"
    51         text run at (11,224) width 1: " "
     67      RenderBR {BR} at (11,224) size 1x14
     68      RenderText {#text} at (0,238) size 40x14
    5269        text run at (0,238) width 40: "18 Pass"
    53         text run at (39,238) width 1: " "
     70      RenderBR {BR} at (39,238) size 1x14
     71      RenderText {#text} at (0,252) size 13x14
    5472        text run at (0,252) width 13: "19"
    55         text run at (12,252) width 1: " "
     73      RenderBR {BR} at (12,252) size 1x14
     74      RenderText {#text} at (0,266) size 14x14
    5675        text run at (0,266) width 14: "20"
    57         text run at (13,266) width 1: " "
     76      RenderBR {BR} at (13,266) size 1x14
    5877      RenderBR {BR} at (0,280) size 0x14
    59 caret: position 49 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
     78caret: position 7 of child 34 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
  • trunk/LayoutTests/platform/ios/fast/forms/textarea-width-expected.txt

    r279795 r280482  
    1717        text run at (0,0) width 454: "1234567890abcdefghijABCDEFGHIJ1234567890abcdefghijABCDEFGHIJ12345X7890abcde"
    1818        text run at (0,14) width 267: "fghijABCDEFGXIJ1234567890abcdefghijABCDEFGHIJ"
    19         text run at (266,14) width 1: " "
     19      RenderBR {BR} at (266,14) size 1x14
    2020      RenderBR {BR} at (0,28) size 0x14
  • trunk/LayoutTests/platform/mac-catalina/editing/input/reveal-caret-of-multiline-input-expected.txt

    r269234 r280482  
    1313  RenderTextControl {TEXTAREA} at (2,2) size 91x136 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1414    RenderBlock {DIV} at (3,3) size 70x416
    15       RenderText {#text} at (0,0) size 20x403
     15      RenderText {#text} at (0,0) size 14x13
    1616        text run at (0,0) width 14: "00"
    17         text run at (13,0) width 1: " "
     17      RenderBR {BR} at (13,0) size 1x13
     18      RenderText {#text} at (0,13) size 13x13
    1819        text run at (0,13) width 13: "01"
    19         text run at (12,13) width 1: " "
     20      RenderBR {BR} at (12,13) size 1x13
     21      RenderText {#text} at (0,26) size 14x13
    2022        text run at (0,26) width 14: "02"
    21         text run at (13,26) width 1: " "
     23      RenderBR {BR} at (13,26) size 1x13
     24      RenderText {#text} at (0,39) size 14x13
    2225        text run at (0,39) width 14: "03"
    23         text run at (13,39) width 1: " "
     26      RenderBR {BR} at (13,39) size 1x13
     27      RenderText {#text} at (0,52) size 15x13
    2428        text run at (0,52) width 15: "04"
    25         text run at (14,52) width 1: " "
     29      RenderBR {BR} at (14,52) size 1x13
     30      RenderText {#text} at (0,65) size 14x13
    2631        text run at (0,65) width 14: "05"
    27         text run at (13,65) width 1: " "
     32      RenderBR {BR} at (13,65) size 1x13
     33      RenderText {#text} at (0,78) size 15x13
    2834        text run at (0,78) width 15: "06"
    29         text run at (14,78) width 1: " "
     35      RenderBR {BR} at (14,78) size 1x13
     36      RenderText {#text} at (0,91) size 14x13
    3037        text run at (0,91) width 14: "07"
    31         text run at (13,91) width 1: " "
     38      RenderBR {BR} at (13,91) size 1x13
     39      RenderText {#text} at (0,104) size 15x13
    3240        text run at (0,104) width 15: "08"
    33         text run at (14,104) width 1: " "
     41      RenderBR {BR} at (14,104) size 1x13
     42      RenderText {#text} at (0,117) size 15x13
    3443        text run at (0,117) width 15: "09"
    35         text run at (14,117) width 1: " "
     44      RenderBR {BR} at (14,117) size 1x13
     45      RenderText {#text} at (0,130) size 13x13
    3646        text run at (0,130) width 13: "10"
    37         text run at (12,130) width 1: " "
     47      RenderBR {BR} at (12,130) size 1x13
     48      RenderText {#text} at (0,143) size 11x13
    3849        text run at (0,143) width 11: "11"
    39         text run at (10,143) width 1: " "
     50      RenderBR {BR} at (10,143) size 1x13
     51      RenderText {#text} at (0,156) size 20x13
    4052        text run at (0,156) width 20: ">12"
    41         text run at (19,156) width 1: " "
     53      RenderBR {BR} at (19,156) size 1x13
     54      RenderText {#text} at (0,169) size 13x13
    4255        text run at (0,169) width 13: "13"
    43         text run at (12,169) width 1: " "
     56      RenderBR {BR} at (12,169) size 1x13
     57      RenderText {#text} at (0,182) size 13x13
    4458        text run at (0,182) width 13: "14"
    45         text run at (12,182) width 1: " "
     59      RenderBR {BR} at (12,182) size 1x13
     60      RenderText {#text} at (0,195) size 13x13
    4661        text run at (0,195) width 13: "15"
    47         text run at (12,195) width 1: " "
     62      RenderBR {BR} at (12,195) size 1x13
     63      RenderText {#text} at (0,208) size 13x13
    4864        text run at (0,208) width 13: "16"
    49         text run at (12,208) width 1: " "
     65      RenderBR {BR} at (12,208) size 1x13
     66      RenderText {#text} at (0,221) size 12x13
    5067        text run at (0,221) width 12: "17"
    51         text run at (11,221) width 1: " "
     68      RenderBR {BR} at (11,221) size 1x13
     69      RenderText {#text} at (0,234) size 13x13
    5270        text run at (0,234) width 13: "18"
    53         text run at (12,234) width 1: " "
     71      RenderBR {BR} at (12,234) size 1x13
     72      RenderText {#text} at (0,247) size 13x13
    5473        text run at (0,247) width 13: "19"
    55         text run at (12,247) width 1: " "
     74      RenderBR {BR} at (12,247) size 1x13
     75      RenderText {#text} at (0,260) size 14x13
    5676        text run at (0,260) width 14: "20"
    57         text run at (13,260) width 1: " "
     77      RenderBR {BR} at (13,260) size 1x13
     78      RenderText {#text} at (0,273) size 12x13
    5879        text run at (0,273) width 12: "21"
    59         text run at (11,273) width 1: " "
     80      RenderBR {BR} at (11,273) size 1x13
     81      RenderText {#text} at (0,286) size 14x13
    6082        text run at (0,286) width 14: "22"
    61         text run at (13,286) width 1: " "
     83      RenderBR {BR} at (13,286) size 1x13
     84      RenderText {#text} at (0,299) size 14x13
    6285        text run at (0,299) width 14: "23"
    63         text run at (13,299) width 1: " "
     86      RenderBR {BR} at (13,299) size 1x13
     87      RenderText {#text} at (0,312) size 14x13
    6488        text run at (0,312) width 14: "24"
    65         text run at (13,312) width 1: " "
     89      RenderBR {BR} at (13,312) size 1x13
     90      RenderText {#text} at (0,325) size 14x13
    6691        text run at (0,325) width 14: "25"
    67         text run at (13,325) width 1: " "
     92      RenderBR {BR} at (13,325) size 1x13
     93      RenderText {#text} at (0,338) size 14x13
    6894        text run at (0,338) width 14: "26"
    69         text run at (13,338) width 1: " "
     95      RenderBR {BR} at (13,338) size 1x13
     96      RenderText {#text} at (0,351) size 14x13
    7097        text run at (0,351) width 14: "27"
    71         text run at (13,351) width 1: " "
     98      RenderBR {BR} at (13,351) size 1x13
     99      RenderText {#text} at (0,364) size 14x13
    72100        text run at (0,364) width 14: "28"
    73         text run at (13,364) width 1: " "
     101      RenderBR {BR} at (13,364) size 1x13
     102      RenderText {#text} at (0,377) size 14x13
    74103        text run at (0,377) width 14: "29"
    75         text run at (13,377) width 1: " "
     104      RenderBR {BR} at (13,377) size 1x13
     105      RenderText {#text} at (0,390) size 14x13
    76106        text run at (0,390) width 14: "30"
    77         text run at (13,390) width 1: " "
     107      RenderBR {BR} at (13,390) size 1x13
    78108      RenderBR {BR} at (0,403) size 0x13
    79 caret: position 37 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
     109caret: position 1 of child 24 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
  • trunk/LayoutTests/platform/mac-catalina/fast/forms/basic-textareas-quirks-expected.txt

    r270409 r280482  
    670670  RenderTextControl {TEXTAREA} at (16,3) size 162x47 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    671671    RenderBlock {DIV} at (3,3) size 140x208
    672       RenderText {#text} at (0,0) size 184x195
     672      RenderText {#text} at (0,0) size 4x13
    673673        text run at (0,0) width 4: " "
    674         text run at (3,0) width 1: " "
     674      RenderBR {BR} at (3,0) size 1x13
     675      RenderText {#text} at (0,13) size 184x13
    675676        text run at (0,13) width 184: "This is a text area with wrap=\"soft\""
    676         text run at (183,13) width 1: " "
     677      RenderBR {BR} at (0,0) size 0x0
     678      RenderText {#text} at (0,26) size 184x13
    677679        text run at (0,26) width 184: "This is a text area with wrap=\"soft\""
    678         text run at (183,26) width 1: " "
     680      RenderBR {BR} at (0,0) size 0x0
     681      RenderText {#text} at (0,39) size 184x13
    679682        text run at (0,39) width 184: "This is a text area with wrap=\"soft\""
    680         text run at (183,39) width 1: " "
     683      RenderBR {BR} at (0,0) size 0x0
     684      RenderText {#text} at (0,52) size 184x13
    681685        text run at (0,52) width 184: "This is a text area with wrap=\"soft\""
    682         text run at (183,52) width 1: " "
     686      RenderBR {BR} at (0,0) size 0x0
     687      RenderText {#text} at (0,65) size 184x13
    683688        text run at (0,65) width 184: "This is a text area with wrap=\"soft\""
    684         text run at (183,65) width 1: " "
     689      RenderBR {BR} at (0,0) size 0x0
     690      RenderText {#text} at (0,78) size 184x13
    685691        text run at (0,78) width 184: "This is a text area with wrap=\"soft\""
    686         text run at (183,78) width 1: " "
     692      RenderBR {BR} at (0,0) size 0x0
     693      RenderText {#text} at (0,91) size 184x13
    687694        text run at (0,91) width 184: "This is a text area with wrap=\"soft\""
    688         text run at (183,91) width 1: " "
     695      RenderBR {BR} at (0,0) size 0x0
     696      RenderText {#text} at (0,104) size 184x13
    689697        text run at (0,104) width 184: "This is a text area with wrap=\"soft\""
    690         text run at (183,104) width 1: " "
     698      RenderBR {BR} at (0,0) size 0x0
     699      RenderText {#text} at (0,117) size 184x13
    691700        text run at (0,117) width 184: "This is a text area with wrap=\"soft\""
    692         text run at (183,117) width 1: " "
     701      RenderBR {BR} at (0,0) size 0x0
     702      RenderText {#text} at (0,130) size 184x13
    693703        text run at (0,130) width 184: "This is a text area with wrap=\"soft\""
    694         text run at (183,130) width 1: " "
     704      RenderBR {BR} at (0,0) size 0x0
     705      RenderText {#text} at (0,143) size 184x13
    695706        text run at (0,143) width 184: "This is a text area with wrap=\"soft\""
    696         text run at (183,143) width 1: " "
     707      RenderBR {BR} at (0,0) size 0x0
     708      RenderText {#text} at (0,156) size 184x13
    697709        text run at (0,156) width 184: "This is a text area with wrap=\"soft\""
    698         text run at (183,156) width 1: " "
     710      RenderBR {BR} at (0,0) size 0x0
     711      RenderText {#text} at (0,169) size 184x13
    699712        text run at (0,169) width 184: "This is a text area with wrap=\"soft\""
    700         text run at (183,169) width 1: " "
     713      RenderBR {BR} at (0,0) size 0x0
     714      RenderText {#text} at (0,182) size 184x13
    701715        text run at (0,182) width 184: "This is a text area with wrap=\"soft\""
    702         text run at (183,182) width 1: " "
     716      RenderBR {BR} at (0,0) size 0x0
    703717      RenderBR {BR} at (0,195) size 0x13
    704718layer at (378,971) size 161x32 clip at (379,972) size 144x30 scrollHeight 394
    705719  RenderTextControl {TEXTAREA} at (16,3) size 162x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    706720    RenderBlock {DIV} at (3,3) size 140x390
    707       RenderText {#text} at (0,0) size 121x377
     721      RenderText {#text} at (0,0) size 4x13
    708722        text run at (0,0) width 4: " "
    709         text run at (3,0) width 1: " "
     723      RenderBR {BR} at (3,0) size 1x13
     724      RenderText {#text} at (0,13) size 121x26
    710725        text run at (0,13) width 118: "This is a text area with"
    711726        text run at (117,13) width 4: " "
    712727        text run at (0,26) width 64: "wrap=\"soft\""
    713         text run at (63,26) width 1: " "
     728      RenderBR {BR} at (63,26) size 1x13
     729      RenderText {#text} at (0,39) size 121x26
    714730        text run at (0,39) width 118: "This is a text area with"
    715731        text run at (117,39) width 4: " "
    716732        text run at (0,52) width 64: "wrap=\"soft\""
    717         text run at (63,52) width 1: " "
     733      RenderBR {BR} at (63,52) size 1x13
     734      RenderText {#text} at (0,65) size 121x26
    718735        text run at (0,65) width 118: "This is a text area with"
    719736        text run at (117,65) width 4: " "
    720737        text run at (0,78) width 64: "wrap=\"soft\""
    721         text run at (63,78) width 1: " "
     738      RenderBR {BR} at (63,78) size 1x13
     739      RenderText {#text} at (0,91) size 121x26
    722740        text run at (0,91) width 118: "This is a text area with"
    723741        text run at (117,91) width 4: " "
    724742        text run at (0,104) width 64: "wrap=\"soft\""
    725         text run at (63,104) width 1: " "
     743      RenderBR {BR} at (63,104) size 1x13
     744      RenderText {#text} at (0,117) size 121x26
    726745        text run at (0,117) width 118: "This is a text area with"
    727746        text run at (117,117) width 4: " "
    728747        text run at (0,130) width 64: "wrap=\"soft\""
    729         text run at (63,130) width 1: " "
     748      RenderBR {BR} at (63,130) size 1x13
     749      RenderText {#text} at (0,143) size 121x26
    730750        text run at (0,143) width 118: "This is a text area with"
    731751        text run at (117,143) width 4: " "
    732752        text run at (0,156) width 64: "wrap=\"soft\""
    733         text run at (63,156) width 1: " "
     753      RenderBR {BR} at (63,156) size 1x13
     754      RenderText {#text} at (0,169) size 121x26
    734755        text run at (0,169) width 118: "This is a text area with"
    735756        text run at (117,169) width 4: " "
    736757        text run at (0,182) width 64: "wrap=\"soft\""
    737         text run at (63,182) width 1: " "
     758      RenderBR {BR} at (63,182) size 1x13
     759      RenderText {#text} at (0,195) size 121x26
    738760        text run at (0,195) width 118: "This is a text area with"
    739761        text run at (117,195) width 4: " "
    740762        text run at (0,208) width 64: "wrap=\"soft\""
    741         text run at (63,208) width 1: " "
     763      RenderBR {BR} at (63,208) size 1x13
     764      RenderText {#text} at (0,221) size 121x26
    742765        text run at (0,221) width 118: "This is a text area with"
    743766        text run at (117,221) width 4: " "
    744767        text run at (0,234) width 64: "wrap=\"soft\""
    745         text run at (63,234) width 1: " "
     768      RenderBR {BR} at (63,234) size 1x13
     769      RenderText {#text} at (0,247) size 121x26
    746770        text run at (0,247) width 118: "This is a text area with"
    747771        text run at (117,247) width 4: " "
    748772        text run at (0,260) width 64: "wrap=\"soft\""
    749         text run at (63,260) width 1: " "
     773      RenderBR {BR} at (63,260) size 1x13
     774      RenderText {#text} at (0,273) size 121x26
    750775        text run at (0,273) width 118: "This is a text area with"
    751776        text run at (117,273) width 4: " "
    752777        text run at (0,286) width 64: "wrap=\"soft\""
    753         text run at (63,286) width 1: " "
     778      RenderBR {BR} at (63,286) size 1x13
     779      RenderText {#text} at (0,299) size 121x26
    754780        text run at (0,299) width 118: "This is a text area with"
    755781        text run at (117,299) width 4: " "
    756782        text run at (0,312) width 64: "wrap=\"soft\""
    757         text run at (63,312) width 1: " "
     783      RenderBR {BR} at (63,312) size 1x13
     784      RenderText {#text} at (0,325) size 121x26
    758785        text run at (0,325) width 118: "This is a text area with"
    759786        text run at (117,325) width 4: " "
    760787        text run at (0,338) width 64: "wrap=\"soft\""
    761         text run at (63,338) width 1: " "
     788      RenderBR {BR} at (63,338) size 1x13
     789      RenderText {#text} at (0,351) size 121x26
    762790        text run at (0,351) width 118: "This is a text area with"
    763791        text run at (117,351) width 4: " "
    764792        text run at (0,364) width 64: "wrap=\"soft\""
    765         text run at (63,364) width 1: " "
     793      RenderBR {BR} at (63,364) size 1x13
    766794      RenderBR {BR} at (0,377) size 0x13
    767795layer at (378,1026) size 161x32 clip at (379,1027) size 144x30 scrollHeight 394
    768796  RenderTextControl {TEXTAREA} at (16,3) size 162x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    769797    RenderBlock {DIV} at (3,3) size 140x390
    770       RenderText {#text} at (0,0) size 121x377
     798      RenderText {#text} at (0,0) size 4x13
    771799        text run at (0,0) width 4: " "
    772         text run at (3,0) width 1: " "
     800      RenderBR {BR} at (3,0) size 1x13
     801      RenderText {#text} at (0,13) size 121x26
    773802        text run at (0,13) width 118: "This is a text area with"
    774803        text run at (117,13) width 4: " "
    775804        text run at (0,26) width 64: "wrap=\"soft\""
    776         text run at (63,26) width 1: " "
     805      RenderBR {BR} at (63,26) size 1x13
     806      RenderText {#text} at (0,39) size 121x26
    777807        text run at (0,39) width 118: "This is a text area with"
    778808        text run at (117,39) width 4: " "
    779809        text run at (0,52) width 64: "wrap=\"soft\""
    780         text run at (63,52) width 1: " "
     810      RenderBR {BR} at (63,52) size 1x13
     811      RenderText {#text} at (0,65) size 121x26
    781812        text run at (0,65) width 118: "This is a text area with"
    782813        text run at (117,65) width 4: " "
    783814        text run at (0,78) width 64: "wrap=\"soft\""
    784         text run at (63,78) width 1: " "
     815      RenderBR {BR} at (63,78) size 1x13
     816      RenderText {#text} at (0,91) size 121x26
    785817        text run at (0,91) width 118: "This is a text area with"
    786818        text run at (117,91) width 4: " "
    787819        text run at (0,104) width 64: "wrap=\"soft\""
    788         text run at (63,104) width 1: " "
     820      RenderBR {BR} at (63,104) size 1x13
     821      RenderText {#text} at (0,117) size 121x26
    789822        text run at (0,117) width 118: "This is a text area with"
    790823        text run at (117,117) width 4: " "
    791824        text run at (0,130) width 64: "wrap=\"soft\""
    792         text run at (63,130) width 1: " "
     825      RenderBR {BR} at (63,130) size 1x13
     826      RenderText {#text} at (0,143) size 121x26
    793827        text run at (0,143) width 118: "This is a text area with"
    794828        text run at (117,143) width 4: " "
    795829        text run at (0,156) width 64: "wrap=\"soft\""
    796         text run at (63,156) width 1: " "
     830      RenderBR {BR} at (63,156) size 1x13
     831      RenderText {#text} at (0,169) size 121x26
    797832        text run at (0,169) width 118: "This is a text area with"
    798833        text run at (117,169) width 4: " "
    799834        text run at (0,182) width 64: "wrap=\"soft\""
    800         text run at (63,182) width 1: " "
     835      RenderBR {BR} at (63,182) size 1x13
     836      RenderText {#text} at (0,195) size 121x26
    801837        text run at (0,195) width 118: "This is a text area with"
    802838        text run at (117,195) width 4: " "
    803839        text run at (0,208) width 64: "wrap=\"soft\""
    804         text run at (63,208) width 1: " "
     840      RenderBR {BR} at (63,208) size 1x13
     841      RenderText {#text} at (0,221) size 121x26
    805842        text run at (0,221) width 118: "This is a text area with"
    806843        text run at (117,221) width 4: " "
    807844        text run at (0,234) width 64: "wrap=\"soft\""
    808         text run at (63,234) width 1: " "
     845      RenderBR {BR} at (63,234) size 1x13
     846      RenderText {#text} at (0,247) size 121x26
    809847        text run at (0,247) width 118: "This is a text area with"
    810848        text run at (117,247) width 4: " "
    811849        text run at (0,260) width 64: "wrap=\"soft\""
    812         text run at (63,260) width 1: " "
     850      RenderBR {BR} at (63,260) size 1x13
     851      RenderText {#text} at (0,273) size 121x26
    813852        text run at (0,273) width 118: "This is a text area with"
    814853        text run at (117,273) width 4: " "
    815854        text run at (0,286) width 64: "wrap=\"soft\""
    816         text run at (63,286) width 1: " "
     855      RenderBR {BR} at (63,286) size 1x13
     856      RenderText {#text} at (0,299) size 121x26
    817857        text run at (0,299) width 118: "This is a text area with"
    818858        text run at (117,299) width 4: " "
    819859        text run at (0,312) width 64: "wrap=\"soft\""
    820         text run at (63,312) width 1: " "
     860      RenderBR {BR} at (63,312) size 1x13
     861      RenderText {#text} at (0,325) size 121x26
    821862        text run at (0,325) width 118: "This is a text area with"
    822863        text run at (117,325) width 4: " "
    823864        text run at (0,338) width 64: "wrap=\"soft\""
    824         text run at (63,338) width 1: " "
     865      RenderBR {BR} at (63,338) size 1x13
     866      RenderText {#text} at (0,351) size 121x26
    825867        text run at (0,351) width 118: "This is a text area with"
    826868        text run at (117,351) width 4: " "
    827869        text run at (0,364) width 64: "wrap=\"soft\""
    828         text run at (63,364) width 1: " "
     870      RenderBR {BR} at (63,364) size 1x13
    829871      RenderBR {BR} at (0,377) size 0x13
  • trunk/LayoutTests/platform/mac-catalina/fast/parser/open-comment-in-textarea-expected.txt

    r270409 r280482  
    99  RenderTextControl {TEXTAREA} at (2,2) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1010    RenderBlock {DIV} at (3,3) size 140x52
    11       RenderText {#text} at (0,0) size 139x39
     11      RenderText {#text} at (0,0) size 22x13
    1212        text run at (0,0) width 22: "<!--"
    13         text run at (21,0) width 1: " "
     13      RenderBR {BR} at (21,0) size 1x13
     14      RenderText {#text} at (0,13) size 139x26
    1415        text run at (0,13) width 139: "This should be part of the "
    1516        text run at (0,26) width 47: "textarea."
    16         text run at (46,26) width 1: " "
     17      RenderBR {BR} at (46,26) size 1x13
    1718      RenderBR {BR} at (0,39) size 0x13
  • trunk/LayoutTests/platform/mac-catalina/http/tests/navigation/javascriptlink-frames-expected.txt

    r270709 r280482  
    109109              RenderText {#text} at (0,0) size 178x13
    110110                text run at (0,0) width 178: "More initial text before user input."
    111                 text run at (177,0) width 1: " "
     111              RenderBR {BR} at (177,0) size 1x13
    112112              RenderBR {BR} at (0,13) size 0x13
    113113      RenderFrame {FRAME} at (0,540) size 800x60
  • trunk/LayoutTests/platform/mac/editing/input/reveal-caret-of-multiline-input-expected.txt

    r269218 r280482  
    1313  RenderTextControl {TEXTAREA} at (2,2) size 91x136 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1414    RenderBlock {DIV} at (3,3) size 70x416
    15       RenderText {#text} at (0,0) size 19x403
     15      RenderText {#text} at (0,0) size 14x13
    1616        text run at (0,0) width 14: "00"
    17         text run at (13,0) width 1: " "
     17      RenderBR {BR} at (13,0) size 1x13
     18      RenderText {#text} at (0,13) size 13x13
    1819        text run at (0,13) width 13: "01"
    19         text run at (12,13) width 1: " "
     20      RenderBR {BR} at (12,13) size 1x13
     21      RenderText {#text} at (0,26) size 14x13
    2022        text run at (0,26) width 14: "02"
    21         text run at (13,26) width 1: " "
     23      RenderBR {BR} at (13,26) size 1x13
     24      RenderText {#text} at (0,39) size 14x13
    2225        text run at (0,39) width 14: "03"
    23         text run at (13,39) width 1: " "
     26      RenderBR {BR} at (13,39) size 1x13
     27      RenderText {#text} at (0,52) size 15x13
    2428        text run at (0,52) width 15: "04"
    25         text run at (14,52) width 1: " "
     29      RenderBR {BR} at (14,52) size 1x13
     30      RenderText {#text} at (0,65) size 14x13
    2631        text run at (0,65) width 14: "05"
    27         text run at (13,65) width 1: " "
     32      RenderBR {BR} at (13,65) size 1x13
     33      RenderText {#text} at (0,78) size 15x13
    2834        text run at (0,78) width 15: "06"
    29         text run at (14,78) width 1: " "
     35      RenderBR {BR} at (14,78) size 1x13
     36      RenderText {#text} at (0,91) size 14x13
    3037        text run at (0,91) width 14: "07"
    31         text run at (13,91) width 1: " "
     38      RenderBR {BR} at (13,91) size 1x13
     39      RenderText {#text} at (0,104) size 15x13
    3240        text run at (0,104) width 15: "08"
    33         text run at (14,104) width 1: " "
     41      RenderBR {BR} at (14,104) size 1x13
     42      RenderText {#text} at (0,117) size 15x13
    3443        text run at (0,117) width 15: "09"
    35         text run at (14,117) width 1: " "
     44      RenderBR {BR} at (14,117) size 1x13
     45      RenderText {#text} at (0,130) size 13x13
    3646        text run at (0,130) width 13: "10"
    37         text run at (12,130) width 1: " "
     47      RenderBR {BR} at (12,130) size 1x13
     48      RenderText {#text} at (0,143) size 11x13
    3849        text run at (0,143) width 11: "11"
    39         text run at (10,143) width 1: " "
     50      RenderBR {BR} at (10,143) size 1x13
     51      RenderText {#text} at (0,156) size 19x13
    4052        text run at (0,156) width 19: ">12"
    41         text run at (18,156) width 1: " "
     53      RenderBR {BR} at (18,156) size 1x13
     54      RenderText {#text} at (0,169) size 13x13
    4255        text run at (0,169) width 13: "13"
    43         text run at (12,169) width 1: " "
     56      RenderBR {BR} at (12,169) size 1x13
     57      RenderText {#text} at (0,182) size 13x13
    4458        text run at (0,182) width 13: "14"
    45         text run at (12,182) width 1: " "
     59      RenderBR {BR} at (12,182) size 1x13
     60      RenderText {#text} at (0,195) size 13x13
    4661        text run at (0,195) width 13: "15"
    47         text run at (12,195) width 1: " "
     62      RenderBR {BR} at (12,195) size 1x13
     63      RenderText {#text} at (0,208) size 13x13
    4864        text run at (0,208) width 13: "16"
    49         text run at (12,208) width 1: " "
     65      RenderBR {BR} at (12,208) size 1x13
     66      RenderText {#text} at (0,221) size 12x13
    5067        text run at (0,221) width 12: "17"
    51         text run at (11,221) width 1: " "
     68      RenderBR {BR} at (11,221) size 1x13
     69      RenderText {#text} at (0,234) size 13x13
    5270        text run at (0,234) width 13: "18"
    53         text run at (12,234) width 1: " "
     71      RenderBR {BR} at (12,234) size 1x13
     72      RenderText {#text} at (0,247) size 13x13
    5473        text run at (0,247) width 13: "19"
    55         text run at (12,247) width 1: " "
     74      RenderBR {BR} at (12,247) size 1x13
     75      RenderText {#text} at (0,260) size 14x13
    5676        text run at (0,260) width 14: "20"
    57         text run at (13,260) width 1: " "
     77      RenderBR {BR} at (13,260) size 1x13
     78      RenderText {#text} at (0,273) size 12x13
    5879        text run at (0,273) width 12: "21"
    59         text run at (11,273) width 1: " "
     80      RenderBR {BR} at (11,273) size 1x13
     81      RenderText {#text} at (0,286) size 14x13
    6082        text run at (0,286) width 14: "22"
    61         text run at (13,286) width 1: " "
     83      RenderBR {BR} at (13,286) size 1x13
     84      RenderText {#text} at (0,299) size 14x13
    6285        text run at (0,299) width 14: "23"
    63         text run at (13,299) width 1: " "
     86      RenderBR {BR} at (13,299) size 1x13
     87      RenderText {#text} at (0,312) size 14x13
    6488        text run at (0,312) width 14: "24"
    65         text run at (13,312) width 1: " "
     89      RenderBR {BR} at (13,312) size 1x13
     90      RenderText {#text} at (0,325) size 14x13
    6691        text run at (0,325) width 14: "25"
    67         text run at (13,325) width 1: " "
     92      RenderBR {BR} at (13,325) size 1x13
     93      RenderText {#text} at (0,338) size 14x13
    6894        text run at (0,338) width 14: "26"
    69         text run at (13,338) width 1: " "
     95      RenderBR {BR} at (13,338) size 1x13
     96      RenderText {#text} at (0,351) size 14x13
    7097        text run at (0,351) width 14: "27"
    71         text run at (13,351) width 1: " "
     98      RenderBR {BR} at (13,351) size 1x13
     99      RenderText {#text} at (0,364) size 14x13
    72100        text run at (0,364) width 14: "28"
    73         text run at (13,364) width 1: " "
     101      RenderBR {BR} at (13,364) size 1x13
     102      RenderText {#text} at (0,377) size 14x13
    74103        text run at (0,377) width 14: "29"
    75         text run at (13,377) width 1: " "
     104      RenderBR {BR} at (13,377) size 1x13
     105      RenderText {#text} at (0,390) size 14x13
    76106        text run at (0,390) width 14: "30"
    77         text run at (13,390) width 1: " "
     107      RenderBR {BR} at (13,390) size 1x13
    78108      RenderBR {BR} at (0,403) size 0x13
    79 caret: position 37 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
     109caret: position 1 of child 24 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
  • trunk/LayoutTests/platform/mac/fast/forms/basic-textareas-quirks-expected.txt

    r270409 r280482  
    670670  RenderTextControl {TEXTAREA} at (16,3) size 162x47 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    671671    RenderBlock {DIV} at (3,3) size 140x208
    672       RenderText {#text} at (0,0) size 185x195
     672      RenderText {#text} at (0,0) size 4x13
    673673        text run at (0,0) width 4: " "
    674         text run at (3,0) width 1: " "
     674      RenderBR {BR} at (3,0) size 1x13
     675      RenderText {#text} at (0,13) size 185x13
    675676        text run at (0,13) width 185: "This is a text area with wrap=\"soft\""
    676         text run at (184,13) width 1: " "
     677      RenderBR {BR} at (0,0) size 0x0
     678      RenderText {#text} at (0,26) size 185x13
    677679        text run at (0,26) width 185: "This is a text area with wrap=\"soft\""
    678         text run at (184,26) width 1: " "
     680      RenderBR {BR} at (0,0) size 0x0
     681      RenderText {#text} at (0,39) size 185x13
    679682        text run at (0,39) width 185: "This is a text area with wrap=\"soft\""
    680         text run at (184,39) width 1: " "
     683      RenderBR {BR} at (0,0) size 0x0
     684      RenderText {#text} at (0,52) size 185x13
    681685        text run at (0,52) width 185: "This is a text area with wrap=\"soft\""
    682         text run at (184,52) width 1: " "
     686      RenderBR {BR} at (0,0) size 0x0
     687      RenderText {#text} at (0,65) size 185x13
    683688        text run at (0,65) width 185: "This is a text area with wrap=\"soft\""
    684         text run at (184,65) width 1: " "
     689      RenderBR {BR} at (0,0) size 0x0
     690      RenderText {#text} at (0,78) size 185x13
    685691        text run at (0,78) width 185: "This is a text area with wrap=\"soft\""
    686         text run at (184,78) width 1: " "
     692      RenderBR {BR} at (0,0) size 0x0
     693      RenderText {#text} at (0,91) size 185x13
    687694        text run at (0,91) width 185: "This is a text area with wrap=\"soft\""
    688         text run at (184,91) width 1: " "
     695      RenderBR {BR} at (0,0) size 0x0
     696      RenderText {#text} at (0,104) size 185x13
    689697        text run at (0,104) width 185: "This is a text area with wrap=\"soft\""
    690         text run at (184,104) width 1: " "
     698      RenderBR {BR} at (0,0) size 0x0
     699      RenderText {#text} at (0,117) size 185x13
    691700        text run at (0,117) width 185: "This is a text area with wrap=\"soft\""
    692         text run at (184,117) width 1: " "
     701      RenderBR {BR} at (0,0) size 0x0
     702      RenderText {#text} at (0,130) size 185x13
    693703        text run at (0,130) width 185: "This is a text area with wrap=\"soft\""
    694         text run at (184,130) width 1: " "
     704      RenderBR {BR} at (0,0) size 0x0
     705      RenderText {#text} at (0,143) size 185x13
    695706        text run at (0,143) width 185: "This is a text area with wrap=\"soft\""
    696         text run at (184,143) width 1: " "
     707      RenderBR {BR} at (0,0) size 0x0
     708      RenderText {#text} at (0,156) size 185x13
    697709        text run at (0,156) width 185: "This is a text area with wrap=\"soft\""
    698         text run at (184,156) width 1: " "
     710      RenderBR {BR} at (0,0) size 0x0
     711      RenderText {#text} at (0,169) size 185x13
    699712        text run at (0,169) width 185: "This is a text area with wrap=\"soft\""
    700         text run at (184,169) width 1: " "
     713      RenderBR {BR} at (0,0) size 0x0
     714      RenderText {#text} at (0,182) size 185x13
    701715        text run at (0,182) width 185: "This is a text area with wrap=\"soft\""
    702         text run at (184,182) width 1: " "
     716      RenderBR {BR} at (0,0) size 0x0
    703717      RenderBR {BR} at (0,195) size 0x13
    704718layer at (378,971) size 161x32 clip at (379,972) size 144x30 scrollHeight 394
    705719  RenderTextControl {TEXTAREA} at (16,3) size 162x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    706720    RenderBlock {DIV} at (3,3) size 140x390
    707       RenderText {#text} at (0,0) size 121x377
     721      RenderText {#text} at (0,0) size 4x13
    708722        text run at (0,0) width 4: " "
    709         text run at (3,0) width 1: " "
     723      RenderBR {BR} at (3,0) size 1x13
     724      RenderText {#text} at (0,13) size 121x26
    710725        text run at (0,13) width 118: "This is a text area with"
    711726        text run at (117,13) width 4: " "
    712727        text run at (0,26) width 64: "wrap=\"soft\""
    713         text run at (63,26) width 1: " "
     728      RenderBR {BR} at (63,26) size 1x13
     729      RenderText {#text} at (0,39) size 121x26
    714730        text run at (0,39) width 118: "This is a text area with"
    715731        text run at (117,39) width 4: " "
    716732        text run at (0,52) width 64: "wrap=\"soft\""
    717         text run at (63,52) width 1: " "
     733      RenderBR {BR} at (63,52) size 1x13
     734      RenderText {#text} at (0,65) size 121x26
    718735        text run at (0,65) width 118: "This is a text area with"
    719736        text run at (117,65) width 4: " "
    720737        text run at (0,78) width 64: "wrap=\"soft\""
    721         text run at (63,78) width 1: " "
     738      RenderBR {BR} at (63,78) size 1x13
     739      RenderText {#text} at (0,91) size 121x26
    722740        text run at (0,91) width 118: "This is a text area with"
    723741        text run at (117,91) width 4: " "
    724742        text run at (0,104) width 64: "wrap=\"soft\""
    725         text run at (63,104) width 1: " "
     743      RenderBR {BR} at (63,104) size 1x13
     744      RenderText {#text} at (0,117) size 121x26
    726745        text run at (0,117) width 118: "This is a text area with"
    727746        text run at (117,117) width 4: " "
    728747        text run at (0,130) width 64: "wrap=\"soft\""
    729         text run at (63,130) width 1: " "
     748      RenderBR {BR} at (63,130) size 1x13
     749      RenderText {#text} at (0,143) size 121x26
    730750        text run at (0,143) width 118: "This is a text area with"
    731751        text run at (117,143) width 4: " "
    732752        text run at (0,156) width 64: "wrap=\"soft\""
    733         text run at (63,156) width 1: " "
     753      RenderBR {BR} at (63,156) size 1x13
     754      RenderText {#text} at (0,169) size 121x26
    734755        text run at (0,169) width 118: "This is a text area with"
    735756        text run at (117,169) width 4: " "
    736757        text run at (0,182) width 64: "wrap=\"soft\""
    737         text run at (63,182) width 1: " "
     758      RenderBR {BR} at (63,182) size 1x13
     759      RenderText {#text} at (0,195) size 121x26
    738760        text run at (0,195) width 118: "This is a text area with"
    739761        text run at (117,195) width 4: " "
    740762        text run at (0,208) width 64: "wrap=\"soft\""
    741         text run at (63,208) width 1: " "
     763      RenderBR {BR} at (63,208) size 1x13
     764      RenderText {#text} at (0,221) size 121x26
    742765        text run at (0,221) width 118: "This is a text area with"
    743766        text run at (117,221) width 4: " "
    744767        text run at (0,234) width 64: "wrap=\"soft\""
    745         text run at (63,234) width 1: " "
     768      RenderBR {BR} at (63,234) size 1x13
     769      RenderText {#text} at (0,247) size 121x26
    746770        text run at (0,247) width 118: "This is a text area with"
    747771        text run at (117,247) width 4: " "
    748772        text run at (0,260) width 64: "wrap=\"soft\""
    749         text run at (63,260) width 1: " "
     773      RenderBR {BR} at (63,260) size 1x13
     774      RenderText {#text} at (0,273) size 121x26
    750775        text run at (0,273) width 118: "This is a text area with"
    751776        text run at (117,273) width 4: " "
    752777        text run at (0,286) width 64: "wrap=\"soft\""
    753         text run at (63,286) width 1: " "
     778      RenderBR {BR} at (63,286) size 1x13
     779      RenderText {#text} at (0,299) size 121x26
    754780        text run at (0,299) width 118: "This is a text area with"
    755781        text run at (117,299) width 4: " "
    756782        text run at (0,312) width 64: "wrap=\"soft\""
    757         text run at (63,312) width 1: " "
     783      RenderBR {BR} at (63,312) size 1x13
     784      RenderText {#text} at (0,325) size 121x26
    758785        text run at (0,325) width 118: "This is a text area with"
    759786        text run at (117,325) width 4: " "
    760787        text run at (0,338) width 64: "wrap=\"soft\""
    761         text run at (63,338) width 1: " "
     788      RenderBR {BR} at (63,338) size 1x13
     789      RenderText {#text} at (0,351) size 121x26
    762790        text run at (0,351) width 118: "This is a text area with"
    763791        text run at (117,351) width 4: " "
    764792        text run at (0,364) width 64: "wrap=\"soft\""
    765         text run at (63,364) width 1: " "
     793      RenderBR {BR} at (63,364) size 1x13
    766794      RenderBR {BR} at (0,377) size 0x13
    767795layer at (378,1026) size 161x32 clip at (379,1027) size 144x30 scrollHeight 394
    768796  RenderTextControl {TEXTAREA} at (16,3) size 162x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    769797    RenderBlock {DIV} at (3,3) size 140x390
    770       RenderText {#text} at (0,0) size 121x377
     798      RenderText {#text} at (0,0) size 4x13
    771799        text run at (0,0) width 4: " "
    772         text run at (3,0) width 1: " "
     800      RenderBR {BR} at (3,0) size 1x13
     801      RenderText {#text} at (0,13) size 121x26
    773802        text run at (0,13) width 118: "This is a text area with"
    774803        text run at (117,13) width 4: " "
    775804        text run at (0,26) width 64: "wrap=\"soft\""
    776         text run at (63,26) width 1: " "
     805      RenderBR {BR} at (63,26) size 1x13
     806      RenderText {#text} at (0,39) size 121x26
    777807        text run at (0,39) width 118: "This is a text area with"
    778808        text run at (117,39) width 4: " "
    779809        text run at (0,52) width 64: "wrap=\"soft\""
    780         text run at (63,52) width 1: " "
     810      RenderBR {BR} at (63,52) size 1x13
     811      RenderText {#text} at (0,65) size 121x26
    781812        text run at (0,65) width 118: "This is a text area with"
    782813        text run at (117,65) width 4: " "
    783814        text run at (0,78) width 64: "wrap=\"soft\""
    784         text run at (63,78) width 1: " "
     815      RenderBR {BR} at (63,78) size 1x13
     816      RenderText {#text} at (0,91) size 121x26
    785817        text run at (0,91) width 118: "This is a text area with"
    786818        text run at (117,91) width 4: " "
    787819        text run at (0,104) width 64: "wrap=\"soft\""
    788         text run at (63,104) width 1: " "
     820      RenderBR {BR} at (63,104) size 1x13
     821      RenderText {#text} at (0,117) size 121x26
    789822        text run at (0,117) width 118: "This is a text area with"
    790823        text run at (117,117) width 4: " "
    791824        text run at (0,130) width 64: "wrap=\"soft\""
    792         text run at (63,130) width 1: " "
     825      RenderBR {BR} at (63,130) size 1x13
     826      RenderText {#text} at (0,143) size 121x26
    793827        text run at (0,143) width 118: "This is a text area with"
    794828        text run at (117,143) width 4: " "
    795829        text run at (0,156) width 64: "wrap=\"soft\""
    796         text run at (63,156) width 1: " "
     830      RenderBR {BR} at (63,156) size 1x13
     831      RenderText {#text} at (0,169) size 121x26
    797832        text run at (0,169) width 118: "This is a text area with"
    798833        text run at (117,169) width 4: " "
    799834        text run at (0,182) width 64: "wrap=\"soft\""
    800         text run at (63,182) width 1: " "
     835      RenderBR {BR} at (63,182) size 1x13
     836      RenderText {#text} at (0,195) size 121x26
    801837        text run at (0,195) width 118: "This is a text area with"
    802838        text run at (117,195) width 4: " "
    803839        text run at (0,208) width 64: "wrap=\"soft\""
    804         text run at (63,208) width 1: " "
     840      RenderBR {BR} at (63,208) size 1x13
     841      RenderText {#text} at (0,221) size 121x26
    805842        text run at (0,221) width 118: "This is a text area with"
    806843        text run at (117,221) width 4: " "
    807844        text run at (0,234) width 64: "wrap=\"soft\""
    808         text run at (63,234) width 1: " "
     845      RenderBR {BR} at (63,234) size 1x13
     846      RenderText {#text} at (0,247) size 121x26
    809847        text run at (0,247) width 118: "This is a text area with"
    810848        text run at (117,247) width 4: " "
    811849        text run at (0,260) width 64: "wrap=\"soft\""
    812         text run at (63,260) width 1: " "
     850      RenderBR {BR} at (63,260) size 1x13
     851      RenderText {#text} at (0,273) size 121x26
    813852        text run at (0,273) width 118: "This is a text area with"
    814853        text run at (117,273) width 4: " "
    815854        text run at (0,286) width 64: "wrap=\"soft\""
    816         text run at (63,286) width 1: " "
     855      RenderBR {BR} at (63,286) size 1x13
     856      RenderText {#text} at (0,299) size 121x26
    817857        text run at (0,299) width 118: "This is a text area with"
    818858        text run at (117,299) width 4: " "
    819859        text run at (0,312) width 64: "wrap=\"soft\""
    820         text run at (63,312) width 1: " "
     860      RenderBR {BR} at (63,312) size 1x13
     861      RenderText {#text} at (0,325) size 121x26
    821862        text run at (0,325) width 118: "This is a text area with"
    822863        text run at (117,325) width 4: " "
    823864        text run at (0,338) width 64: "wrap=\"soft\""
    824         text run at (63,338) width 1: " "
     865      RenderBR {BR} at (63,338) size 1x13
     866      RenderText {#text} at (0,351) size 121x26
    825867        text run at (0,351) width 118: "This is a text area with"
    826868        text run at (117,351) width 4: " "
    827869        text run at (0,364) width 64: "wrap=\"soft\""
    828         text run at (63,364) width 1: " "
     870      RenderBR {BR} at (63,364) size 1x13
    829871      RenderBR {BR} at (0,377) size 0x13
  • trunk/LayoutTests/platform/mac/fast/forms/textarea-scroll-height-expected.txt

    r251015 r280482  
    1111  RenderTextControl {TEXTAREA} at (0,0) size 200x200 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1212    RenderBlock {DIV} at (3,3) size 179x312
    13       RenderText {#text} at (0,0) size 83x299
     13      RenderText {#text} at (0,0) size 83x13
    1414        text run at (0,0) width 83: "Lots of content."
    15         text run at (82,0) width 1: " "
     15      RenderBR {BR} at (82,0) size 1x13
     16      RenderText {#text} at (0,13) size 83x13
    1617        text run at (0,13) width 83: "Lots of content."
    17         text run at (82,13) width 1: " "
     18      RenderBR {BR} at (82,13) size 1x13
     19      RenderText {#text} at (0,26) size 83x13
    1820        text run at (0,26) width 83: "Lots of content."
    19         text run at (82,26) width 1: " "
     21      RenderBR {BR} at (82,26) size 1x13
     22      RenderText {#text} at (0,39) size 83x13
    2023        text run at (0,39) width 83: "Lots of content."
    21         text run at (82,39) width 1: " "
    22         text run at (0,52) width 0: " "
     24      RenderBR {BR} at (82,39) size 1x13
     25      RenderBR {BR} at (0,52) size 0x13
     26      RenderText {#text} at (0,65) size 83x13
    2327        text run at (0,65) width 83: "Lots of content."
    24         text run at (82,65) width 1: " "
     28      RenderBR {BR} at (82,65) size 1x13
     29      RenderText {#text} at (0,78) size 83x13
    2530        text run at (0,78) width 83: "Lots of content."
    26         text run at (82,78) width 1: " "
    27         text run at (0,91) width 0: " "
     31      RenderBR {BR} at (82,78) size 1x13
     32      RenderBR {BR} at (0,91) size 0x13
     33      RenderText {#text} at (0,104) size 83x13
    2834        text run at (0,104) width 83: "Lots of content."
    29         text run at (82,104) width 1: " "
     35      RenderBR {BR} at (82,104) size 1x13
     36      RenderText {#text} at (0,117) size 83x13
    3037        text run at (0,117) width 83: "Lots of content."
    31         text run at (82,117) width 1: " "
    32         text run at (0,130) width 0: " "
     38      RenderBR {BR} at (82,117) size 1x13
     39      RenderBR {BR} at (0,130) size 0x13
     40      RenderText {#text} at (0,143) size 83x13
    3341        text run at (0,143) width 83: "Lots of content."
    34         text run at (82,143) width 1: " "
     42      RenderBR {BR} at (82,143) size 1x13
     43      RenderText {#text} at (0,156) size 83x13
    3544        text run at (0,156) width 83: "Lots of content."
    36         text run at (82,156) width 1: " "
    37         text run at (0,169) width 0: " "
     45      RenderBR {BR} at (82,156) size 1x13
     46      RenderBR {BR} at (0,169) size 0x13
     47      RenderText {#text} at (0,182) size 83x13
    3848        text run at (0,182) width 83: "Lots of content."
    39         text run at (82,182) width 1: " "
     49      RenderBR {BR} at (82,182) size 1x13
     50      RenderText {#text} at (0,195) size 83x13
    4051        text run at (0,195) width 83: "Lots of content."
    41         text run at (82,195) width 1: " "
    42         text run at (0,208) width 0: " "
     52      RenderBR {BR} at (82,195) size 1x13
     53      RenderBR {BR} at (0,208) size 0x13
     54      RenderText {#text} at (0,221) size 83x13
    4355        text run at (0,221) width 83: "Lots of content."
    44         text run at (82,221) width 1: " "
     56      RenderBR {BR} at (82,221) size 1x13
     57      RenderText {#text} at (0,234) size 83x13
    4558        text run at (0,234) width 83: "Lots of content."
    46         text run at (82,234) width 1: " "
    47         text run at (0,247) width 0: " "
     59      RenderBR {BR} at (82,234) size 1x13
     60      RenderBR {BR} at (0,247) size 0x13
     61      RenderText {#text} at (0,260) size 83x13
    4862        text run at (0,260) width 83: "Lots of content."
    49         text run at (82,260) width 1: " "
     63      RenderBR {BR} at (82,260) size 1x13
     64      RenderText {#text} at (0,273) size 83x13
    5065        text run at (0,273) width 83: "Lots of content."
    51         text run at (82,273) width 1: " "
    52         text run at (0,286) width 0: " "
     66      RenderBR {BR} at (82,273) size 1x13
     67      RenderBR {BR} at (0,286) size 0x13
    5368      RenderBR {BR} at (0,299) size 0x13
  • trunk/LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.txt

    r268958 r280482  
    1111  RenderTextControl {TEXTAREA} at (2,20) size 161x84 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1212    RenderBlock {DIV} at (3,3) size 140x117
    13       RenderText {#text} at (0,0) size 8x52
     13      RenderText {#text} at (0,0) size 6x13
    1414        text run at (0,0) width 6: "1"
    15         text run at (5,0) width 1: " "
     15      RenderBR {BR} at (5,0) size 1x13
     16      RenderText {#text} at (0,13) size 7x13
    1617        text run at (0,13) width 7: "2"
    17         text run at (6,13) width 1: " "
     18      RenderBR {BR} at (6,13) size 1x13
     19      RenderText {#text} at (0,26) size 7x13
    1820        text run at (0,26) width 7: "3"
    19         text run at (6,26) width 1: " "
     21      RenderBR {BR} at (6,26) size 1x13
     22      RenderText {#text} at (0,39) size 8x13
    2023        text run at (0,39) width 8: "4"
    21         text run at (7,39) width 1: " "
     24      RenderBR {BR} at (7,39) size 1x13
    2225      RenderText {#text} at (0,52) size 7x13
    2326        text run at (0,52) width 7: "5"
     
    3841      RenderText {#text} at (0,104) size 0x13
    3942        text run at (0,104) width 0: " "
    40 caret: position 0 of child 9 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
     43caret: position 0 of child 16 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
  • trunk/LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.txt

    r268520 r280482  
    1515  RenderTextControl {TEXTAREA} at (2,20) size 161x97 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1616    RenderBlock {DIV} at (3,3) size 140x273
    17       RenderText {#text} at (0,0) size 40x260
     17      RenderText {#text} at (0,0) size 6x13
    1818        text run at (0,0) width 6: "1"
    19         text run at (5,0) width 1: " "
     19      RenderBR {BR} at (5,0) size 1x13
     20      RenderText {#text} at (0,13) size 7x13
    2021        text run at (0,13) width 7: "2"
    21         text run at (6,13) width 1: " "
     22      RenderBR {BR} at (6,13) size 1x13
     23      RenderText {#text} at (0,26) size 7x13
    2224        text run at (0,26) width 7: "3"
    23         text run at (6,26) width 1: " "
     25      RenderBR {BR} at (6,26) size 1x13
     26      RenderText {#text} at (0,39) size 8x13
    2427        text run at (0,39) width 8: "4"
    25         text run at (7,39) width 1: " "
     28      RenderBR {BR} at (7,39) size 1x13
     29      RenderText {#text} at (0,52) size 7x13
    2630        text run at (0,52) width 7: "5"
    27         text run at (6,52) width 1: " "
     31      RenderBR {BR} at (6,52) size 1x13
     32      RenderText {#text} at (0,65) size 8x13
    2833        text run at (0,65) width 8: "6"
    29         text run at (7,65) width 1: " "
     34      RenderBR {BR} at (7,65) size 1x13
     35      RenderText {#text} at (0,78) size 7x13
    3036        text run at (0,78) width 7: "7"
    31         text run at (6,78) width 1: " "
     37      RenderBR {BR} at (6,78) size 1x13
     38      RenderText {#text} at (0,91) size 8x13
    3239        text run at (0,91) width 8: "8"
    33         text run at (7,91) width 1: " "
     40      RenderBR {BR} at (7,91) size 1x13
     41      RenderText {#text} at (0,104) size 8x13
    3442        text run at (0,104) width 8: "9"
    35         text run at (7,104) width 1: " "
     43      RenderBR {BR} at (7,104) size 1x13
     44      RenderText {#text} at (0,117) size 13x13
    3645        text run at (0,117) width 13: "10"
    37         text run at (12,117) width 1: " "
     46      RenderBR {BR} at (12,117) size 1x13
     47      RenderText {#text} at (0,130) size 11x13
    3848        text run at (0,130) width 11: "11"
    39         text run at (10,130) width 1: " "
     49      RenderBR {BR} at (10,130) size 1x13
     50      RenderText {#text} at (0,143) size 12x13
    4051        text run at (0,143) width 12: "12"
    41         text run at (11,143) width 1: " "
     52      RenderBR {BR} at (11,143) size 1x13
     53      RenderText {#text} at (0,156) size 13x13
    4254        text run at (0,156) width 13: "13"
    43         text run at (12,156) width 1: " "
     55      RenderBR {BR} at (12,156) size 1x13
     56      RenderText {#text} at (0,169) size 13x13
    4457        text run at (0,169) width 13: "14"
    45         text run at (12,169) width 1: " "
     58      RenderBR {BR} at (12,169) size 1x13
     59      RenderText {#text} at (0,182) size 13x13
    4660        text run at (0,182) width 13: "15"
    47         text run at (12,182) width 1: " "
     61      RenderBR {BR} at (12,182) size 1x13
     62      RenderText {#text} at (0,195) size 13x13
    4863        text run at (0,195) width 13: "16"
    49         text run at (12,195) width 1: " "
     64      RenderBR {BR} at (12,195) size 1x13
     65      RenderText {#text} at (0,208) size 12x13
    5066        text run at (0,208) width 12: "17"
    51         text run at (11,208) width 1: " "
     67      RenderBR {BR} at (11,208) size 1x13
     68      RenderText {#text} at (0,221) size 40x13
    5269        text run at (0,221) width 40: "18 Pass"
    53         text run at (39,221) width 1: " "
     70      RenderBR {BR} at (39,221) size 1x13
     71      RenderText {#text} at (0,234) size 13x13
    5472        text run at (0,234) width 13: "19"
    55         text run at (12,234) width 1: " "
     73      RenderBR {BR} at (12,234) size 1x13
     74      RenderText {#text} at (0,247) size 14x13
    5675        text run at (0,247) width 14: "20"
    57         text run at (13,247) width 1: " "
     76      RenderBR {BR} at (13,247) size 1x13
    5877      RenderBR {BR} at (0,260) size 0x13
    59 caret: position 49 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
     78caret: position 7 of child 34 {#text} of child 0 {DIV} of {#document-fragment} of child 3 {TEXTAREA} of body
  • trunk/LayoutTests/platform/mac/fast/forms/textarea-width-expected.txt

    r177774 r280482  
    1717        text run at (0,0) width 454: "1234567890abcdefghijABCDEFGHIJ1234567890abcdefghijABCDEFGHIJ12345X7890abcde"
    1818        text run at (0,12) width 267: "fghijABCDEFGXIJ1234567890abcdefghijABCDEFGHIJ"
    19         text run at (266,12) width 1: " "
     19      RenderBR {BR} at (266,12) size 1x12
    2020      RenderBR {BR} at (0,24) size 0x12
  • trunk/LayoutTests/platform/mac/fast/parser/open-comment-in-textarea-expected.txt

    r270409 r280482  
    99  RenderTextControl {TEXTAREA} at (2,2) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1010    RenderBlock {DIV} at (3,3) size 140x52
    11       RenderText {#text} at (0,0) size 139x39
     11      RenderText {#text} at (0,0) size 21x13
    1212        text run at (0,0) width 21: "<!--"
    13         text run at (20,0) width 1: " "
     13      RenderBR {BR} at (20,0) size 1x13
     14      RenderText {#text} at (0,13) size 139x26
    1415        text run at (0,13) width 139: "This should be part of the "
    1516        text run at (0,26) width 47: "textarea."
    16         text run at (46,26) width 1: " "
     17      RenderBR {BR} at (46,26) size 1x13
    1718      RenderBR {BR} at (0,39) size 0x13
  • trunk/LayoutTests/platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt

    r202826 r280482  
    1717  RenderTextControl {TEXTAREA} at (2,2) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1818    RenderBlock {DIV} at (3,3) size 365x39
    19       RenderText {#text} at (336,0) size 365x26
    20         text run at (336,0) width 1 RTL: " "
     19      RenderText {#text} at (336,0) size 29x13
    2120        text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     21      RenderBR {BR} at (336,0) size 1x13
     22      RenderText {#text} at (0,13) size 29x13
    2223        text run at (0,13) width 29: "hello!"
    23         text run at (28,13) width 1: " "
     24      RenderBR {BR} at (28,13) size 1x13
    2425      RenderBR {BR} at (365,26) size 0x13
    2526layer at (10,112) size 371x58 clip at (11,113) size 369x56
    2627  RenderTextControl {TEXTAREA} at (2,68) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    2728    RenderBlock {DIV} at (3,3) size 365x39
    28       RenderText {#text} at (336,0) size 365x26
    29         text run at (336,0) width 1 RTL: " "
     29      RenderText {#text} at (336,0) size 29x13
    3030        text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     31      RenderBR {BR} at (336,0) size 1x13
     32      RenderText {#text} at (0,13) size 29x13
    3133        text run at (0,13) width 29: "hello!"
    32         text run at (28,13) width 1: " "
     34      RenderBR {BR} at (28,13) size 1x13
    3335      RenderBR {BR} at (0,26) size 0x13
    3436layer at (10,178) size 371x58 clip at (11,179) size 369x56
    3537  RenderTextControl {TEXTAREA} at (2,134) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    3638    RenderBlock {DIV} at (3,3) size 365x39
    37       RenderText {#text} at (336,0) size 365x26
    38         text run at (336,0) width 1 RTL: " "
     39      RenderText {#text} at (336,0) size 29x13
    3940        text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     41      RenderBR {BR} at (336,0) size 1x13
     42      RenderText {#text} at (0,13) size 29x13
    4043        text run at (0,13) width 29: "hello!"
    41         text run at (28,13) width 1: " "
     44      RenderBR {BR} at (28,13) size 1x13
    4245      RenderBR {BR} at (0,26) size 0x13
    4346layer at (10,244) size 371x58 clip at (11,245) size 369x56
    4447  RenderTextControl {TEXTAREA} at (2,200) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    4548    RenderBlock {DIV} at (3,3) size 365x39
    46       RenderText {#text} at (336,0) size 365x26
    47         text run at (336,0) width 1 RTL: " "
     49      RenderText {#text} at (336,0) size 29x13
    4850        text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
     51      RenderBR {BR} at (336,0) size 1x13
     52      RenderText {#text} at (0,13) size 29x13
    4953        text run at (0,13) width 29: "hello!"
    50         text run at (28,13) width 1: " "
     54      RenderBR {BR} at (28,13) size 1x13
    5155      RenderBR {BR} at (365,26) size 0x13
  • trunk/LayoutTests/platform/mac/http/tests/navigation/javascriptlink-frames-expected.txt

    r270950 r280482  
    109109              RenderText {#text} at (0,0) size 178x13
    110110                text run at (0,0) width 178: "More initial text before user input."
    111                 text run at (177,0) width 1: " "
     111              RenderBR {BR} at (177,0) size 1x13
    112112              RenderBR {BR} at (0,13) size 0x13
    113113      RenderFrame {FRAME} at (0,540) size 800x60
  • trunk/Source/WebCore/ChangeLog

    r280479 r280482  
     12021-07-30  Chris Dumez  <cdumez@apple.com>
     2
     3        HTMLElement.innerText setter should convert new lines to <br>
     4        https://bugs.webkit.org/show_bug.cgi?id=228605
     5
     6        Reviewed by Sam Weinig.
     7
     8        HTMLElement.innerText setter should convert new lines to <br>:
     9        - https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute:dom-innertext-3
     10        - https://html.spec.whatwg.org/multipage/dom.html#rendered-text-fragment
     11
     12        Our innerText setter had some logic that was specific to form elements and specific render
     13        styles that wasn't part of the specification. It was causing us to not replace the new lines
     14        with <br> in some cases. I dropped this logic to align with Blink and Gecko, as those are
     15        passing the same WPT tests.
     16
     17        No new tests, rebaselined existing tests.
     18
     19        * html/HTMLElement.cpp:
     20        (WebCore::HTMLElement::setInnerText):
     21
    1222021-07-30  Chris Dumez  <cdumez@apple.com>
    223
  • trunk/Source/WebCore/html/HTMLElement.cpp

    r280310 r280482  
    567567    }
    568568
    569     // FIXME: Do we need to be able to detect preserveNewline style even when there's no renderer?
    570     // FIXME: Can the renderer be out of date here? Do we need to call updateStyleIfNeeded?
    571     // For example, for the contents of textarea elements that are display:none?
    572     auto* r = renderer();
    573     if ((r && r->style().preserveNewline()) || (isConnected() && isTextControlInnerTextElement())) {
    574         if (!text.contains('\r')) {
    575             stringReplaceAll(text);
    576             return { };
    577         }
    578         String textWithConsistentLineBreaks = text;
    579         textWithConsistentLineBreaks.replace("\r\n", "\n");
    580         textWithConsistentLineBreaks.replace('\r', '\n');
    581         stringReplaceAll(textWithConsistentLineBreaks);
    582         return { };
    583     }
    584 
    585569    // FIXME: This should use replaceAll(), after we fix that to work properly for DocumentFragment.
    586570    // Add text nodes and <br> elements.
Note: See TracChangeset for help on using the changeset viewer.