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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; | 100 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; |
101 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect& repaintRect, bool fixed) const OVERRIDE; | 101 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect& repaintRect, bool fixed) const OVERRIDE; |
102 | 102 |
103 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; | 103 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; |
104 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; | 104 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; |
105 | 105 |
106 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; } | 106 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; } |
107 virtual bool canHaveChildren() const OVERRIDE { return true; } | 107 virtual bool canHaveChildren() const OVERRIDE { return true; } |
108 | 108 |
| 109 bool shouldApplyViewportClip() const; |
109 void updateCachedBoundaries(); | 110 void updateCachedBoundaries(); |
110 void buildLocalToBorderBoxTransform(); | 111 void buildLocalToBorderBoxTransform(); |
111 | 112 |
112 RenderObjectChildList m_children; | 113 RenderObjectChildList m_children; |
113 IntSize m_containerSize; | 114 IntSize m_containerSize; |
114 FloatRect m_objectBoundingBox; | 115 FloatRect m_objectBoundingBox; |
115 bool m_objectBoundingBoxValid; | 116 bool m_objectBoundingBoxValid; |
116 FloatRect m_strokeBoundingBox; | 117 FloatRect m_strokeBoundingBox; |
117 FloatRect m_repaintBoundingBox; | 118 FloatRect m_repaintBoundingBox; |
118 mutable AffineTransform m_localToParentTransform; | 119 mutable AffineTransform m_localToParentTransform; |
119 AffineTransform m_localToBorderBoxTransform; | 120 AffineTransform m_localToBorderBoxTransform; |
120 bool m_isLayoutSizeChanged : 1; | 121 bool m_isLayoutSizeChanged : 1; |
121 bool m_needsBoundariesOrTransformUpdate : 1; | 122 bool m_needsBoundariesOrTransformUpdate : 1; |
122 bool m_hasBoxDecorations : 1; | 123 bool m_hasBoxDecorations : 1; |
123 }; | 124 }; |
124 | 125 |
125 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); | 126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); |
126 | 127 |
127 } // namespace WebCore | 128 } // namespace WebCore |
128 | 129 |
129 #endif // RenderSVGRoot_h | 130 #endif // RenderSVGRoot_h |
OLD | NEW |