Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Support background images on ::first-line
https://bugs.webkit.org/show_bug.cgi?id=244039 <rdar://98157640> Reviewed by Simon Fraser. This sort-of-worked (no paint invalidation) and got completely broken in 248098@main refactoring because we don't even trigger the resource load. This patch fixes the regression and also adds paint invalidation. * LayoutTests/TestExpectations: * Source/WebCore/rendering/RenderBox.cpp: Issue a repaint for ::first-line style if needed. (WebCore::RenderBox::imageChanged): * Source/WebCore/rendering/RenderElement.cpp: (WebCore::RenderElement::styleDidChange): Register renderer as client for resources in ::first-line style. (WebCore::RenderElement::willBeDestroyed): Unregister. * Source/WebCore/style/StylePendingResources.cpp: (WebCore::Style::loadPendingResources): Trigger the load for resources in ::first-line style. Canonical link: https://commits.webkit.org/253553@main
- Loading branch information
Showing
4 changed files
with
51 additions
and
25 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