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

Unified Diff: Source/core/rendering/svg/SVGRenderingContext.cpp

Issue 453653003: [SVG] DisplayList-based patterns. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 years, 2 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/rendering/svg/SVGRenderingContext.cpp
diff --git a/Source/core/rendering/svg/SVGRenderingContext.cpp b/Source/core/rendering/svg/SVGRenderingContext.cpp
index d76d23570f270b6a2a8a062db9bc954c0916d3f2..14241249669a519df09fefe65206d9432bb36099 100644
--- a/Source/core/rendering/svg/SVGRenderingContext.cpp
+++ b/Source/core/rendering/svg/SVGRenderingContext.cpp
@@ -38,8 +38,6 @@
#include "core/rendering/svg/SVGResourcesCache.h"
#include "platform/FloatConversion.h"
-static int kMaxImageBufferSize = 4096;
-
namespace blink {
SVGRenderingContext::~SVGRenderingContext()
@@ -250,20 +248,6 @@ void SVGRenderingContext::renderSubtree(GraphicsContext* context, RenderObject*
contentTransformation = savedContentTransformation;
}
-FloatRect SVGRenderingContext::clampedAbsoluteTargetRect(const FloatRect& absoluteTargetRect)
-{
- const FloatSize maxImageBufferSize(kMaxImageBufferSize, kMaxImageBufferSize);
- return FloatRect(absoluteTargetRect.location(), absoluteTargetRect.size().shrunkTo(maxImageBufferSize));
-}
-
-void SVGRenderingContext::clear2DRotation(AffineTransform& transform)
-{
- AffineTransform::DecomposedType decomposition;
- transform.decompose(decomposition);
- decomposition.angle = 0;
- transform.recompose(decomposition);
-}
-
bool SVGRenderingContext::bufferForeground(OwnPtr<ImageBuffer>& imageBuffer)
{
ASSERT(m_paintInfo);

Powered by Google App Engine
This is Rietveld 408576698