| 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 26 matching lines...) Expand all Loading... |
| 37 ~LayoutSVGImage() override; | 37 ~LayoutSVGImage() override; |
| 38 | 38 |
| 39 void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate = true; } | 39 void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate = true; } |
| 40 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; } | 40 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; } |
| 41 | 41 |
| 42 LayoutImageResource* imageResource() { return m_imageResource.get(); } | 42 LayoutImageResource* imageResource() { return m_imageResource.get(); } |
| 43 const LayoutImageResource* imageResource() const { | 43 const LayoutImageResource* imageResource() const { |
| 44 return m_imageResource.get(); | 44 return m_imageResource.get(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 const AffineTransform& localToSVGParentTransform() const override { | |
| 48 return m_localTransform; | |
| 49 } | |
| 50 | |
| 51 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } | 47 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } |
| 52 bool isOfType(LayoutObjectType type) const override { | 48 bool isOfType(LayoutObjectType type) const override { |
| 53 return type == LayoutObjectSVGImage || LayoutSVGModelObject::isOfType(type); | 49 return type == LayoutObjectSVGImage || LayoutSVGModelObject::isOfType(type); |
| 54 } | 50 } |
| 55 | 51 |
| 56 const char* name() const override { return "LayoutSVGImage"; } | 52 const char* name() const override { return "LayoutSVGImage"; } |
| 57 | 53 |
| 58 protected: | 54 protected: |
| 59 void willBeDestroyed() override; | 55 void willBeDestroyed() override; |
| 60 | 56 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 87 AffineTransform m_localTransform; | 83 AffineTransform m_localTransform; |
| 88 FloatRect m_objectBoundingBox; | 84 FloatRect m_objectBoundingBox; |
| 89 Persistent<LayoutImageResource> m_imageResource; | 85 Persistent<LayoutImageResource> m_imageResource; |
| 90 }; | 86 }; |
| 91 | 87 |
| 92 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGImage, isSVGImage()); | 88 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGImage, isSVGImage()); |
| 93 | 89 |
| 94 } // namespace blink | 90 } // namespace blink |
| 95 | 91 |
| 96 #endif // LayoutSVGImage_h | 92 #endif // LayoutSVGImage_h |
| OLD | NEW |