haikuwebkit/LayoutTests/editing
Carlos Garcia Campos 0e86f37ae4 Create a RenderLineBreak when BR element has unsupported content data style
https://bugs.webkit.org/show_bug.cgi?id=224849

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2021-08-23
Reviewed by Antti Koivisto.

Source/WebCore:

Instead of falling back to RenderElement::createFor(), create a RenderLineBreak just ignoring the unsupported
content data.

* html/HTMLBRElement.cpp:
(WebCore::HTMLBRElement::createElementRenderer):
* rendering/RenderElement.cpp:
(WebCore::RenderElement::isContentDataSupported):
(WebCore::RenderElement::createFor):
* rendering/RenderElement.h:

LayoutTests:

* editing/execCommand/insert-image-in-composed-list-expected.txt: Rebaseline.

Canonical link: https://commits.webkit.org/240827@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-23 14:53:04 +00:00
..
async-clipboard Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
caret caret-color does not work on first click in ios 2021-08-09 01:21:41 +00:00
deleting Adjust editing/deleting/ios/backspace-last-character.html to check that pressing backspace deletes one character 2021-08-05 03:31:15 +00:00
editability
editable-region [iOS][FCR] Add borders for better control visibility 2021-04-27 20:28:09 +00:00
execCommand Create a RenderLineBreak when BR element has unsupported content data style 2021-08-23 14:53:04 +00:00
find Out of memory crash with find('a'.repeat(2**30)) 2021-04-12 12:26:44 +00:00
input [iOS] Composition text is not initially highlighted when typing in text fields using Pinyin keyboard 2021-03-22 20:58:24 +00:00
inserting [macOS] Web process crashes when detaching Document with uncommitted marked text 2021-08-07 22:47:09 +00:00
mac [macOS] "Correct Spelling Automatically" menu items are inconsistent when autocorrect="off" 2021-01-13 22:50:25 +00:00
pasteboard Nullptr crash in HTMLStackItem::create via DocumentFragment::parseHTML 2021-06-29 12:06:41 +00:00
resources
secure-input
selection [iOS 15] editing/selection/ios/hide-selection-after-tap-on-prevent-default-element.html is a flaky timeout 2021-08-16 19:26:19 +00:00
spelling Make dump-as-markup.js dump newlines within text as "\n" 2020-12-04 19:43:08 +00:00
style Nullptr deref in WebCore::ApplyStyleCommand::applyRelativeFontStyleChange 2021-03-23 13:55:33 +00:00
text-iterator
text-placeholder [iOS] Caret should be before text placeholder instead of after it 2020-07-15 20:28:06 +00:00
undo Nullptr crash in EventPath::eventTargetRespectingTargetRules 2021-04-06 09:22:20 +00:00
undo-manager Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
unsupported-content Make dump-as-markup.js dump newlines within text as "\n" 2020-12-04 19:43:08 +00:00
document-marker-null-check-expected.txt
document-marker-null-check.html
editing.js
editingStyle.css