| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 bool updateImageViewport(); | 41 bool updateImageViewport(); |
| 42 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate =
true; } | 42 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate =
true; } |
| 43 virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = t
rue; } | 43 virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = t
rue; } |
| 44 | 44 |
| 45 RenderImageResource* imageResource() { return m_imageResource.get(); } | 45 RenderImageResource* imageResource() { return m_imageResource.get(); } |
| 46 | 46 |
| 47 virtual const AffineTransform& localToParentTransform() const override { ret
urn m_localTransform; } | 47 virtual const AffineTransform& localToParentTransform() const override { ret
urn m_localTransform; } |
| 48 RefPtr<DisplayList>& bufferedForeground() { return m_bufferedForeground; } | 48 RefPtr<DisplayList>& bufferedForeground() { return m_bufferedForeground; } |
| 49 | 49 |
| 50 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override {
return m_paintInvalidationBoundingBox; } | |
| 51 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi
ngBox; } | 50 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi
ngBox; } |
| 52 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectSVGImage || RenderSVGModelObject::isOfType(type); } | 51 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectSVGImage || RenderSVGModelObject::isOfType(type); } |
| 53 | 52 |
| 54 private: | 53 private: |
| 55 virtual const char* renderName() const override { return "RenderSVGImage"; } | 54 virtual const char* renderName() const override { return "RenderSVGImage"; } |
| 56 | 55 |
| 57 virtual FloatRect strokeBoundingBox() const override { return m_objectBoundi
ngBox; } | 56 virtual FloatRect strokeBoundingBox() const override { return m_objectBoundi
ngBox; } |
| 58 | 57 |
| 59 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit
ionalOffset) const override; | 58 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit
ionalOffset) const override; |
| 60 | 59 |
| 61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | 60 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; |
| 62 | 61 |
| 63 virtual void layout() override; | 62 virtual void layout() override; |
| 64 virtual void paint(PaintInfo&, const LayoutPoint&) override; | 63 virtual void paint(PaintInfo&, const LayoutPoint&) override; |
| 65 | 64 |
| 66 FloatSize computeImageViewportSize(ImageResource&) const; | 65 FloatSize computeImageViewportSize(ImageResource&) const; |
| 67 | 66 |
| 68 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) override; | 67 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) override; |
| 69 | 68 |
| 70 virtual AffineTransform localTransform() const override { return m_localTran
sform; } | 69 virtual AffineTransform localTransform() const override { return m_localTran
sform; } |
| 71 | 70 |
| 72 bool m_needsBoundariesUpdate : 1; | 71 bool m_needsBoundariesUpdate : 1; |
| 73 bool m_needsTransformUpdate : 1; | 72 bool m_needsTransformUpdate : 1; |
| 74 AffineTransform m_localTransform; | 73 AffineTransform m_localTransform; |
| 75 FloatRect m_objectBoundingBox; | 74 FloatRect m_objectBoundingBox; |
| 76 FloatRect m_paintInvalidationBoundingBox; | |
| 77 OwnPtr<RenderImageResource> m_imageResource; | 75 OwnPtr<RenderImageResource> m_imageResource; |
| 78 | 76 |
| 79 RefPtr<DisplayList> m_bufferedForeground; | 77 RefPtr<DisplayList> m_bufferedForeground; |
| 80 }; | 78 }; |
| 81 | 79 |
| 82 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); | 80 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); |
| 83 | 81 |
| 84 } // namespace blink | 82 } // namespace blink |
| 85 | 83 |
| 86 #endif // RenderSVGImage_h | 84 #endif // RenderSVGImage_h |
| OLD | NEW |