mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-26 10:11:48 +00:00
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:
21
src/layout/svg/SVGImageContext-cpp.patch
Normal file
21
src/layout/svg/SVGImageContext-cpp.patch
Normal 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) {
|
||||
Reference in New Issue
Block a user