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, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void SetAlign(SVGPreserveAspectRatioType align) { align_ = align; } | 69 void SetAlign(SVGPreserveAspectRatioType align) { align_ = align; } |
70 SVGPreserveAspectRatioType Align() const { return align_; } | 70 SVGPreserveAspectRatioType Align() const { return align_; } |
71 | 71 |
72 void SetMeetOrSlice(SVGMeetOrSliceType meet_or_slice) { | 72 void SetMeetOrSlice(SVGMeetOrSliceType meet_or_slice) { |
73 meet_or_slice_ = meet_or_slice; | 73 meet_or_slice_ = meet_or_slice; |
74 } | 74 } |
75 SVGMeetOrSliceType MeetOrSlice() const { return meet_or_slice_; } | 75 SVGMeetOrSliceType MeetOrSlice() const { return meet_or_slice_; } |
76 | 76 |
77 void TransformRect(FloatRect& dest_rect, FloatRect& src_rect); | 77 void TransformRect(FloatRect& dest_rect, FloatRect& src_rect); |
78 | 78 |
79 AffineTransform GetCTM(float logic_x, | 79 AffineTransform ComputeTransform(float logical_x, |
80 float logic_y, | 80 float logical_y, |
81 float logic_width, | 81 float logical_width, |
82 float logic_height, | 82 float logical_height, |
83 float phys_width, | 83 float physical_width, |
84 float phys_height) const; | 84 float physical_height) const; |
85 | 85 |
86 String ValueAsString() const override; | 86 String ValueAsString() const override; |
87 SVGParsingError SetValueAsString(const String&); | 87 SVGParsingError SetValueAsString(const String&); |
88 bool Parse(const UChar*& ptr, const UChar* end, bool validate); | 88 bool Parse(const UChar*& ptr, const UChar* end, bool validate); |
89 bool Parse(const LChar*& ptr, const LChar* end, bool validate); | 89 bool Parse(const LChar*& ptr, const LChar* end, bool validate); |
90 | 90 |
91 void Add(SVGPropertyBase*, SVGElement*) override; | 91 void Add(SVGPropertyBase*, SVGElement*) override; |
92 void CalculateAnimatedValue(SVGAnimationElement*, | 92 void CalculateAnimatedValue(SVGAnimationElement*, |
93 float percentage, | 93 float percentage, |
94 unsigned repeat_count, | 94 unsigned repeat_count, |
(...skipping 20 matching lines...) Expand all Loading... |
115 | 115 |
116 SVGPreserveAspectRatioType align_; | 116 SVGPreserveAspectRatioType align_; |
117 SVGMeetOrSliceType meet_or_slice_; | 117 SVGMeetOrSliceType meet_or_slice_; |
118 }; | 118 }; |
119 | 119 |
120 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPreserveAspectRatio); | 120 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPreserveAspectRatio); |
121 | 121 |
122 } // namespace blink | 122 } // namespace blink |
123 | 123 |
124 #endif // SVGPreserveAspectRatio_h | 124 #endif // SVGPreserveAspectRatio_h |
OLD | NEW |