OLD | NEW |
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 Loading... |
67 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 67 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
68 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 68 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
69 | 69 |
70 const RenderObjectChildList* children() const { return &m_children; } | 70 const RenderObjectChildList* children() const { return &m_children; } |
71 RenderObjectChildList* children() { return &m_children; } | 71 RenderObjectChildList* children() { return &m_children; } |
72 | 72 |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 bool m_isLayoutSizeChanged : 1; | 122 bool m_isLayoutSizeChanged : 1; |
124 bool m_needsBoundariesOrTransformUpdate : 1; | 123 bool m_needsBoundariesOrTransformUpdate : 1; |
125 bool m_hasBoxDecorationBackground : 1; | 124 bool m_hasBoxDecorationBackground : 1; |
126 }; | 125 }; |
127 | 126 |
128 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); | 127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); |
129 | 128 |
130 } // namespace blink | 129 } // namespace blink |
131 | 130 |
132 #endif // RenderSVGRoot_h | 131 #endif // RenderSVGRoot_h |
OLD | NEW |