gh-13844: Part 2 - Fixed boosts not working for linear gradients (gh-13882)

Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
This commit is contained in:
mr. m
2026-05-26 22:27:54 +02:00
committed by GitHub
parent e82012ff1c
commit 7f08cf437a
27 changed files with 599 additions and 25 deletions

View File

@@ -0,0 +1,21 @@
diff --git a/layout/svg/SVGImageContext.cpp b/layout/svg/SVGImageContext.cpp
index ecbda963b75fb70b62885a0c8f7a517011a8d5dc..1200a51aee7db4ee1a014308581ada1002c0d05f 100644
--- a/layout/svg/SVGImageContext.cpp
+++ b/layout/svg/SVGImageContext.cpp
@@ -57,12 +57,14 @@ void SVGImageContext::MaybeStoreContextPaint(SVGImageContext& aContext,
if ((style->mMozContextProperties.bits & StyleContextPropertyBits::FILL) &&
style->mFill.kind.IsColor()) {
haveContextPaint = true;
- contextPaint->SetFill(style->mFill.kind.AsColor().CalcColor(aStyle));
+ contextPaint->SetFill(
+ style->mFill.kind.AsColor().CalcColor(aStyle, nullptr));
}
if ((style->mMozContextProperties.bits & StyleContextPropertyBits::STROKE) &&
style->mStroke.kind.IsColor()) {
haveContextPaint = true;
- contextPaint->SetStroke(style->mStroke.kind.AsColor().CalcColor(aStyle));
+ contextPaint->SetStroke(
+ style->mStroke.kind.AsColor().CalcColor(aStyle, nullptr));
}
if (style->mMozContextProperties.bits &
StyleContextPropertyBits::FILL_OPACITY) {