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 21 matching lines...) Expand all Loading... |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class Element; | 34 class Element; |
35 class FrameView; | 35 class FrameView; |
36 class ImageBuffer; | 36 class ImageBuffer; |
37 class Page; | 37 class Page; |
38 class RenderBox; | 38 class RenderBox; |
39 class SVGImageChromeClient; | 39 class SVGImageChromeClient; |
40 class SVGImageForContainer; | 40 class SVGImageForContainer; |
41 | 41 |
42 class SVGImage : public Image { | 42 class SVGImage FINAL : public Image { |
43 public: | 43 public: |
44 static PassRefPtr<SVGImage> create(ImageObserver* observer) | 44 static PassRefPtr<SVGImage> create(ImageObserver* observer) |
45 { | 45 { |
46 return adoptRef(new SVGImage(observer)); | 46 return adoptRef(new SVGImage(observer)); |
47 } | 47 } |
48 | 48 |
49 static bool isInSVGImage(const Element*); | 49 static bool isInSVGImage(const Element*); |
50 | 50 |
51 RenderBox* embeddedContentBox() const; | 51 RenderBox* embeddedContentBox() const; |
52 | 52 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 m_image->setImageObserver(m_observer); | 119 m_image->setImageObserver(m_observer); |
120 } | 120 } |
121 private: | 121 private: |
122 Image* m_image; | 122 Image* m_image; |
123 ImageObserver* m_observer; | 123 ImageObserver* m_observer; |
124 }; | 124 }; |
125 | 125 |
126 } | 126 } |
127 | 127 |
128 #endif // SVGImage_h | 128 #endif // SVGImage_h |
OLD | NEW |