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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: RenderObject: Cut down vtbls a bit Created 6 years, 2 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates. 69 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates.
70 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; } 70 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; }
71 71
72 private: 72 private:
73 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); } 73 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); }
74 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); } 74 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); }
75 75
76 virtual const char* renderName() const OVERRIDE { return "RenderSVGRoot"; } 76 virtual const char* renderName() const OVERRIDE { return "RenderSVGRoot"; }
77 virtual bool isSVGRoot() const OVERRIDE { return true; } 77 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectSVG || type == RenderObjectSVGRoot || RenderReplaced::isOfType(type ); }
78 virtual bool isSVG() const OVERRIDE { return true; }
79 78
80 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const OVERRIDE; 79 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const OVERRIDE;
81 virtual LayoutUnit computeReplacedLogicalHeight() const OVERRIDE; 80 virtual LayoutUnit computeReplacedLogicalHeight() const OVERRIDE;
82 virtual void layout() OVERRIDE; 81 virtual void layout() OVERRIDE;
83 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE; 82 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE;
84 83
85 virtual void willBeDestroyed() OVERRIDE; 84 virtual void willBeDestroyed() OVERRIDE;
86 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 85 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
87 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; 86 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
88 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE; 87 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool m_isLayoutSizeChanged : 1; 123 bool m_isLayoutSizeChanged : 1;
125 bool m_needsBoundariesOrTransformUpdate : 1; 124 bool m_needsBoundariesOrTransformUpdate : 1;
126 bool m_hasBoxDecorationBackground : 1; 125 bool m_hasBoxDecorationBackground : 1;
127 }; 126 };
128 127
129 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); 128 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot());
130 129
131 } // namespace blink 130 } // namespace blink
132 131
133 #endif // RenderSVGRoot_h 132 #endif // RenderSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698