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

Unified Diff: Source/core/paint/SVGInlineFlowBoxPainter.cpp

Issue 900463002: Make SVG painting independent of GraphicsContext's alpha state (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address reviewer comments Created 5 years, 10 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
« no previous file with comments | « no previous file | Source/core/paint/SVGRootInlineBoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGInlineFlowBoxPainter.cpp
diff --git a/Source/core/paint/SVGInlineFlowBoxPainter.cpp b/Source/core/paint/SVGInlineFlowBoxPainter.cpp
index 5131affa20394208d3b39b886e957b4d649e1916..aa0806f7149f8c1fa17fab641694a7c25c751f4c 100644
--- a/Source/core/paint/SVGInlineFlowBoxPainter.cpp
+++ b/Source/core/paint/SVGInlineFlowBoxPainter.cpp
@@ -10,7 +10,6 @@
#include "core/rendering/svg/SVGInlineFlowBox.h"
#include "core/rendering/svg/SVGInlineTextBox.h"
#include "core/rendering/svg/SVGRenderingContext.h"
-#include "platform/graphics/GraphicsContextStateSaver.h"
namespace blink {
@@ -31,10 +30,6 @@ void SVGInlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoin
{
ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection);
- // FIXME: Remove this state saver when SVGRenderSupport::updateGraphicsContext
- // no longer affects the global alpha state. See crbug.com/453225
- GraphicsContextStateSaver stateSaver(*paintInfo.context);
-
SVGRenderingContext renderingContext(m_svgInlineFlowBox.renderer(), paintInfo);
if (renderingContext.applyClipMaskAndFilterIfNecessary()) {
for (InlineBox* child = m_svgInlineFlowBox.firstChild(); child; child = child->nextOnLine())
« no previous file with comments | « no previous file | Source/core/paint/SVGRootInlineBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698