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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 153883003: [SVG] SVGAnimatedTransform{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove m_zoomAndPan Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef CanvasRenderingContext2D_h 26 #ifndef CanvasRenderingContext2D_h
27 #define CanvasRenderingContext2D_h 27 #define CanvasRenderingContext2D_h
28 28
29 #include "core/css/CSSFontSelectorClient.h" 29 #include "core/css/CSSFontSelectorClient.h"
30 #include "core/html/canvas/Canvas2DContextAttributes.h" 30 #include "core/html/canvas/Canvas2DContextAttributes.h"
31 #include "core/html/canvas/CanvasPathMethods.h" 31 #include "core/html/canvas/CanvasPathMethods.h"
32 #include "core/html/canvas/CanvasRenderingContext.h" 32 #include "core/html/canvas/CanvasRenderingContext.h"
33 #include "core/svg/SVGMatrix.h" 33 #include "core/svg/SVGMatrixTearOff.h"
34 #include "platform/fonts/Font.h" 34 #include "platform/fonts/Font.h"
35 #include "platform/graphics/Color.h" 35 #include "platform/graphics/Color.h"
36 #include "platform/geometry/FloatSize.h" 36 #include "platform/geometry/FloatSize.h"
37 #include "platform/graphics/GraphicsTypes.h" 37 #include "platform/graphics/GraphicsTypes.h"
38 #include "platform/graphics/ImageBuffer.h" 38 #include "platform/graphics/ImageBuffer.h"
39 #include "platform/graphics/Path.h" 39 #include "platform/graphics/Path.h"
40 #include "platform/transforms/AffineTransform.h" 40 #include "platform/transforms/AffineTransform.h"
41 #include "wtf/HashMap.h" 41 #include "wtf/HashMap.h"
42 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
43 #include "wtf/text/WTFString.h" 43 #include "wtf/text/WTFString.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 float globalAlpha() const; 110 float globalAlpha() const;
111 void setGlobalAlpha(float); 111 void setGlobalAlpha(float);
112 112
113 String globalCompositeOperation() const; 113 String globalCompositeOperation() const;
114 void setGlobalCompositeOperation(const String&); 114 void setGlobalCompositeOperation(const String&);
115 115
116 void save() { ++m_stateStack.last().m_unrealizedSaveCount; } 116 void save() { ++m_stateStack.last().m_unrealizedSaveCount; }
117 void restore(); 117 void restore();
118 118
119 SVGMatrix currentTransform() const 119 PassRefPtr<SVGMatrixTearOff> currentTransform() const
120 { 120 {
121 return SVGMatrix(state().m_transform); 121 return SVGMatrixTearOff::create(state().m_transform);
122 } 122 }
123 void setCurrentTransform(const SVGMatrix&); 123 void setCurrentTransform(PassRefPtr<SVGMatrixTearOff>);
124 124
125 void scale(float sx, float sy); 125 void scale(float sx, float sy);
126 void rotate(float angleInRadians); 126 void rotate(float angleInRadians);
127 void translate(float tx, float ty); 127 void translate(float tx, float ty);
128 void transform(float m11, float m12, float m21, float m22, float dx, float d y); 128 void transform(float m11, float m12, float m21, float m22, float dx, float d y);
129 void setTransform(float m11, float m12, float m21, float m22, float dx, floa t dy); 129 void setTransform(float m11, float m12, float m21, float m22, float dx, floa t dy);
130 void resetTransform(); 130 void resetTransform();
131 131
132 void setStrokeColor(const String& color); 132 void setStrokeColor(const String& color);
133 void setStrokeColor(float grayLevel); 133 void setStrokeColor(float grayLevel);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 bool m_usesCSSCompatibilityParseMode; 330 bool m_usesCSSCompatibilityParseMode;
331 bool m_hasAlpha; 331 bool m_hasAlpha;
332 MutableStylePropertyMap m_fetchedFonts; 332 MutableStylePropertyMap m_fetchedFonts;
333 }; 333 };
334 334
335 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 335 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
336 336
337 } // namespace WebCore 337 } // namespace WebCore
338 338
339 #endif 339 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698