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

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

Issue 108203005: Remove ancestor walk for non-SVG RenderObjects in willBeRemovedFromTree() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Minor cleanup Created 7 years 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
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2006 Apple Computer, Inc 5 * Copyright (C) 2006 Apple Computer, Inc
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
8 * Copyright (C) 2011 University of Szeged 8 * Copyright (C) 2011 University of Szeged
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class SVGGraphicsElement; 44 class SVGGraphicsElement;
45 45
46 class RenderSVGShape : public RenderSVGModelObject { 46 class RenderSVGShape : public RenderSVGModelObject {
47 public: 47 public:
48 explicit RenderSVGShape(SVGGraphicsElement*); 48 explicit RenderSVGShape(SVGGraphicsElement*);
49 RenderSVGShape(SVGGraphicsElement*, Path*, bool); 49 RenderSVGShape(SVGGraphicsElement*, Path*, bool);
50 virtual ~RenderSVGShape(); 50 virtual ~RenderSVGShape();
51 51
52 void setNeedsShapeUpdate() { m_needsShapeUpdate = true; } 52 void setNeedsShapeUpdate() { m_needsShapeUpdate = true; }
53 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp date = true; } 53 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp date = true; }
54 virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundari esUpdate; }
55 virtual void setNeedsTransformUpdate() OVERRIDE FINAL { m_needsTransformUpda te = true; } 54 virtual void setNeedsTransformUpdate() OVERRIDE FINAL { m_needsTransformUpda te = true; }
56 virtual void fillShape(GraphicsContext*) const; 55 virtual void fillShape(GraphicsContext*) const;
57 virtual void strokeShape(GraphicsContext*) const; 56 virtual void strokeShape(GraphicsContext*) const;
58 57
59 bool nodeAtFloatPointInternal(const HitTestRequest&, const FloatPoint&, Poin terEventsHitRules); 58 bool nodeAtFloatPointInternal(const HitTestRequest&, const FloatPoint&, Poin terEventsHitRules);
60 59
61 Path& path() const 60 Path& path() const
62 { 61 {
63 ASSERT(m_path); 62 ASSERT(m_path);
64 return *m_path; 63 return *m_path;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool m_needsBoundariesUpdate : 1; 123 bool m_needsBoundariesUpdate : 1;
125 bool m_needsShapeUpdate : 1; 124 bool m_needsShapeUpdate : 1;
126 bool m_needsTransformUpdate : 1; 125 bool m_needsTransformUpdate : 1;
127 }; 126 };
128 127
129 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); 128 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape());
130 129
131 } 130 }
132 131
133 #endif 132 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698