| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 static PassRefPtr<SVGImage> create(ImageObserver* observer) | 47 static PassRefPtr<SVGImage> create(ImageObserver* observer) |
| 48 { | 48 { |
| 49 return adoptRef(new SVGImage(observer)); | 49 return adoptRef(new SVGImage(observer)); |
| 50 } | 50 } |
| 51 | 51 |
| 52 static bool isInSVGImage(const Node*); | 52 static bool isInSVGImage(const Node*); |
| 53 | 53 |
| 54 LayoutBox* embeddedContentBox() const; | 54 LayoutBox* embeddedContentBox() const; |
| 55 | 55 |
| 56 bool isSVGImage() const override { return true; } | 56 bool isSVGImage() const override { return true; } |
| 57 bool isTextureBacked() override { return false; } |
| 57 IntSize size() const override { return m_intrinsicSize; } | 58 IntSize size() const override { return m_intrinsicSize; } |
| 58 void setURL(const KURL& url) { m_url = url; } | 59 void setURL(const KURL& url) { m_url = url; } |
| 59 | 60 |
| 60 bool currentFrameHasSingleSecurityOrigin() const override; | 61 bool currentFrameHasSingleSecurityOrigin() const override; |
| 61 | 62 |
| 62 void startAnimation(CatchUpAnimation = CatchUp) override; | 63 void startAnimation(CatchUpAnimation = CatchUp) override; |
| 63 void stopAnimation() override; | 64 void stopAnimation() override; |
| 64 void resetAnimation() override; | 65 void resetAnimation() override; |
| 65 | 66 |
| 66 // Advances an animated image. This will trigger an animation update for CSS | 67 // Advances an animated image. This will trigger an animation update for CSS |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 m_image->setImageObserver(m_observer); | 134 m_image->setImageObserver(m_observer); |
| 134 } | 135 } |
| 135 private: | 136 private: |
| 136 Image* m_image; | 137 Image* m_image; |
| 137 ImageObserver* m_observer; | 138 ImageObserver* m_observer; |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } | 141 } |
| 141 | 142 |
| 142 #endif // SVGImage_h | 143 #endif // SVGImage_h |
| OLD | NEW |