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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void willBeRemovedFromTree() OVERRIDE; | 92 virtual void willBeRemovedFromTree() OVERRIDE; |
93 | 93 |
94 virtual const AffineTransform& localToParentTransform() const OVERRIDE; | 94 virtual const AffineTransform& localToParentTransform() const OVERRIDE; |
95 | 95 |
96 virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundi
ngBox; } | 96 virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundi
ngBox; } |
97 virtual FloatRect strokeBoundingBox() const OVERRIDE { return m_strokeBoundi
ngBox; } | 97 virtual FloatRect strokeBoundingBox() const OVERRIDE { return m_strokeBoundi
ngBox; } |
98 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE {
return m_repaintBoundingBox; } | 98 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE {
return m_repaintBoundingBox; } |
99 | 99 |
100 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; | 100 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; |
101 | 101 |
102 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer) const OVERRIDE; | 102 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t OVERRIDE; |
103 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje
ct* paintInvalidationContainer, FloatRect& paintInvalidationRect, bool fixed) co
nst OVERRIDE; | 103 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje
ct* paintInvalidationContainer, FloatRect& paintInvalidationRect, bool fixed, co
nst PaintInvalidationState* = 0) const OVERRIDE; |
104 | 104 |
105 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; | 105 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0, const PaintInvalidationState* = 0) const OVERRIDE; |
106 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; | 106 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; |
107 | 107 |
108 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; } | 108 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; } |
109 virtual bool canHaveChildren() const OVERRIDE { return true; } | 109 virtual bool canHaveChildren() const OVERRIDE { return true; } |
110 | 110 |
111 bool shouldApplyViewportClip() const; | 111 bool shouldApplyViewportClip() const; |
112 void updateCachedBoundaries(); | 112 void updateCachedBoundaries(); |
113 void buildLocalToBorderBoxTransform(); | 113 void buildLocalToBorderBoxTransform(); |
114 | 114 |
115 RenderObjectChildList m_children; | 115 RenderObjectChildList m_children; |
116 IntSize m_containerSize; | 116 IntSize m_containerSize; |
117 FloatRect m_objectBoundingBox; | 117 FloatRect m_objectBoundingBox; |
118 bool m_objectBoundingBoxValid; | 118 bool m_objectBoundingBoxValid; |
119 FloatRect m_strokeBoundingBox; | 119 FloatRect m_strokeBoundingBox; |
120 FloatRect m_repaintBoundingBox; | 120 FloatRect m_repaintBoundingBox; |
121 mutable AffineTransform m_localToParentTransform; | 121 mutable AffineTransform m_localToParentTransform; |
122 AffineTransform m_localToBorderBoxTransform; | 122 AffineTransform m_localToBorderBoxTransform; |
123 bool m_isLayoutSizeChanged : 1; | 123 bool m_isLayoutSizeChanged : 1; |
124 bool m_needsBoundariesOrTransformUpdate : 1; | 124 bool m_needsBoundariesOrTransformUpdate : 1; |
125 bool m_hasBoxDecorationBackground : 1; | 125 bool m_hasBoxDecorationBackground : 1; |
126 }; | 126 }; |
127 | 127 |
128 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); | 128 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); |
129 | 129 |
130 } // namespace WebCore | 130 } // namespace WebCore |
131 | 131 |
132 #endif // RenderSVGRoot_h | 132 #endif // RenderSVGRoot_h |
OLD | NEW |