| 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 20 matching lines...) Expand all Loading... |
| 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 #include "wtf/Allocator.h" | 34 #include "wtf/Allocator.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class Document; | 38 class Document; |
| 39 class FrameView; | 39 class FrameView; |
| 40 class Page; | 40 class Page; |
| 41 class LayoutBox; | 41 class LayoutReplaced; |
| 42 class SVGImageChromeClient; | 42 class SVGImageChromeClient; |
| 43 class SVGImageForContainer; | 43 class SVGImageForContainer; |
| 44 | 44 |
| 45 class SVGImage final : public Image, public DisplayItemClient { | 45 class SVGImage final : public Image, public DisplayItemClient { |
| 46 public: | 46 public: |
| 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 LayoutReplaced* embeddedReplacedContent() const; |
| 55 | 55 |
| 56 bool isSVGImage() const override { return true; } | 56 bool isSVGImage() const override { return true; } |
| 57 bool isTextureBacked() override { return false; } | 57 bool isTextureBacked() override { return false; } |
| 58 IntSize size() const override { return m_intrinsicSize; } | 58 IntSize size() const override { return m_intrinsicSize; } |
| 59 | 59 |
| 60 bool currentFrameHasSingleSecurityOrigin() const override; | 60 bool currentFrameHasSingleSecurityOrigin() const override; |
| 61 | 61 |
| 62 void startAnimation(CatchUpAnimation = CatchUp) override; | 62 void startAnimation(CatchUpAnimation = CatchUp) override; |
| 63 void stopAnimation() override; | 63 void stopAnimation() override; |
| 64 void resetAnimation() override; | 64 void resetAnimation() override; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 m_image->setImageObserver(m_observer); | 143 m_image->setImageObserver(m_observer); |
| 144 } | 144 } |
| 145 private: | 145 private: |
| 146 Image* m_image; | 146 Image* m_image; |
| 147 RawPtrWillBeMember<ImageObserver> m_observer; | 147 RawPtrWillBeMember<ImageObserver> m_observer; |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace blink | 150 } // namespace blink |
| 151 | 151 |
| 152 #endif // SVGImage_h | 152 #endif // SVGImage_h |
| OLD | NEW |