[LFC][Painting] Decouple content and decoration painting
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Oct 2019 14:07:21 +0000 (14:07 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Oct 2019 14:07:21 +0000 (14:07 +0000)
commitb9f8e17bffe8edddb49e5976005eb6dac1eb48bf
treea4c85a7e8a4ee82a71cea7329a8eaf4e2c58e259
parent0ace986f503fdf6481db7b41e8fec6f563b14e8e
[LFC][Painting] Decouple content and decoration painting
https://bugs.webkit.org/show_bug.cgi?id=202718
<rdar://problem/56104661>

Reviewed by Antti Koivisto.

This patch adds support for individual run painting <div><span style="background-color: red">red</span>black</div>.
This is pretty much all we can do with the current data structures (lack of context).

* layout/displaytree/DisplayPainter.cpp:
(WebCore::Display::paintBoxDecoration):
(WebCore::Display::paintInlineContent):
(WebCore::Display::Painter::paint):
(WebCore::Display::paintBlockLevelBoxDecoration): Deleted.
* layout/inlineformatting/InlineLine.cpp:
(WebCore::Layout::Line::appendInlineContainerStart):
(WebCore::Layout::Line::appendInlineContainerEnd):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/layout/displaytree/DisplayPainter.cpp
Source/WebCore/layout/inlineformatting/InlineLine.cpp