Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3d774d922d9857135c6f6f41d8e7f71fd27b72f8
https://github.com/WebKit/WebKit/commit/3d774d922d9857135c6f6f41d8e7f71fd27b72f8
Author: Brent Fulgham <[email protected]>
Date: 2026-04-16 (Thu, 16 Apr 2026)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/rendering/BackgroundPainter.cpp
M Source/WebCore/rendering/BorderPainter.cpp
M Source/WebCore/rendering/RenderListMarker.cpp
Log Message:
-----------
Respect image-orientation property for background-image, border-image, and
list-style-image
https://bugs.webkit.org/show_bug.cgi?id=312447
rdar://174894122
Reviewed by Sam Weinig.
Several CSS image contexts hardcoded ImageOrientation::FromImage, ignoring the
computed image-orientation value.
Fixes 3 WPT tests:
css/css-images/image-orientation/image-orientation-background-image.html
css/css-images/image-orientation/image-orientation-border-image.html
css/css-images/image-orientation/image-orientation-list-style-image.html
* LayoutTests/TestExpectations:
* Source/WebCore/rendering/BackgroundPainter.cpp:
(WebCore::BackgroundPainter::paintFillLayerImpl const): Switch from hard-coded
mageOrientation::Orientation::FromImage to the renderer orientation.
* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::paintNinePieceImageImpl const): Ditto.
* Source/WebCore/rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::paint): Pass the missing image orientation (rather
than the default).
Canonical link: https://commits.webkit.org/311390@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications