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 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 2004, 2005, 2007 Rob Buis <buis@kde.org> |
4 | 4 |
5 This file is part of the KDE project | 5 This file is part of the KDE project |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 RenderObjectChildList* children() { return &m_children; } | 43 RenderObjectChildList* children() { return &m_children; } |
44 | 44 |
45 int width() const { return m_width; } | 45 int width() const { return m_width; } |
46 int height() const { return m_height; } | 46 int height() const { return m_height; } |
47 | 47 |
48 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
; | 48 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
; |
49 virtual void removeChild(RenderObject*); | 49 virtual void removeChild(RenderObject*); |
50 | 50 |
51 virtual void destroy(); | 51 virtual void destroy(); |
52 | 52 |
53 virtual RenderObject* removeChildNode(RenderObject*, bool fullRemove = true)
; | |
54 virtual void appendChildNode(RenderObject*, bool fullAppend = true); | |
55 virtual void insertChildNode(RenderObject* child, RenderObject* before, bool
fullInsert = true); | |
56 | |
57 // Designed for speed. Don't waste time doing a bunch of work like layer up
dating and repainting when we know that our | |
58 // change in parentage is not going to affect anything. | |
59 virtual void moveChildNode(RenderObject* child) { appendChildNode(child->par
ent()->removeChildNode(child, false), false); } | |
60 | |
61 virtual void calcPrefWidths() { setPrefWidthsDirty(false); } | |
62 | |
63 // Some containers do not want it's children | 53 // Some containers do not want it's children |
64 // to be drawn, because they may be 'referenced' | 54 // to be drawn, because they may be 'referenced' |
65 // Example: <marker> children in SVG | 55 // Example: <marker> children in SVG |
66 void setDrawsContents(bool); | 56 void setDrawsContents(bool); |
67 bool drawsContents() const; | 57 bool drawsContents() const; |
68 | 58 |
69 virtual bool isSVGContainer() const { return true; } | 59 virtual bool isSVGContainer() const { return true; } |
70 virtual const char* renderName() const { return "RenderSVGContainer"; } | 60 virtual const char* renderName() const { return "RenderSVGContainer"; } |
71 | 61 |
72 virtual bool requiresLayer() const { return false; } | 62 virtual bool requiresLayer() const { return false; } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 IntRect m_absoluteBounds; | 104 IntRect m_absoluteBounds; |
115 TransformationMatrix m_localTransform; | 105 TransformationMatrix m_localTransform; |
116 }; | 106 }; |
117 | 107 |
118 } // namespace WebCore | 108 } // namespace WebCore |
119 | 109 |
120 #endif // ENABLE(SVG) | 110 #endif // ENABLE(SVG) |
121 #endif // RenderSVGContainer_h | 111 #endif // RenderSVGContainer_h |
122 | 112 |
123 // vim:ts=4:noet | 113 // vim:ts=4:noet |
OLD | NEW |