Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4d3000d891d2286f283c981cede987a25ab6cebb
https://github.com/WebKit/WebKit/commit/4d3000d891d2286f283c981cede987a25ab6cebb
Author: Sam Weinig <[email protected]>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M Source/WebCore/style/values/images/kinds/StyleImage.cpp
M Source/WebCore/style/values/images/kinds/StyleImage.h
Log Message:
-----------
[Image Redux] Prepare for virtual draw functions by having Style::Image's
draw functions take lambdas
https://bugs.webkit.org/show_bug.cgi?id=326225
Reviewed by Simon Fraser.
Refactors the tile and nine-piece drawing code in StyleImage.cpp to use new
Style::Image::drawTiledUsing() and
Style::Image::drawNinePieceUsing() helpers, which take lambdas rather than a
resolved WebCore::Image. These
will be used by Style::Image subclasses to implement tile/nine-piece drawing
without specialized WebCore::Image
subclasses of their own (e.g. Style::GradientImage will not need to create a
WebCore::GradientImage).
Also adds a drawIntoDestination() helper for Style::Image subclasses to
implement the source to destination
mapping for a basic draw, also using a lambda.
* Source/WebCore/style/values/images/kinds/StyleImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleImage.h:
Canonical link: https://commits.webkit.org/322628@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications