Chromium Code Reviews| Index: Source/core/svg/SVGZoomEvent.cpp |
| diff --git a/Source/core/svg/SVGZoomEvent.cpp b/Source/core/svg/SVGZoomEvent.cpp |
| index fe5d283270fb272b097473af9f6ab2f170518a0b..79ec83d42bb3977626c96972f4afb0aac12d967b 100644 |
| --- a/Source/core/svg/SVGZoomEvent.cpp |
| +++ b/Source/core/svg/SVGZoomEvent.cpp |
| @@ -20,9 +20,11 @@ |
| */ |
| #include "config.h" |
| + |
|
haraken
2014/01/16 04:56:43
Nit: This empty line is not needed.
|
| #include "core/svg/SVGZoomEvent.h" |
| #include "core/events/ThreadLocalEventNames.h" |
| +#include "core/svg/SVGRectTearOff.h" |
| namespace WebCore { |
| @@ -33,9 +35,11 @@ SVGZoomEvent::SVGZoomEvent() |
| ScriptWrappable::init(this); |
| } |
| -SVGRect SVGZoomEvent::zoomRectScreen() const |
| +PassRefPtr<SVGRectTearOff> SVGZoomEvent::zoomRectScreen() const |
| { |
| - return m_zoomRectScreen; |
| + RefPtr<SVGRectTearOff> rectTearOff = SVGRectTearOff::create(SVGRect::create(), 0, PropertyIsNotAnimVal); |
| + rectTearOff->setIsReadOnlyProperty(); |
|
haraken
2014/01/16 04:56:43
Just help me understand: Why was previous code wor
kouhei (in TOK)
2014/01/16 05:12:37
Because it was violating the spec. ^p^
|
| + return rectTearOff.release(); |
| } |
| float SVGZoomEvent::previousScale() const |