|
Make SVG painting independent of GraphicsContext's alpha state
SVG painting relied on GraphicsContext's alpha state which caused a
painting regression when GraphicsContextStateSavers were removed in [1].
This patch switches SVG rendering to apply the alpha to the color
passed into fill/stroke on the context, removing the need to call
context->setAlphaAsFloat. SVG was one of two users of this state (the
other being canvas) so this patch gets us one step closer to removing
GraphicsContextState::m_alpha.
BUG= 453225
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189465
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+76 lines, -68 lines) |
Patch |
 |
M |
Source/core/paint/SVGInlineFlowBoxPainter.cpp
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/paint/SVGRootInlineBoxPainter.cpp
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/paint/SVGShapePainter.cpp
|
View
|
1
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/svg/RenderSVGResourcePaintServer.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/svg/RenderSVGResourcePaintServer.cpp
|
View
|
1
|
1 chunk |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/svg/SVGRenderSupport.cpp
|
View
|
1
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/GraphicsContext.h
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/GraphicsContext.cpp
|
View
|
1
|
5 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/GraphicsContextState.h
|
View
|
1
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/GraphicsContextState.cpp
|
View
|
1
|
6 chunks |
+9 lines, -17 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/skia/SkiaUtils.h
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/skia/SkiaUtils.cpp
|
View
|
1
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
Total messages: 15 (4 generated)
|