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

Unified Diff: Source/core/paint/SVGRootInlineBoxPainter.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 | « Source/core/paint/SVGInlineFlowBoxPainter.cpp ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGRootInlineBoxPainter.cpp
diff --git a/Source/core/paint/SVGRootInlineBoxPainter.cpp b/Source/core/paint/SVGRootInlineBoxPainter.cpp
index 584282135bf94c0269e6d899694c58bc125907d9..3890f09a94c3ec21faaf2186431af79087082c59 100644
--- a/Source/core/paint/SVGRootInlineBoxPainter.cpp
+++ b/Source/core/paint/SVGRootInlineBoxPainter.cpp
@@ -13,7 +13,6 @@
#include "core/rendering/svg/SVGInlineTextBox.h"
#include "core/rendering/svg/SVGRenderingContext.h"
#include "core/rendering/svg/SVGRootInlineBox.h"
-#include "platform/graphics/GraphicsContextStateSaver.h"
namespace blink {
@@ -37,10 +36,6 @@ void SVGRootInlineBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoin
}
}
- // FIXME: Remove this state saver when SVGRenderSupport::updateGraphicsContext
- // no longer affects the global alpha state. See crbug.com/453225
- GraphicsContextStateSaver stateSaver(*paintInfoBeforeFiltering.context);
-
SVGRenderingContext renderingContext(m_svgRootInlineBox.renderer(), paintInfoBeforeFiltering);
if (renderingContext.applyClipMaskAndFilterIfNecessary()) {
for (InlineBox* child = m_svgRootInlineBox.firstChild(); child; child = child->nextOnLine())
« no previous file with comments | « Source/core/paint/SVGInlineFlowBoxPainter.cpp ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698