Remove two unused SVGDocument functions.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Apr 2014 09:23:13 +0000 (09:23 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Apr 2014 09:23:13 +0000 (09:23 +0000)
<https://webkit.org/b/132178>

Reviewed by Antti Koivisto.

* svg/SVGDocument.cpp:
(WebCore::SVGDocument::dispatchZoomEvent): Deleted.
(WebCore::SVGDocument::dispatchScrollEvent): Deleted.
* svg/SVGDocument.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167798 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/svg/SVGDocument.cpp
Source/WebCore/svg/SVGDocument.h

index 7f91504..88eede5 100644 (file)
@@ -1,3 +1,15 @@
+2014-04-25  Andreas Kling  <akling@apple.com>
+
+        Remove two unused SVGDocument functions.
+        <https://webkit.org/b/132178>
+
+        Reviewed by Antti Koivisto.
+
+        * svg/SVGDocument.cpp:
+        (WebCore::SVGDocument::dispatchZoomEvent): Deleted.
+        (WebCore::SVGDocument::dispatchScrollEvent): Deleted.
+        * svg/SVGDocument.h:
+
 2014-04-25  Ion Rosca  <rosca@adobe.com>
 
         Incomplete body painting when using blend modes
index a654de4..56bd4ea 100644 (file)
@@ -48,22 +48,6 @@ SVGSVGElement* SVGDocument::rootElement() const
     return 0;
 }
 
-void SVGDocument::dispatchZoomEvent(float prevScale, float newScale)
-{
-    RefPtr<SVGZoomEvent> event = static_pointer_cast<SVGZoomEvent>(createEvent("SVGZoomEvents", IGNORE_EXCEPTION));
-    event->initEvent(eventNames().zoomEvent, true, false);
-    event->setPreviousScale(prevScale);
-    event->setNewScale(newScale);
-    rootElement()->dispatchEvent(event.release(), IGNORE_EXCEPTION);
-}
-
-void SVGDocument::dispatchScrollEvent()
-{
-    RefPtr<Event> event = createEvent("SVGEvents", IGNORE_EXCEPTION);
-    event->initEvent(eventNames().scrollEvent, true, false);
-    rootElement()->dispatchEvent(event.release(), IGNORE_EXCEPTION);
-}
-
 bool SVGDocument::zoomAndPanEnabled() const
 {
     if (rootElement()) {
index 2d5e247..c69fba3 100644 (file)
@@ -39,9 +39,6 @@ public:
 
     SVGSVGElement* rootElement() const;
 
-    void dispatchZoomEvent(float prevScale, float newScale);
-    void dispatchScrollEvent();
-
     bool zoomAndPanEnabled() const;
 
     void startPan(const FloatPoint& start);