| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) | 206 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) |
| 207 { | 207 { |
| 208 m_translation->setValue(point); | 208 m_translation->setValue(point); |
| 209 updateCurrentTranslate(); | 209 updateCurrentTranslate(); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void SVGSVGElement::updateCurrentTranslate() | 212 void SVGSVGElement::updateCurrentTranslate() |
| 213 { | 213 { |
| 214 if (RenderObject* object = renderer()) | 214 if (RenderObject* object = renderer()) |
| 215 object->setNeedsLayout(); | 215 object->setNeedsLayout(); |
| 216 | |
| 217 if (parentNode() == document() && document().renderer()) | |
| 218 document().renderer()->repaint(); | |
| 219 } | 216 } |
| 220 | 217 |
| 221 void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString
& value) | 218 void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString
& value) |
| 222 { | 219 { |
| 223 SVGParsingError parseError = NoError; | 220 SVGParsingError parseError = NoError; |
| 224 | 221 |
| 225 if (!nearestViewportElement()) { | 222 if (!nearestViewportElement()) { |
| 226 bool setListener = true; | 223 bool setListener = true; |
| 227 | 224 |
| 228 // Only handle events if we're the outermost <svg> element | 225 // Only handle events if we're the outermost <svg> element |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 view->preserveAspectRatio()->baseValue()->setMeetOrSlice(preserveAspectR
atio()->currentValue()->meetOrSlice()); | 764 view->preserveAspectRatio()->baseValue()->setMeetOrSlice(preserveAspectR
atio()->currentValue()->meetOrSlice()); |
| 768 } | 765 } |
| 769 | 766 |
| 770 if (viewElement->hasAttribute(SVGNames::zoomAndPanAttr)) | 767 if (viewElement->hasAttribute(SVGNames::zoomAndPanAttr)) |
| 771 view->setZoomAndPan(viewElement->zoomAndPan()); | 768 view->setZoomAndPan(viewElement->zoomAndPan()); |
| 772 else | 769 else |
| 773 view->setZoomAndPan(zoomAndPan()); | 770 view->setZoomAndPan(zoomAndPan()); |
| 774 } | 771 } |
| 775 | 772 |
| 776 } | 773 } |
| OLD | NEW |