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

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

Issue 147213004: Revert of Convert remaining RenderSVG* nodes to RenderObject::isChildAllowed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase; Include r166238. Created 6 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) 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual bool isSVGRoot() const OVERRIDE { return true; } 69 virtual bool isSVGRoot() const OVERRIDE { return true; }
70 virtual bool isSVG() const OVERRIDE { return true; } 70 virtual bool isSVG() const OVERRIDE { return true; }
71 71
72 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const OVERRIDE; 72 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const OVERRIDE;
73 virtual LayoutUnit computeReplacedLogicalHeight() const OVERRIDE; 73 virtual LayoutUnit computeReplacedLogicalHeight() const OVERRIDE;
74 virtual void layout() OVERRIDE; 74 virtual void layout() OVERRIDE;
75 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE; 75 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE;
76 76
77 virtual void willBeDestroyed() OVERRIDE; 77 virtual void willBeDestroyed() OVERRIDE;
78 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 78 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
79 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
80 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE; 79 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE;
81 virtual void removeChild(RenderObject*) OVERRIDE; 80 virtual void removeChild(RenderObject*) OVERRIDE;
82 virtual bool canHaveWhitespaceChildren() const OVERRIDE { return false; }
83 81
84 virtual void insertedIntoTree() OVERRIDE; 82 virtual void insertedIntoTree() OVERRIDE;
85 virtual void willBeRemovedFromTree() OVERRIDE; 83 virtual void willBeRemovedFromTree() OVERRIDE;
86 84
87 virtual const AffineTransform& localToParentTransform() const OVERRIDE; 85 virtual const AffineTransform& localToParentTransform() const OVERRIDE;
88 86
89 virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundi ngBox; } 87 virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundi ngBox; }
90 virtual FloatRect strokeBoundingBox() const OVERRIDE { return m_strokeBoundi ngBox; } 88 virtual FloatRect strokeBoundingBox() const OVERRIDE { return m_strokeBoundi ngBox; }
91 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE { return m_ repaintBoundingBox; } 89 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE { return m_ repaintBoundingBox; }
92 90
(...skipping 21 matching lines...) Expand all
114 AffineTransform m_localToBorderBoxTransform; 112 AffineTransform m_localToBorderBoxTransform;
115 bool m_isLayoutSizeChanged : 1; 113 bool m_isLayoutSizeChanged : 1;
116 bool m_needsBoundariesOrTransformUpdate : 1; 114 bool m_needsBoundariesOrTransformUpdate : 1;
117 }; 115 };
118 116
119 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); 117 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot());
120 118
121 } // namespace WebCore 119 } // namespace WebCore
122 120
123 #endif // RenderSVGRoot_h 121 #endif // RenderSVGRoot_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.cpp ('k') | Source/core/rendering/svg/RenderSVGRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698