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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 void RenderSVGBlock::styleDidChange(StyleDifference diff, const RenderStyle* old
Style) | 80 void RenderSVGBlock::styleDidChange(StyleDifference diff, const RenderStyle* old
Style) |
81 { | 81 { |
82 if (diff.needsFullLayout()) | 82 if (diff.needsFullLayout()) |
83 setNeedsBoundariesUpdate(); | 83 setNeedsBoundariesUpdate(); |
84 | 84 |
85 RenderBlock::styleDidChange(diff, oldStyle); | 85 RenderBlock::styleDidChange(diff, oldStyle); |
86 SVGResourcesCache::clientStyleChanged(this, diff, style()); | 86 SVGResourcesCache::clientStyleChanged(this, diff, style()); |
87 } | 87 } |
88 | 88 |
89 void RenderSVGBlock::mapLocalToContainer(const RenderLayerModelObject* repaintCo
ntainer, TransformState& transformState, MapCoordinatesFlags, bool* wasFixed, co
nst PaintInvalidationState* paintInvalidationState) const | 89 void RenderSVGBlock::mapLocalToContainer(const RenderLayerModelObject* paintInva
lidationContainer, TransformState& transformState, MapCoordinatesFlags, bool* wa
sFixed, const PaintInvalidationState* paintInvalidationState) const |
90 { | 90 { |
91 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, transformState
, wasFixed, paintInvalidationState); | 91 SVGRenderSupport::mapLocalToContainer(this, paintInvalidationContainer, tran
sformState, wasFixed, paintInvalidationState); |
92 } | 92 } |
93 | 93 |
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::clippedOverflowRectForRepaint(this, paintInvalidati
onContainer, paintInvalidationState); | 101 return SVGRenderSupport::clippedOverflowRectForPaintInvalidation(this, paint
InvalidationContainer, paintInvalidationState); |
102 } | 102 } |
103 | 103 |
104 void RenderSVGBlock::computeFloatRectForPaintInvalidation(const RenderLayerModel
Object* paintInvalidationContainer, FloatRect& paintInvalidationRect, bool fixed
, const PaintInvalidationState* paintInvalidationState) const | 104 void RenderSVGBlock::computeFloatRectForPaintInvalidation(const RenderLayerModel
Object* paintInvalidationContainer, FloatRect& paintInvalidationRect, bool fixed
, const PaintInvalidationState* paintInvalidationState) const |
105 { | 105 { |
106 SVGRenderSupport::computeFloatRectForRepaint(this, paintInvalidationContaine
r, paintInvalidationRect, fixed, paintInvalidationState); | 106 SVGRenderSupport::computeFloatRectForPaintInvalidation(this, paintInvalidati
onContainer, paintInvalidationRect, fixed, paintInvalidationState); |
107 } | 107 } |
108 | 108 |
109 bool RenderSVGBlock::nodeAtPoint(const HitTestRequest&, HitTestResult&, const Hi
tTestLocation&, const LayoutPoint&, HitTestAction) | 109 bool RenderSVGBlock::nodeAtPoint(const HitTestRequest&, HitTestResult&, const Hi
tTestLocation&, const LayoutPoint&, HitTestAction) |
110 { | 110 { |
111 ASSERT_NOT_REACHED(); | 111 ASSERT_NOT_REACHED(); |
112 return false; | 112 return false; |
113 } | 113 } |
114 | 114 |
115 void RenderSVGBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintI
nvalidationState) | 115 void RenderSVGBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintI
nvalidationState) |
116 { | 116 { |
117 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 117 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
118 return; | 118 return; |
119 | 119 |
120 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); | 120 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); |
121 RenderBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); | 121 RenderBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); |
122 } | 122 } |
123 | 123 |
124 } | 124 } |
OLD | NEW |