| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2014 Google, Inc. | 4 * Copyright (C) 2014 Google, Inc. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // 'SVGSVGElement' functions | 52 // 'SVGSVGElement' functions |
| 53 SVGRectTearOff* viewport() const; | 53 SVGRectTearOff* viewport() const; |
| 54 | 54 |
| 55 bool useCurrentView() const { return m_useCurrentView; } | 55 bool useCurrentView() const { return m_useCurrentView; } |
| 56 SVGViewSpec* currentView(); | 56 SVGViewSpec* currentView(); |
| 57 | 57 |
| 58 float intrinsicWidth() const; | 58 float intrinsicWidth() const; |
| 59 float intrinsicHeight() const; | 59 float intrinsicHeight() const; |
| 60 FloatSize currentViewportSize() const; | 60 FloatSize currentViewportSize() const; |
| 61 FloatRect currentViewBoxRect() const; | 61 FloatRect currentViewBoxRect() const; |
| 62 SVGPreserveAspectRatio* currentPreserveAspectRatio() const; |
| 62 | 63 |
| 63 float currentScale() const; | 64 float currentScale() const; |
| 64 void setCurrentScale(float scale); | 65 void setCurrentScale(float scale); |
| 65 | 66 |
| 66 FloatPoint currentTranslate() { return m_translation->value(); } | 67 FloatPoint currentTranslate() { return m_translation->value(); } |
| 67 void setCurrentTranslate(const FloatPoint&); | 68 void setCurrentTranslate(const FloatPoint&); |
| 68 SVGPointTearOff* currentTranslateFromJavascript(); | 69 SVGPointTearOff* currentTranslateFromJavascript(); |
| 69 | 70 |
| 70 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); } | 71 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); } |
| 71 | 72 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 127 |
| 127 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 128 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 128 void removedFrom(ContainerNode*) override; | 129 void removedFrom(ContainerNode*) override; |
| 129 | 130 |
| 130 void svgAttributeChanged(const QualifiedName&) override; | 131 void svgAttributeChanged(const QualifiedName&) override; |
| 131 | 132 |
| 132 bool selfHasRelativeLengths() const override; | 133 bool selfHasRelativeLengths() const override; |
| 133 | 134 |
| 134 void inheritViewAttributes(SVGViewElement*); | 135 void inheritViewAttributes(SVGViewElement*); |
| 135 | 136 |
| 137 bool shouldSynthesizeViewBox() const; |
| 136 void updateUserTransform(); | 138 void updateUserTransform(); |
| 137 | 139 |
| 138 void finishParsingChildren() override; | 140 void finishParsingChildren() override; |
| 139 | 141 |
| 140 enum CheckIntersectionOrEnclosure { | 142 enum CheckIntersectionOrEnclosure { |
| 141 CheckIntersection, | 143 CheckIntersection, |
| 142 CheckEnclosure | 144 CheckEnclosure |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check
IntersectionOrEnclosure) const; | 147 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check
IntersectionOrEnclosure) const; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 157 Member<SVGPoint> m_translation; | 159 Member<SVGPoint> m_translation; |
| 158 Member<SVGViewSpec> m_viewSpec; | 160 Member<SVGViewSpec> m_viewSpec; |
| 159 float m_currentScale; | 161 float m_currentScale; |
| 160 | 162 |
| 161 friend class SVGCurrentTranslateTearOff; | 163 friend class SVGCurrentTranslateTearOff; |
| 162 }; | 164 }; |
| 163 | 165 |
| 164 } // namespace blink | 166 } // namespace blink |
| 165 | 167 |
| 166 #endif // SVGSVGElement_h | 168 #endif // SVGSVGElement_h |
| OLD | NEW |