| 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; |
| 38 | 39 |
| 39 bool updateImageViewport(); | 40 bool updateImageViewport(); |
| 40 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesUpdate =
true; } | 41 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesUpdate =
true; } |
| 41 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t
rue; } | 42 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t
rue; } |
| 42 | 43 |
| 43 RenderImageResource* imageResource() { return m_imageResource.get(); } | 44 RenderImageResource* imageResource() { return m_imageResource.get(); } |
| 44 | 45 |
| 45 // Note: Assumes the PaintInfo context has had all local transforms applied. | 46 // Note: Assumes the PaintInfo context has had all local transforms applied. |
| 46 void paintForeground(PaintInfo&); | 47 void paintForeground(PaintInfo&); |
| 47 | 48 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 76 OwnPtr<RenderImageResource> m_imageResource; | 77 OwnPtr<RenderImageResource> m_imageResource; |
| 77 | 78 |
| 78 OwnPtr<ImageBuffer> m_bufferedForeground; | 79 OwnPtr<ImageBuffer> m_bufferedForeground; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); | 82 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); |
| 82 | 83 |
| 83 } // namespace blink | 84 } // namespace blink |
| 84 | 85 |
| 85 #endif // RenderSVGImage_h | 86 #endif // RenderSVGImage_h |
| OLD | NEW |