| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual bool isSVGImage() const override { return true; } | 54 virtual bool isSVGImage() const override { return true; } |
| 55 virtual IntSize size() const override { return m_intrinsicSize; } | 55 virtual IntSize size() const override { return m_intrinsicSize; } |
| 56 void setURL(const KURL& url) { m_url = url; } | 56 void setURL(const KURL& url) { m_url = url; } |
| 57 | 57 |
| 58 virtual bool currentFrameHasSingleSecurityOrigin() const override; | 58 virtual bool currentFrameHasSingleSecurityOrigin() const override; |
| 59 | 59 |
| 60 virtual void startAnimation(CatchUpAnimation = CatchUp) override; | 60 virtual void startAnimation(CatchUpAnimation = CatchUp) override; |
| 61 virtual void stopAnimation() override; | 61 virtual void stopAnimation() override; |
| 62 virtual void resetAnimation() override; | 62 virtual void resetAnimation() override; |
| 63 | 63 |
| 64 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() override; | 64 virtual bool bitmapForCurrentFrame(SkBitmap*) override; |
| 65 | 65 |
| 66 // Returns the SVG image document's frame. | 66 // Returns the SVG image document's frame. |
| 67 FrameView* frameView() const; | 67 FrameView* frameView() const; |
| 68 | 68 |
| 69 // Does the SVG image/document contain any animations? | 69 // Does the SVG image/document contain any animations? |
| 70 bool hasAnimations() const; | 70 bool hasAnimations() const; |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 friend class AXLayoutObject; | 73 friend class AXLayoutObject; |
| 74 friend class SVGImageChromeClient; | 74 friend class SVGImageChromeClient; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 m_image->setImageObserver(m_observer); | 124 m_image->setImageObserver(m_observer); |
| 125 } | 125 } |
| 126 private: | 126 private: |
| 127 Image* m_image; | 127 Image* m_image; |
| 128 ImageObserver* m_observer; | 128 ImageObserver* m_observer; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } | 131 } |
| 132 | 132 |
| 133 #endif // SVGImage_h | 133 #endif // SVGImage_h |
| OLD | NEW |