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, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) 2014 Google, Inc. | 5 * Copyright (C) 2014 Google, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) | 199 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) |
200 { | 200 { |
201 m_translation->setValue(point); | 201 m_translation->setValue(point); |
202 updateCurrentTranslate(); | 202 updateCurrentTranslate(); |
203 } | 203 } |
204 | 204 |
205 void SVGSVGElement::updateCurrentTranslate() | 205 void SVGSVGElement::updateCurrentTranslate() |
206 { | 206 { |
207 if (LayoutObject* object = layoutObject()) | 207 if (LayoutObject* object = layoutObject()) |
208 object->setNeedsLayoutAndFullPaintInvalidation(); | 208 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason:
:Unknown); |
209 } | 209 } |
210 | 210 |
211 bool SVGSVGElement::zoomAndPanEnabled() const | 211 bool SVGSVGElement::zoomAndPanEnabled() const |
212 { | 212 { |
213 const SVGZoomAndPan* currentViewSpec = this; | 213 const SVGZoomAndPan* currentViewSpec = this; |
214 if (m_useCurrentView) | 214 if (m_useCurrentView) |
215 currentViewSpec = m_viewSpec.get(); | 215 currentViewSpec = m_viewSpec.get(); |
216 return currentViewSpec && currentViewSpec->zoomAndPan() == SVGZoomAndPanMagn
ify; | 216 return currentViewSpec && currentViewSpec->zoomAndPan() == SVGZoomAndPanMagn
ify; |
217 } | 217 } |
218 | 218 |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 visitor->trace(m_width); | 782 visitor->trace(m_width); |
783 visitor->trace(m_height); | 783 visitor->trace(m_height); |
784 visitor->trace(m_translation); | 784 visitor->trace(m_translation); |
785 visitor->trace(m_timeContainer); | 785 visitor->trace(m_timeContainer); |
786 visitor->trace(m_viewSpec); | 786 visitor->trace(m_viewSpec); |
787 SVGGraphicsElement::trace(visitor); | 787 SVGGraphicsElement::trace(visitor); |
788 SVGFitToViewBox::trace(visitor); | 788 SVGFitToViewBox::trace(visitor); |
789 } | 789 } |
790 | 790 |
791 } // namespace blink | 791 } // namespace blink |
OLD | NEW |