Commit 1207afa
committed
Factor LegacyInlineFlowBox painting into a class
https://bugs.webkit.org/show_bug.cgi?id=230683
Reviewed by Alan Bujtas.
Introduce InlineBoxPainter, similar to TextBoxPainter.
* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:
* rendering/InlineBoxPainter.cpp: Added.
(WebCore::InlineBoxPainter::InlineBoxPainter):
(WebCore::InlineBoxPainter::paint):
(WebCore::clipRectForNinePieceImageStrip):
(WebCore::InlineBoxPainter::paintMask):
(WebCore::InlineBoxPainter::paintDecorations):
(WebCore::InlineBoxPainter::style const):
(WebCore::InlineBoxPainter::constrainToLineTopAndBottomIfNeeded const):
(WebCore::InlineBoxPainter::paintFillLayers):
(WebCore::InlineBoxPainter::paintFillLayer):
(WebCore::InlineBoxPainter::paintBoxShadow):
* rendering/InlineBoxPainter.h: Added.
(WebCore::InlineBoxPainter::renderer const):
(WebCore::InlineBoxPainter::isHorizontal const):
* rendering/LegacyInlineFlowBox.cpp:
(WebCore::LegacyInlineFlowBox::paint):
(WebCore::LegacyInlineFlowBox::paintFillLayers): Deleted.
(WebCore::LegacyInlineFlowBox::paintFillLayer): Deleted.
(WebCore::LegacyInlineFlowBox::paintBoxShadow): Deleted.
(WebCore::LegacyInlineFlowBox::constrainToLineTopAndBottomIfNeeded const): Deleted.
(WebCore::clipRectForNinePieceImageStrip): Deleted.
(WebCore::LegacyInlineFlowBox::paintBoxDecorations): Deleted.
(WebCore::LegacyInlineFlowBox::paintMask): Deleted.
* rendering/LegacyInlineFlowBox.h:
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::getBackgroundRoundedRect const):
(WebCore::RenderBoxModelObject::backgroundRoundedRectAdjustedForBleedAvoidance const):
(WebCore::RenderBoxModelObject::paintMaskForTextFillBox):
(WebCore::RenderBoxModelObject::paintFillLayerExtended):
(WebCore::RenderBoxModelObject::boxShadowShouldBeAppliedToBackground const):
* rendering/RenderBoxModelObject.h:
* rendering/RenderImage.cpp:
(WebCore::RenderImage::boxShadowShouldBeAppliedToBackground const):
* rendering/RenderImage.h:
* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::boxShadowShouldBeAppliedToBackground const):
* rendering/RenderTableCell.h:
Canonical link: https://commits.webkit.org/242049@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282959 268f45cc-cd09-0410-ab3c-d52691b4dbfc1 parent d19121f commit 1207afa
13 files changed
Lines changed: 524 additions & 322 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
1 | 50 | | |
2 | 51 | | |
3 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2207 | 2207 | | |
2208 | 2208 | | |
2209 | 2209 | | |
| 2210 | + | |
2210 | 2211 | | |
2211 | 2212 | | |
2212 | 2213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5339 | 5339 | | |
5340 | 5340 | | |
5341 | 5341 | | |
| 5342 | + | |
5342 | 5343 | | |
5343 | 5344 | | |
5344 | 5345 | | |
| |||
16607 | 16608 | | |
16608 | 16609 | | |
16609 | 16610 | | |
| 16611 | + | |
| 16612 | + | |
16610 | 16613 | | |
16611 | 16614 | | |
16612 | 16615 | | |
| |||
29905 | 29908 | | |
29906 | 29909 | | |
29907 | 29910 | | |
| 29911 | + | |
| 29912 | + | |
29908 | 29913 | | |
29909 | 29914 | | |
29910 | 29915 | | |
| |||
32899 | 32904 | | |
32900 | 32905 | | |
32901 | 32906 | | |
| 32907 | + | |
32902 | 32908 | | |
32903 | 32909 | | |
32904 | 32910 | | |
32905 | 32911 | | |
| 32912 | + | |
32906 | 32913 | | |
32907 | 32914 | | |
32908 | 32915 | | |
| |||
32916 | 32923 | | |
32917 | 32924 | | |
32918 | 32925 | | |
32919 | | - | |
32920 | 32926 | | |
32921 | 32927 | | |
32922 | 32928 | | |
| |||
0 commit comments