| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const; | 43 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const; |
| 44 | 44 |
| 45 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 45 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
| 46 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 46 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
| 47 | 47 |
| 48 const RenderObjectChildList* children() const { return &m_children; } | 48 const RenderObjectChildList* children() const { return &m_children; } |
| 49 RenderObjectChildList* children() { return &m_children; } | 49 RenderObjectChildList* children() { return &m_children; } |
| 50 | 50 |
| 51 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } | 51 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } |
| 52 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesOrTransformUpdate
= true; } | 52 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesOrTransformUpdate
= true; } |
| 53 virtual bool needsBoundariesUpdate() OVERRIDE { return m_needsBoundariesOrTr
ansformUpdate; } | |
| 54 virtual void setNeedsTransformUpdate() { m_needsBoundariesOrTransformUpdate
= true; } | 53 virtual void setNeedsTransformUpdate() { m_needsBoundariesOrTransformUpdate
= true; } |
| 55 | 54 |
| 56 IntSize containerSize() const { return m_containerSize; } | 55 IntSize containerSize() const { return m_containerSize; } |
| 57 void setContainerSize(const IntSize& containerSize) { m_containerSize = cont
ainerSize; } | 56 void setContainerSize(const IntSize& containerSize) { m_containerSize = cont
ainerSize; } |
| 58 | 57 |
| 59 virtual bool hasRelativeDimensions() const OVERRIDE; | 58 virtual bool hasRelativeDimensions() const OVERRIDE; |
| 60 virtual bool hasRelativeIntrinsicLogicalWidth() const OVERRIDE; | 59 virtual bool hasRelativeIntrinsicLogicalWidth() const OVERRIDE; |
| 61 virtual bool hasRelativeLogicalHeight() const OVERRIDE; | 60 virtual bool hasRelativeLogicalHeight() const OVERRIDE; |
| 62 | 61 |
| 63 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS
S box coordinates. | 62 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS
S box coordinates. |
| 64 const AffineTransform& localToBorderBoxTransform() const { return m_localToB
orderBoxTransform; } | 63 const AffineTransform& localToBorderBoxTransform() const { return m_localToB
orderBoxTransform; } |
| 65 | 64 |
| 66 private: | 65 private: |
| 67 virtual RenderObjectChildList* virtualChildren() { return children(); } | 66 virtual RenderObjectChildList* virtualChildren() { return children(); } |
| 68 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } | 67 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } |
| 69 | 68 |
| 70 virtual bool isSVGRoot() const { return true; } | |
| 71 virtual const char* renderName() const { return "RenderSVGRoot"; } | 69 virtual const char* renderName() const { return "RenderSVGRoot"; } |
| 70 virtual bool isSVGRoot() const OVERRIDE FINAL { return true; } |
| 71 virtual bool isSVG() const OVERRIDE FINAL { return true; } |
| 72 | 72 |
| 73 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const OVERRIDE; | 73 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const OVERRIDE; |
| 74 virtual LayoutUnit computeReplacedLogicalHeight() const; | 74 virtual LayoutUnit computeReplacedLogicalHeight() const; |
| 75 virtual void layout(); | 75 virtual void layout(); |
| 76 virtual void paintReplaced(PaintInfo&, const LayoutPoint&); | 76 virtual void paintReplaced(PaintInfo&, const LayoutPoint&); |
| 77 | 77 |
| 78 virtual void willBeDestroyed(); | 78 virtual void willBeDestroyed(); |
| 79 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 79 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
| 80 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE; | 80 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE; |
| 81 virtual void removeChild(RenderObject*) OVERRIDE; | 81 virtual void removeChild(RenderObject*) OVERRIDE; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 AffineTransform m_localToBorderBoxTransform; | 113 AffineTransform m_localToBorderBoxTransform; |
| 114 bool m_isLayoutSizeChanged : 1; | 114 bool m_isLayoutSizeChanged : 1; |
| 115 bool m_needsBoundariesOrTransformUpdate : 1; | 115 bool m_needsBoundariesOrTransformUpdate : 1; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); | 118 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); |
| 119 | 119 |
| 120 } // namespace WebCore | 120 } // namespace WebCore |
| 121 | 121 |
| 122 #endif // RenderSVGRoot_h | 122 #endif // RenderSVGRoot_h |
| OLD | NEW |