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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const RenderObject* RenderSVGBlock::pushMappingToContainer(const RenderLayerMode
lObject* ancestorToStopAt, RenderGeometryMap& geometryMap) const | 94 const RenderObject* RenderSVGBlock::pushMappingToContainer(const RenderLayerMode
lObject* ancestorToStopAt, RenderGeometryMap& geometryMap) const |
95 { | 95 { |
96 return SVGRenderSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); | 96 return SVGRenderSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); |
97 } | 97 } |
98 | 98 |
99 LayoutRect RenderSVGBlock::clippedOverflowRectForPaintInvalidation(const RenderL
ayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paint
InvalidationState) const | 99 LayoutRect RenderSVGBlock::clippedOverflowRectForPaintInvalidation(const RenderL
ayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paint
InvalidationState) const |
100 { | 100 { |
101 return SVGRenderSupport::clippedOverflowRectForPaintInvalidation(this, paint
InvalidationContainer, paintInvalidationState); | 101 return SVGRenderSupport::clippedOverflowRectForPaintInvalidation(this, paint
InvalidationContainer, paintInvalidationState); |
102 } | 102 } |
103 | 103 |
| 104 void RenderSVGBlock::mapRectToPaintInvalidationBacking(const RenderLayerModelObj
ect* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState*
paintInvalidationState) const |
| 105 { |
| 106 FloatRect paintInvalidationRect = rect; |
| 107 paintInvalidationRect.inflate(style()->outlineWidth()); |
| 108 computeFloatRectForPaintInvalidation(paintInvalidationContainer, paintInvali
dationRect, paintInvalidationState); |
| 109 rect = enclosingLayoutRect(paintInvalidationRect); |
| 110 } |
| 111 |
104 void RenderSVGBlock::computeFloatRectForPaintInvalidation(const RenderLayerModel
Object* paintInvalidationContainer, FloatRect& paintInvalidationRect, const Pain
tInvalidationState* paintInvalidationState) const | 112 void RenderSVGBlock::computeFloatRectForPaintInvalidation(const RenderLayerModel
Object* paintInvalidationContainer, FloatRect& paintInvalidationRect, const Pain
tInvalidationState* paintInvalidationState) const |
105 { | 113 { |
106 SVGRenderSupport::computeFloatRectForPaintInvalidation(this, paintInvalidati
onContainer, paintInvalidationRect, paintInvalidationState); | 114 SVGRenderSupport::computeFloatRectForPaintInvalidation(this, paintInvalidati
onContainer, paintInvalidationRect, paintInvalidationState); |
107 } | 115 } |
108 | 116 |
109 bool RenderSVGBlock::nodeAtPoint(const HitTestRequest&, HitTestResult&, const Hi
tTestLocation&, const LayoutPoint&, HitTestAction) | 117 bool RenderSVGBlock::nodeAtPoint(const HitTestRequest&, HitTestResult&, const Hi
tTestLocation&, const LayoutPoint&, HitTestAction) |
110 { | 118 { |
111 ASSERT_NOT_REACHED(); | 119 ASSERT_NOT_REACHED(); |
112 return false; | 120 return false; |
113 } | 121 } |
114 | 122 |
115 void RenderSVGBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintI
nvalidationState) | 123 void RenderSVGBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintI
nvalidationState) |
116 { | 124 { |
117 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 125 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
118 return; | 126 return; |
119 | 127 |
120 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); | 128 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); |
121 RenderBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); | 129 RenderBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); |
122 } | 130 } |
123 | 131 |
124 } | 132 } |
OLD | NEW |