-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collapsed table border colors don't recompute correctly on color sche…
…me change https://bugs.webkit.org/show_bug.cgi?id=261429 rdar://115313292 Reviewed by Antti Koivisto. Collapsed borders are currently invalidated by comparing `BorderData` whenever a style change occurs. However, when the used color scheme changes and the border color is `currentcolor`, it's possible for the `BorderData` to be equivalent, even though the resolved border color may be different. To fix, leverage the existing `BorderData::isEquivalentForPainting` helper to invalidate collapsed table borders whenever a border uses `currentcolor` and the resolved colors are different. * LayoutTests/TestExpectations: * Source/WebCore/rendering/RenderTable.cpp: (WebCore::RenderTable::styleDidChange): * Source/WebCore/rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::styleDidChange): * Source/WebCore/rendering/RenderTableCol.cpp: (WebCore::RenderTableCol::styleDidChange): * Source/WebCore/rendering/RenderTableRow.cpp: (WebCore::RenderTableRow::styleDidChange): * Source/WebCore/rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::styleDidChange): * Source/WebCore/rendering/style/RenderStyle.h: * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::borderIsEquivalentForPainting const): Canonical link: https://commits.webkit.org/267993@main
- Loading branch information
Showing
8 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters