| 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 25 matching lines...) Expand all Loading... |
| 36 explicit RenderSVGContainer(SVGStyledElement*); | 36 explicit RenderSVGContainer(SVGStyledElement*); |
| 37 virtual ~RenderSVGContainer(); | 37 virtual ~RenderSVGContainer(); |
| 38 | 38 |
| 39 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 39 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
| 40 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 40 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
| 41 | 41 |
| 42 const RenderObjectChildList* children() const { return &m_children; } | 42 const RenderObjectChildList* children() const { return &m_children; } |
| 43 RenderObjectChildList* children() { return &m_children; } | 43 RenderObjectChildList* children() { return &m_children; } |
| 44 | 44 |
| 45 virtual void paint(PaintInfo&, const LayoutPoint&); | 45 virtual void paint(PaintInfo&, const LayoutPoint&); |
| 46 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesUpdate = true; } | 46 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } |
| 47 virtual bool needsBoundariesUpdate() OVERRIDE { return m_needsBoundariesUpda
te; } | 47 virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundari
esUpdate; } |
| 48 virtual bool didTransformToRootUpdate() { return false; } | 48 virtual bool didTransformToRootUpdate() { return false; } |
| 49 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } | 49 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 virtual RenderObjectChildList* virtualChildren() { return children(); } | 52 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi
ldren(); } |
| 53 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } | 53 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL
{ return children(); } |
| 54 | 54 |
| 55 virtual bool isSVGContainer() const { return true; } | 55 virtual bool isSVGContainer() const OVERRIDE FINAL { return true; } |
| 56 virtual const char* renderName() const { return "RenderSVGContainer"; } | 56 virtual const char* renderName() const { return "RenderSVGContainer"; } |
| 57 | 57 |
| 58 virtual void layout(); | 58 virtual void layout(); |
| 59 | 59 |
| 60 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE; | 60 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE FINAL; |
| 61 virtual void removeChild(RenderObject*) OVERRIDE; | 61 virtual void removeChild(RenderObject*) OVERRIDE FINAL; |
| 62 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; | 62 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE FINAL; |
| 63 | 63 |
| 64 virtual FloatRect objectBoundingBox() const { return m_objectBoundingBox; } | 64 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_object
BoundingBox; } |
| 65 virtual FloatRect strokeBoundingBox() const { return m_strokeBoundingBox; } | 65 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke
BoundingBox; } |
| 66 virtual FloatRect repaintRectInLocalCoordinates() const { return m_repaintBo
undingBox; } | 66 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE FINAL { ret
urn m_repaintBoundingBox; } |
| 67 | 67 |
| 68 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction); | 68 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction); |
| 69 | 69 |
| 70 // Allow RenderSVGTransformableContainer to hook in at the right time in lay
out() | 70 // Allow RenderSVGTransformableContainer to hook in at the right time in lay
out() |
| 71 virtual bool calculateLocalTransform() { return false; } | 71 virtual bool calculateLocalTransform() { return false; } |
| 72 | 72 |
| 73 // Allow RenderSVGViewportContainer to hook in at the right times in layout(
), paint() and nodeAtFloatPoint() | 73 // Allow RenderSVGViewportContainer to hook in at the right times in layout(
), paint() and nodeAtFloatPoint() |
| 74 virtual void calcViewport() { } | 74 virtual void calcViewport() { } |
| 75 virtual void applyViewportClip(PaintInfo&) { } | 75 virtual void applyViewportClip(PaintInfo&) { } |
| 76 virtual bool pointIsInsideViewportClip(const FloatPoint& /*pointInParent*/)
{ return true; } | 76 virtual bool pointIsInsideViewportClip(const FloatPoint& /*pointInParent*/)
{ return true; } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 101 return static_cast<const RenderSVGContainer*>(object); | 101 return static_cast<const RenderSVGContainer*>(object); |
| 102 } | 102 } |
| 103 | 103 |
| 104 // This will catch anyone doing an unnecessary cast. | 104 // This will catch anyone doing an unnecessary cast. |
| 105 void toRenderSVGContainer(const RenderSVGContainer*); | 105 void toRenderSVGContainer(const RenderSVGContainer*); |
| 106 | 106 |
| 107 } // namespace WebCore | 107 } // namespace WebCore |
| 108 | 108 |
| 109 #endif // ENABLE(SVG) | 109 #endif // ENABLE(SVG) |
| 110 #endif // RenderSVGContainer_h | 110 #endif // RenderSVGContainer_h |
| OLD | NEW |