| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "wtf/Allocator.h" | 24 #include "wtf/Allocator.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 27 | 27 |
| 28 class AffineTransform; | 28 class AffineTransform; |
| 29 | 29 |
| 30 class SVGTransformDistance { | 30 class SVGTransformDistance { |
| 31 STACK_ALLOCATED(); | 31 STACK_ALLOCATED(); |
| 32 public: | 32 public: |
| 33 SVGTransformDistance(); | 33 SVGTransformDistance(); |
| 34 SVGTransformDistance(PassRefPtrWillBeRawPtr<SVGTransform> fromTransform, Pas
sRefPtrWillBeRawPtr<SVGTransform> toTransform); | 34 SVGTransformDistance(RawPtr<SVGTransform> fromTransform, RawPtr<SVGTransform
> toTransform); |
| 35 | 35 |
| 36 SVGTransformDistance scaledDistance(float scaleFactor) const; | 36 SVGTransformDistance scaledDistance(float scaleFactor) const; |
| 37 PassRefPtrWillBeRawPtr<SVGTransform> addToSVGTransform(PassRefPtrWillBeRawPt
r<SVGTransform>) const; | 37 RawPtr<SVGTransform> addToSVGTransform(RawPtr<SVGTransform>) const; |
| 38 | 38 |
| 39 static PassRefPtrWillBeRawPtr<SVGTransform> addSVGTransforms(PassRefPtrWillB
eRawPtr<SVGTransform>, PassRefPtrWillBeRawPtr<SVGTransform>, unsigned repeatCoun
t = 1); | 39 static RawPtr<SVGTransform> addSVGTransforms(RawPtr<SVGTransform>, RawPtr<SV
GTransform>, unsigned repeatCount = 1); |
| 40 | 40 |
| 41 float distance() const; | 41 float distance() const; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 SVGTransformDistance(SVGTransformType, float angle, float cx, float cy, cons
t AffineTransform&); | 44 SVGTransformDistance(SVGTransformType, float angle, float cx, float cy, cons
t AffineTransform&); |
| 45 | 45 |
| 46 SVGTransformType m_transformType; | 46 SVGTransformType m_transformType; |
| 47 float m_angle; | 47 float m_angle; |
| 48 float m_cx; | 48 float m_cx; |
| 49 float m_cy; | 49 float m_cy; |
| 50 AffineTransform m_transform; // for storing scale, translation or matrix tra
nsforms | 50 AffineTransform m_transform; // for storing scale, translation or matrix tra
nsforms |
| 51 }; | 51 }; |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // SVGTransformDistance_h | 54 #endif // SVGTransformDistance_h |
| OLD | NEW |