OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 LayoutBlock::styleDidChange(diff, oldStyle); | 83 LayoutBlock::styleDidChange(diff, oldStyle); |
84 SVGResourcesCache::clientStyleChanged(this, diff, styleRef()); | 84 SVGResourcesCache::clientStyleChanged(this, diff, styleRef()); |
85 } | 85 } |
86 | 86 |
87 void LayoutSVGBlock::mapLocalToAncestor(const LayoutBoxModelObject* ancestor, Tr
ansformState& transformState, MapCoordinatesFlags, bool* wasFixed, const PaintIn
validationState* paintInvalidationState) const | 87 void LayoutSVGBlock::mapLocalToAncestor(const LayoutBoxModelObject* ancestor, Tr
ansformState& transformState, MapCoordinatesFlags, bool* wasFixed, const PaintIn
validationState* paintInvalidationState) const |
88 { | 88 { |
89 SVGLayoutSupport::mapLocalToAncestor(this, ancestor, transformState, wasFixe
d, paintInvalidationState); | 89 SVGLayoutSupport::mapLocalToAncestor(this, ancestor, transformState, wasFixe
d, paintInvalidationState); |
90 } | 90 } |
91 | 91 |
| 92 void LayoutSVGBlock::mapAncestorToLocal(const LayoutBoxModelObject* ancestor, Tr
ansformState& transformState, MapCoordinatesFlags) const |
| 93 { |
| 94 if (this == ancestor) |
| 95 return; |
| 96 SVGLayoutSupport::mapAncestorToLocal(*this, ancestor, transformState); |
| 97 } |
| 98 |
92 const LayoutObject* LayoutSVGBlock::pushMappingToContainer(const LayoutBoxModelO
bject* ancestorToStopAt, LayoutGeometryMap& geometryMap) const | 99 const LayoutObject* LayoutSVGBlock::pushMappingToContainer(const LayoutBoxModelO
bject* ancestorToStopAt, LayoutGeometryMap& geometryMap) const |
93 { | 100 { |
94 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); | 101 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); |
95 } | 102 } |
96 | 103 |
97 LayoutRect LayoutSVGBlock::clippedOverflowRectForPaintInvalidation(const LayoutB
oxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn
validationState) const | 104 LayoutRect LayoutSVGBlock::clippedOverflowRectForPaintInvalidation(const LayoutB
oxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn
validationState) const |
98 { | 105 { |
99 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, pain
tInvalidationContainer, paintInvalidationState); | 106 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, pain
tInvalidationContainer, paintInvalidationState); |
100 } | 107 } |
101 | 108 |
(...skipping 13 matching lines...) Expand all Loading... |
115 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) | 122 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) |
116 { | 123 { |
117 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 124 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
118 return; | 125 return; |
119 | 126 |
120 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); | 127 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); |
121 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); | 128 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); |
122 } | 129 } |
123 | 130 |
124 } // namespace blink | 131 } // namespace blink |
OLD | NEW |