Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c58af30db1b05a810d8e11d0b8ce111223eb51b8
      
https://github.com/WebKit/WebKit/commit/c58af30db1b05a810d8e11d0b8ce111223eb51b8
  Author: Chris Dumez <[email protected]>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    M 
LayoutTests/editing/inserting/indent-split-text-not-having-previous-sibling-crash-expected.txt
    M LayoutTests/editing/selection/doubleclick-beside-cr-span.html
    M LayoutTests/editing/selection/move-by-line-003-expected.txt
    M 
LayoutTests/fast/inline/partial-invalidation-on-pre-line-crash-expected.txt
    M 
LayoutTests/fast/text/minimum-width-break-on-empty-content-crash-expected.txt
    M LayoutTests/fast/transforms/flatten_disconnected_parent_crash-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/baseline-td-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/caption-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/colspan-redistribution-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/column-widths-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/rowspan-height-redistribution-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/table-width-redistribution-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/table-width-redistribution-fixed-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/table-width-redistribution-fixed-padding-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/tentative/td-box-sizing-001-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/editing/other/insertlinebreak-with-white-space-style.tentative_pre-line-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/the-innertext-and-outertext-properties/getter-expected.txt
    M Source/WebCore/editing/TextIterator.cpp

  Log Message:
  -----------
  innerText getter: preserve newlines for white-space:pre-line
https://bugs.webkit.org/show_bug.cgi?id=312137

Reviewed by Darin Adler.

TextIterator::handleTextRun() was unconditionally collapsing both
newlines and tabs to spaces. For white-space:pre-line, newlines should
be preserved. Check preserveNewline() before treating a newline as
collapsible whitespace.

No new tests, rebaselined existing test.

* 
LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/the-innertext-and-outertext-properties/getter-expected.txt:
* Source/WebCore/editing/TextIterator.cpp:
(WebCore::TextIterator::handleTextRun):

Canonical link: https://commits.webkit.org/311185@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to