| 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 } | 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 Loading... |
| 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 |
| OLD | NEW |