| 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, 2008, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. | 5 * Copyright (C) 2009 Google, Inc. |
| 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 || this->isDocumentElement(); | 188 || this->isDocumentElement(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const | 191 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const |
| 192 { | 192 { |
| 193 SVGRootPainter(*this).paint(paintInfo, paintOffset); | 193 SVGRootPainter(*this).paint(paintInfo, paintOffset); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void LayoutSVGRoot::willBeDestroyed() | 196 void LayoutSVGRoot::willBeDestroyed() |
| 197 { | 197 { |
| 198 LayoutBlock::removePercentHeightDescendant(const_cast<LayoutSVGRoot*>(this))
; | |
| 199 | |
| 200 SVGResourcesCache::clientDestroyed(this); | 198 SVGResourcesCache::clientDestroyed(this); |
| 201 LayoutReplaced::willBeDestroyed(); | 199 LayoutReplaced::willBeDestroyed(); |
| 202 } | 200 } |
| 203 | 201 |
| 204 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol
dStyle) | 202 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol
dStyle) |
| 205 { | 203 { |
| 206 if (diff.needsFullLayout()) | 204 if (diff.needsFullLayout()) |
| 207 setNeedsBoundariesUpdate(); | 205 setNeedsBoundariesUpdate(); |
| 208 if (diff.needsPaintInvalidation()) { | 206 if (diff.needsPaintInvalidation()) { |
| 209 // Box decorations may have appeared/disappeared - recompute status. | 207 // Box decorations may have appeared/disappeared - recompute status. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 updateHitTestResult(result, pointInBorderBox); | 399 updateHitTestResult(result, pointInBorderBox); |
| 402 if (!result.addNodeToListBasedTestResult(node(), locationInContainer
, boundsRect)) | 400 if (!result.addNodeToListBasedTestResult(node(), locationInContainer
, boundsRect)) |
| 403 return true; | 401 return true; |
| 404 } | 402 } |
| 405 } | 403 } |
| 406 | 404 |
| 407 return false; | 405 return false; |
| 408 } | 406 } |
| 409 | 407 |
| 410 } // namespace blink | 408 } // namespace blink |
| OLD | NEW |