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 paint(PaintInfo&, const LayoutPoint&); | 43 virtual void paint(PaintInfo&, const LayoutPoint&); |
44 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } | 44 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } |
45 virtual bool didTransformToRootUpdate() { return false; } | 45 virtual bool didTransformToRootUpdate() { return false; } |
46 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } | 46 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } |
47 | 47 |
48 protected: | 48 protected: |
49 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi
ldren(); } | 49 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi
ldren(); } |
50 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL
{ return children(); } | 50 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL
{ return children(); } |
51 | 51 |
52 virtual bool isSVGContainer() const OVERRIDE FINAL { return true; } | 52 virtual bool isSVGContainer() const OVERRIDE FINAL { return true; } |
53 virtual const char* renderName() const { return "RenderSVGContainer"; } | 53 virtual const char* renderName() const OVERRIDE { return "RenderSVGContainer
"; } |
54 | 54 |
55 virtual void layout(); | 55 virtual void layout() OVERRIDE; |
56 | 56 |
57 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE FINAL; | 57 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE FINAL; |
58 virtual void removeChild(RenderObject*) OVERRIDE FINAL; | 58 virtual void removeChild(RenderObject*) OVERRIDE FINAL; |
59 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE FINAL; | 59 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE FINAL; |
60 | 60 |
61 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_object
BoundingBox; } | 61 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_object
BoundingBox; } |
62 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke
BoundingBox; } | 62 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke
BoundingBox; } |
63 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE FINAL { ret
urn m_repaintBoundingBox; } | 63 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE FINAL { ret
urn m_repaintBoundingBox; } |
64 | 64 |
65 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction); | 65 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) OVERRIDE; |
66 | 66 |
67 // Allow RenderSVGTransformableContainer to hook in at the right time in lay
out() | 67 // Allow RenderSVGTransformableContainer to hook in at the right time in lay
out() |
68 virtual bool calculateLocalTransform() { return false; } | 68 virtual bool calculateLocalTransform() { return false; } |
69 | 69 |
70 // Allow RenderSVGViewportContainer to hook in at the right times in layout(
), paint() and nodeAtFloatPoint() | 70 // Allow RenderSVGViewportContainer to hook in at the right times in layout(
), paint() and nodeAtFloatPoint() |
71 virtual void calcViewport() { } | 71 virtual void calcViewport() { } |
72 virtual void applyViewportClip(PaintInfo&) { } | 72 virtual void applyViewportClip(PaintInfo&) { } |
73 virtual bool pointIsInsideViewportClip(const FloatPoint& /*pointInParent*/)
{ return true; } | 73 virtual bool pointIsInsideViewportClip(const FloatPoint& /*pointInParent*/)
{ return true; } |
74 | 74 |
75 virtual void determineIfLayoutSizeChanged() { } | 75 virtual void determineIfLayoutSizeChanged() { } |
76 | 76 |
77 bool selfWillPaint(); | 77 bool selfWillPaint(); |
78 void updateCachedBoundaries(); | 78 void updateCachedBoundaries(); |
79 | 79 |
80 private: | 80 private: |
81 RenderObjectChildList m_children; | 81 RenderObjectChildList m_children; |
82 FloatRect m_objectBoundingBox; | 82 FloatRect m_objectBoundingBox; |
83 bool m_objectBoundingBoxValid; | 83 bool m_objectBoundingBoxValid; |
84 FloatRect m_strokeBoundingBox; | 84 FloatRect m_strokeBoundingBox; |
85 FloatRect m_repaintBoundingBox; | 85 FloatRect m_repaintBoundingBox; |
86 bool m_needsBoundariesUpdate : 1; | 86 bool m_needsBoundariesUpdate : 1; |
87 }; | 87 }; |
88 | 88 |
89 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer()); | 89 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer()); |
90 | 90 |
91 } // namespace WebCore | 91 } // namespace WebCore |
92 | 92 |
93 #endif // RenderSVGContainer_h | 93 #endif // RenderSVGContainer_h |
OLD | NEW |