| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); | 92 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); |
| 93 } | 93 } |
| 94 | 94 |
| 95 LayoutRect LayoutSVGBlock::clippedOverflowRectForPaintInvalidation(const LayoutB
oxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn
validationState) const | 95 LayoutRect LayoutSVGBlock::clippedOverflowRectForPaintInvalidation(const LayoutB
oxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn
validationState) const |
| 96 { | 96 { |
| 97 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, pain
tInvalidationContainer, paintInvalidationState); | 97 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, pain
tInvalidationContainer, paintInvalidationState); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void LayoutSVGBlock::mapRectToPaintInvalidationBacking(const LayoutBoxModelObjec
t* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* p
aintInvalidationState) const | 100 void LayoutSVGBlock::mapRectToPaintInvalidationBacking(const LayoutBoxModelObjec
t* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* p
aintInvalidationState) const |
| 101 { | 101 { |
| 102 FloatRect paintInvalidationRect = rect; | 102 FloatRect paintInvalidationRect(rect); |
| 103 const LayoutSVGRoot& svgRoot = SVGLayoutSupport::mapRectToSVGRootForPaintInv
alidation(*this, paintInvalidationRect, rect); | 103 const LayoutSVGRoot& svgRoot = SVGLayoutSupport::mapRectToSVGRootForPaintInv
alidation(*this, paintInvalidationRect, rect); |
| 104 svgRoot.mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect,
paintInvalidationState); | 104 svgRoot.mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect,
paintInvalidationState); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&, const HitTestLocation&, const L
ayoutPoint&, HitTestAction) | 107 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&, const HitTestLocation&, const L
ayoutPoint&, HitTestAction) |
| 108 { | 108 { |
| 109 ASSERT_NOT_REACHED(); | 109 ASSERT_NOT_REACHED(); |
| 110 return false; | 110 return false; |
| 111 } | 111 } |
| 112 | 112 |
| 113 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) | 113 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) |
| 114 { | 114 { |
| 115 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 115 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
| 116 return; | 116 return; |
| 117 | 117 |
| 118 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); | 118 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); |
| 119 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); | 119 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } | 122 } |
| OLD | NEW |