| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
| 5 * Copyright (C) 2009 Google, Inc. | 5 * Copyright (C) 2009 Google, Inc. |
| 6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class RenderImageResource; | 31 class RenderImageResource; |
| 32 class SVGImageElement; | 32 class SVGImageElement; |
| 33 | 33 |
| 34 class RenderSVGImage FINAL : public RenderSVGModelObject { | 34 class RenderSVGImage FINAL : public RenderSVGModelObject { |
| 35 public: | 35 public: |
| 36 explicit RenderSVGImage(SVGImageElement*); | 36 explicit RenderSVGImage(SVGImageElement*); |
| 37 virtual ~RenderSVGImage(); | 37 virtual ~RenderSVGImage(); |
| 38 virtual void destroy() OVERRIDE; | |
| 39 | 38 |
| 40 bool updateImageViewport(); | 39 bool updateImageViewport(); |
| 41 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesUpdate =
true; } | 40 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesUpdate =
true; } |
| 42 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t
rue; } | 41 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t
rue; } |
| 43 | 42 |
| 44 RenderImageResource* imageResource() { return m_imageResource.get(); } | 43 RenderImageResource* imageResource() { return m_imageResource.get(); } |
| 45 | 44 |
| 46 // Note: Assumes the PaintInfo context has had all local transforms applied. | 45 // Note: Assumes the PaintInfo context has had all local transforms applied. |
| 47 void paintForeground(PaintInfo&); | 46 void paintForeground(PaintInfo&); |
| 48 | 47 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 77 OwnPtr<RenderImageResource> m_imageResource; | 76 OwnPtr<RenderImageResource> m_imageResource; |
| 78 | 77 |
| 79 OwnPtr<ImageBuffer> m_bufferedForeground; | 78 OwnPtr<ImageBuffer> m_bufferedForeground; |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); | 81 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); |
| 83 | 82 |
| 84 } // namespace blink | 83 } // namespace blink |
| 85 | 84 |
| 86 #endif // RenderSVGImage_h | 85 #endif // RenderSVGImage_h |
| OLD | NEW |