Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1195)

Unified Diff: Source/core/svg/SVGStopElement.cpp

Issue 126033003: Support colors w/ alpha in SVG 'stop' elements and 'feFlood' (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase; Prebake expected colors. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGStopElement.cpp
diff --git a/Source/core/svg/SVGStopElement.cpp b/Source/core/svg/SVGStopElement.cpp
index b3d85099a4449941e0ddf9bf2f690241d078f90d..52201d89d16f72472063f6091d3a52e72e1271d7 100644
--- a/Source/core/svg/SVGStopElement.cpp
+++ b/Source/core/svg/SVGStopElement.cpp
@@ -115,7 +115,7 @@ Color SVGStopElement::stopColorIncludingOpacity() const
return Color(Color::transparent, true); // Transparent black.
const SVGRenderStyle* svgStyle = style->svgStyle();
- return colorWithOverrideAlpha(svgStyle->stopColor().rgb(), svgStyle->stopOpacity());
+ return svgStyle->stopColor().combineWithAlpha(svgStyle->stopOpacity());
}
}
« no previous file with comments | « LayoutTests/svg/filters/feFlood-rgba-flood-color-w-opacity-4-expected.svg ('k') | Source/platform/graphics/Color.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698