| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "platform/geometry/FloatPoint.h" | 25 #include "platform/geometry/FloatPoint.h" |
| 26 #include "platform/transforms/AffineTransform.h" | 26 #include "platform/transforms/AffineTransform.h" |
| 27 #include "wtf/text/WTFString.h" | 27 #include "wtf/text/WTFString.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class FloatSize; | 31 class FloatSize; |
| 32 class SVGTransformTearOff; | 32 class SVGTransformTearOff; |
| 33 | 33 |
| 34 enum SVGTransformType { | 34 enum SVGTransformType { |
| 35 SVG_TRANSFORM_UNKNOWN = 0, | 35 kSvgTransformUnknown = 0, |
| 36 SVG_TRANSFORM_MATRIX = 1, | 36 kSvgTransformMatrix = 1, |
| 37 SVG_TRANSFORM_TRANSLATE = 2, | 37 kSvgTransformTranslate = 2, |
| 38 SVG_TRANSFORM_SCALE = 3, | 38 kSvgTransformScale = 3, |
| 39 SVG_TRANSFORM_ROTATE = 4, | 39 kSvgTransformRotate = 4, |
| 40 SVG_TRANSFORM_SKEWX = 5, | 40 kSvgTransformSkewx = 5, |
| 41 SVG_TRANSFORM_SKEWY = 6 | 41 kSvgTransformSkewy = 6 |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class SVGTransform final : public SVGPropertyBase { | 44 class SVGTransform final : public SVGPropertyBase { |
| 45 public: | 45 public: |
| 46 typedef SVGTransformTearOff TearOffType; | 46 typedef SVGTransformTearOff TearOffType; |
| 47 | 47 |
| 48 enum ConstructionMode { | 48 enum ConstructionMode { |
| 49 ConstructIdentityTransform, | 49 ConstructIdentityTransform, |
| 50 ConstructZeroTransform | 50 ConstructZeroTransform |
| 51 }; | 51 }; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 SVGTransformType m_transformType; | 110 SVGTransformType m_transformType; |
| 111 float m_angle; | 111 float m_angle; |
| 112 FloatPoint m_center; | 112 FloatPoint m_center; |
| 113 AffineTransform m_matrix; | 113 AffineTransform m_matrix; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #endif // SVGTransform_h | 118 #endif // SVGTransform_h |
| OLD | NEW |