| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 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 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "core/svg/SVGPointTearOff.h" | 25 #include "core/svg/SVGPointTearOff.h" |
| 26 #include "core/svg/SVGRectTearOff.h" | 26 #include "core/svg/SVGRectTearOff.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 SVGZoomEvent::SVGZoomEvent() | 30 SVGZoomEvent::SVGZoomEvent() |
| 31 : m_newScale(0.0f) | 31 : m_newScale(0.0f) |
| 32 , m_previousScale(0.0f) | 32 , m_previousScale(0.0f) |
| 33 { | 33 { |
| 34 ScriptWrappable::init(this); | |
| 35 } | 34 } |
| 36 | 35 |
| 37 PassRefPtr<SVGRectTearOff> SVGZoomEvent::zoomRectScreen() const | 36 PassRefPtr<SVGRectTearOff> SVGZoomEvent::zoomRectScreen() const |
| 38 { | 37 { |
| 39 RefPtr<SVGRectTearOff> rectTearOff = SVGRectTearOff::create(SVGRect::create(
), 0, PropertyIsNotAnimVal); | 38 RefPtr<SVGRectTearOff> rectTearOff = SVGRectTearOff::create(SVGRect::create(
), 0, PropertyIsNotAnimVal); |
| 40 rectTearOff->setIsReadOnlyProperty(); | 39 rectTearOff->setIsReadOnlyProperty(); |
| 41 return rectTearOff.release(); | 40 return rectTearOff.release(); |
| 42 } | 41 } |
| 43 | 42 |
| 44 float SVGZoomEvent::previousScale() const | 43 float SVGZoomEvent::previousScale() const |
| (...skipping 24 matching lines...) Expand all Loading... |
| 69 { | 68 { |
| 70 return EventNames::SVGZoomEvent; | 69 return EventNames::SVGZoomEvent; |
| 71 } | 70 } |
| 72 | 71 |
| 73 void SVGZoomEvent::trace(Visitor* visitor) | 72 void SVGZoomEvent::trace(Visitor* visitor) |
| 74 { | 73 { |
| 75 UIEvent::trace(visitor); | 74 UIEvent::trace(visitor); |
| 76 } | 75 } |
| 77 | 76 |
| 78 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |