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

Side by Side Diff: Source/core/rendering/svg/RenderSVGContainer.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
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, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Google, Inc. All rights reserved. 4 * Copyright (C) 2009 Google, Inc. All rights reserved.
5 * Copyright (C) 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 24 matching lines...) Expand all
35 virtual ~RenderSVGContainer(); 35 virtual ~RenderSVGContainer();
36 36
37 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 37 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
38 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 38 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
39 39
40 const RenderObjectChildList* children() const { return &m_children; } 40 const RenderObjectChildList* children() const { return &m_children; }
41 RenderObjectChildList* children() { return &m_children; } 41 RenderObjectChildList* children() { return &m_children; }
42 42
43 virtual void paint(PaintInfo&, const LayoutPoint&); 43 virtual void paint(PaintInfo&, const LayoutPoint&);
44 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp date = true; } 44 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp date = true; }
45 virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundari esUpdate; }
46 virtual bool didTransformToRootUpdate() { return false; } 45 virtual bool didTransformToRootUpdate() { return false; }
47 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } 46 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; }
48 47
49 protected: 48 protected:
50 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi ldren(); } 49 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi ldren(); }
51 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL { return children(); } 50 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL { return children(); }
52 51
53 virtual bool isSVGContainer() const OVERRIDE FINAL { return true; } 52 virtual bool isSVGContainer() const OVERRIDE FINAL { return true; }
54 virtual const char* renderName() const { return "RenderSVGContainer"; } 53 virtual const char* renderName() const { return "RenderSVGContainer"; }
55 54
(...skipping 29 matching lines...) Expand all
85 FloatRect m_strokeBoundingBox; 84 FloatRect m_strokeBoundingBox;
86 FloatRect m_repaintBoundingBox; 85 FloatRect m_repaintBoundingBox;
87 bool m_needsBoundariesUpdate : 1; 86 bool m_needsBoundariesUpdate : 1;
88 }; 87 };
89 88
90 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer()); 89 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer());
91 90
92 } // namespace WebCore 91 } // namespace WebCore
93 92
94 #endif // RenderSVGContainer_h 93 #endif // RenderSVGContainer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGBlock.h ('k') | Source/core/rendering/svg/RenderSVGGradientStop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698