| 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, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 SVGSVGElement* rootElement() const; | 38 SVGSVGElement* rootElement() const; |
| 39 | 39 |
| 40 void dispatchZoomEvent(float prevScale, float newScale); | 40 void dispatchZoomEvent(float prevScale, float newScale); |
| 41 void dispatchScrollEvent(); | 41 void dispatchScrollEvent(); |
| 42 | 42 |
| 43 bool zoomAndPanEnabled() const; | 43 bool zoomAndPanEnabled() const; |
| 44 | 44 |
| 45 void startPan(const FloatPoint& start); | 45 void startPan(const FloatPoint& start); |
| 46 void updatePan(const FloatPoint& pos) const; | 46 void updatePan(const FloatPoint& pos) const; |
| 47 | 47 |
| 48 virtual PassRefPtr<Document> cloneDocumentWithoutChildren() OVERRIDE FINAL; |
| 49 |
| 48 private: | 50 private: |
| 49 explicit SVGDocument(const DocumentInit&); | 51 explicit SVGDocument(const DocumentInit&); |
| 50 | 52 |
| 51 virtual bool childShouldCreateRenderer(const Node& child) const; | 53 virtual bool childShouldCreateRenderer(const Node& child) const; |
| 52 | 54 |
| 53 FloatPoint m_translate; | 55 FloatPoint m_translate; |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 inline SVGDocument* toSVGDocument(Document* document) | 58 inline SVGDocument* toSVGDocument(Document* document) |
| 57 { | 59 { |
| 58 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isSVGDocument()); | 60 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isSVGDocument()); |
| 59 return static_cast<SVGDocument*>(document); | 61 return static_cast<SVGDocument*>(document); |
| 60 } | 62 } |
| 61 | 63 |
| 62 inline const SVGDocument* toSVGDocument(const Document* document) | 64 inline const SVGDocument* toSVGDocument(const Document* document) |
| 63 { | 65 { |
| 64 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isSVGDocument()); | 66 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isSVGDocument()); |
| 65 return static_cast<const SVGDocument*>(document); | 67 return static_cast<const SVGDocument*>(document); |
| 66 } | 68 } |
| 67 | 69 |
| 68 // This will catch anyone doing an unnecessary cast. | 70 // This will catch anyone doing an unnecessary cast. |
| 69 void toSVGDocument(const SVGDocument*); | 71 void toSVGDocument(const SVGDocument*); |
| 70 | 72 |
| 71 } // namespace WebCore | 73 } // namespace WebCore |
| 72 | 74 |
| 73 #endif // SVGDocument_h | 75 #endif // SVGDocument_h |
| OLD | NEW |