Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: Source/core/rendering/svg/RenderSVGImage.h

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool updateImageViewport(); 42 bool updateImageViewport();
43 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate = true; } 43 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate = true; }
44 virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = t rue; } 44 virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = t rue; }
45 45
46 RenderImageResource* imageResource() { return m_imageResource.get(); } 46 RenderImageResource* imageResource() { return m_imageResource.get(); }
47 47
48 virtual const AffineTransform& localToParentTransform() const override { ret urn m_localTransform; } 48 virtual const AffineTransform& localToParentTransform() const override { ret urn m_localTransform; }
49 RefPtr<const SkPicture>& bufferedForeground() { return m_bufferedForeground; } 49 RefPtr<const SkPicture>& bufferedForeground() { return m_bufferedForeground; }
50 50
51 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi ngBox; } 51 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi ngBox; }
52 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVGImage || RenderSVGModelObject::isOfType(type); } 52 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGImage || RenderSVGModelObject::isOfType(type); }
53 53
54 private: 54 private:
55 virtual const char* renderName() const override { return "RenderSVGImage"; } 55 virtual const char* renderName() const override { return "RenderSVGImage"; }
56 56
57 virtual FloatRect strokeBoundingBox() const override { return m_objectBoundi ngBox; } 57 virtual FloatRect strokeBoundingBox() const override { return m_objectBoundi ngBox; }
58 58
59 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const override; 59 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const override;
60 60
61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; 61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override;
62 62
63 virtual void layout() override; 63 virtual void layout() override;
64 virtual void paint(const PaintInfo&, const LayoutPoint&) override; 64 virtual void paint(const PaintInfo&, const LayoutPoint&) override;
65 65
66 FloatSize computeImageViewportSize(ImageResource&) const; 66 FloatSize computeImageViewportSize(ImageResource&) const;
67 67
68 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) override; 68 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) override;
69 69
70 virtual AffineTransform localTransform() const override { return m_localTran sform; } 70 virtual AffineTransform localTransform() const override { return m_localTran sform; }
71 71
72 bool m_needsBoundariesUpdate : 1; 72 bool m_needsBoundariesUpdate : 1;
73 bool m_needsTransformUpdate : 1; 73 bool m_needsTransformUpdate : 1;
74 AffineTransform m_localTransform; 74 AffineTransform m_localTransform;
75 FloatRect m_objectBoundingBox; 75 FloatRect m_objectBoundingBox;
76 OwnPtr<RenderImageResource> m_imageResource; 76 OwnPtr<RenderImageResource> m_imageResource;
77 77
78 RefPtr<const SkPicture> m_bufferedForeground; 78 RefPtr<const SkPicture> m_bufferedForeground;
79 }; 79 };
80 80
81 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); 81 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage());
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // RenderSVGImage_h 85 #endif // RenderSVGImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGHiddenContainer.h ('k') | Source/core/rendering/svg/RenderSVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698