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

Unified Diff: Source/WebCore/rendering/svg/RenderSVGRect.cpp

Issue 13616008: Remove CG codepaths from SVG (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/WebCore/rendering/svg/RenderSVGResourceContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/svg/RenderSVGRect.cpp
diff --git a/Source/WebCore/rendering/svg/RenderSVGRect.cpp b/Source/WebCore/rendering/svg/RenderSVGRect.cpp
index 1fa46a4a1e37d51a0cfb8dd41533f285af306ecb..ffbcca81cd69291d4517e89ae954c31d5a94149b 100644
--- a/Source/WebCore/rendering/svg/RenderSVGRect.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGRect.cpp
@@ -82,12 +82,6 @@ void RenderSVGRect::updateShapeFromElement()
}
m_strokeBoundingBox = m_outerStrokeRect;
-
-#if USE(CG)
- // CoreGraphics can inflate the stroke by 1px when drawing a rectangle with antialiasing disabled at non-integer coordinates, we need to compensate.
- if (style()->svgStyle()->shapeRendering() == SR_CRISPEDGES)
- m_strokeBoundingBox.inflate(1);
-#endif
}
void RenderSVGRect::fillShape(GraphicsContext* context) const
@@ -97,19 +91,6 @@ void RenderSVGRect::fillShape(GraphicsContext* context) const
return;
}
-#if USE(CG)
- // FIXME: CG implementation of GraphicsContextCG::fillRect has an own
- // shadow drawing method, which draws an extra shadow.
- // This is a workaround for switching off the extra shadow.
- // https://bugs.webkit.org/show_bug.cgi?id=68899
- if (context->hasShadow()) {
- GraphicsContextStateSaver stateSaver(*context);
- context->clearShadow();
- context->fillRect(m_fillBoundingBox);
- return;
- }
-#endif
-
context->fillRect(m_fillBoundingBox);
}
« no previous file with comments | « no previous file | Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698