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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "platform/graphics/Image.h" | 30 #include "platform/graphics/Image.h" |
31 #include "platform/graphics/paint/DisplayItemClient.h" | 31 #include "platform/graphics/paint/DisplayItemClient.h" |
32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
33 #include "platform/weborigin/KURL.h" | 33 #include "platform/weborigin/KURL.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class FrameView; | 37 class FrameView; |
38 class Page; | 38 class Page; |
39 class RenderBox; | 39 class LayoutBox; |
40 class SVGImageChromeClient; | 40 class SVGImageChromeClient; |
41 class SVGImageForContainer; | 41 class SVGImageForContainer; |
42 | 42 |
43 class SVGImage final : public Image { | 43 class SVGImage final : public Image { |
44 public: | 44 public: |
45 static PassRefPtr<SVGImage> create(ImageObserver* observer) | 45 static PassRefPtr<SVGImage> create(ImageObserver* observer) |
46 { | 46 { |
47 return adoptRef(new SVGImage(observer)); | 47 return adoptRef(new SVGImage(observer)); |
48 } | 48 } |
49 | 49 |
50 static bool isInSVGImage(const Node*); | 50 static bool isInSVGImage(const Node*); |
51 | 51 |
52 RenderBox* embeddedContentBox() const; | 52 LayoutBox* embeddedContentBox() const; |
53 | 53 |
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; |
(...skipping 61 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 |