Commit aade634
Inset box-shadow incorrectly positioned on table cells with collapsed borders
https://bugs.webkit.org/show_bug.cgi?id=306607
rdar://169254286
Reviewed by Darin Adler.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
When painting inset box-shadows on table cells with collapsed borders,
we were positioning the shadow too far inward, exposing the background
color. This occurred because collapsed borders report half-widths through
borderTop()/borderLeft() etc., but BackgroundPainter expects the border
box to be at the outer edge when calculating inset shadow bounds.
The fix expands the paint rect by the half-widths before passing it to
BackgroundPainter for inset shadows. BackgroundPainter then subtracts
these half-widths to compute the inner edge, correctly positioning the
inset shadow at the true inner edge of the collapsed border.
* Source/WebCore/rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::paintBoxDecorations):
* LayoutTests/TestExpectations: Progression
Canonical link: https://commits.webkit.org/307661@main1 parent 2b6b310 commit aade634
File tree
2 files changed
+6
-2
lines changed- LayoutTests
- Source/WebCore/rendering
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6857 | 6857 | | |
6858 | 6858 | | |
6859 | 6859 | | |
6860 | | - | |
6861 | 6860 | | |
6862 | 6861 | | |
6863 | 6862 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
1646 | | - | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
1647 | 1652 | | |
1648 | 1653 | | |
1649 | 1654 | | |
| |||
0 commit comments