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

Side by Side Diff: Source/core/rendering/svg/SVGRenderingContext.h

Issue 196413023: [SVG] Poor filter resolution when using CSS 3D transforms. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moar comments. Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Automatically finishes context rendering. 72 // Automatically finishes context rendering.
73 ~SVGRenderingContext(); 73 ~SVGRenderingContext();
74 74
75 // Used by all SVG renderers who apply clip/filter/etc. resources to the ren derer content. 75 // Used by all SVG renderers who apply clip/filter/etc. resources to the ren derer content.
76 void prepareToRenderSVGContent(RenderObject*, PaintInfo&, NeedsGraphicsConte xtSave = DontSaveGraphicsContext); 76 void prepareToRenderSVGContent(RenderObject*, PaintInfo&, NeedsGraphicsConte xtSave = DontSaveGraphicsContext);
77 bool isRenderingPrepared() const { return m_renderingFlags & RenderingPrepar ed; } 77 bool isRenderingPrepared() const { return m_renderingFlags & RenderingPrepar ed; }
78 78
79 static void renderSubtree(GraphicsContext*, RenderObject*, const AffineTrans form&); 79 static void renderSubtree(GraphicsContext*, RenderObject*, const AffineTrans form&);
80 80
81 static float calculateScreenFontSizeScalingFactor(const RenderObject*); 81 static float calculateScreenFontSizeScalingFactor(const RenderObject*);
82 static void calculateTransformationToOutermostCoordinateSystem(const RenderO bject*, AffineTransform& absoluteTransform); 82 static void calculateDeviceSpaceTransformation(const RenderObject*, AffineTr ansform& absoluteTransform);
83 static FloatRect clampedAbsoluteTargetRect(const FloatRect& absoluteTargetRe ct); 83 static FloatRect clampedAbsoluteTargetRect(const FloatRect& absoluteTargetRe ct);
84 static void clear2DRotation(AffineTransform&); 84 static void clear2DRotation(AffineTransform&);
85 85
86 static IntRect calculateImageBufferRect(const FloatRect& targetRect, const A ffineTransform& absoluteTransform) 86 static IntRect calculateImageBufferRect(const FloatRect& targetRect, const A ffineTransform& absoluteTransform)
87 { 87 {
88 return enclosingIntRect(absoluteTransform.mapRect(targetRect)); 88 return enclosingIntRect(absoluteTransform.mapRect(targetRect));
89 } 89 }
90 90
91 // Support for the buffered-rendering hint. 91 // Support for the buffered-rendering hint.
92 bool bufferForeground(OwnPtr<ImageBuffer>&); 92 bool bufferForeground(OwnPtr<ImageBuffer>&);
(...skipping 18 matching lines...) Expand all
111 IntRect m_savedPaintRect; 111 IntRect m_savedPaintRect;
112 RenderSVGResourceFilter* m_filter; 112 RenderSVGResourceFilter* m_filter;
113 RenderSVGResourceClipper* m_clipper; 113 RenderSVGResourceClipper* m_clipper;
114 ClipperContext m_clipperContext; 114 ClipperContext m_clipperContext;
115 RenderSVGResourceMasker* m_masker; 115 RenderSVGResourceMasker* m_masker;
116 }; 116 };
117 117
118 } // namespace WebCore 118 } // namespace WebCore
119 119
120 #endif // SVGRenderingContext_h 120 #endif // SVGRenderingContext_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourcePattern.cpp ('k') | Source/core/rendering/svg/SVGRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698