| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 || this->isDocumentElement(); | 196 || this->isDocumentElement(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const | 199 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const |
| 200 { | 200 { |
| 201 SVGRootPainter(*this).paint(paintInfo, paintOffset); | 201 SVGRootPainter(*this).paint(paintInfo, paintOffset); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void LayoutSVGRoot::willBeDestroyed() | 204 void LayoutSVGRoot::willBeDestroyed() |
| 205 { | 205 { |
| 206 LayoutBlock::removePercentHeightDescendant(const_cast<LayoutSVGRoot*>(this))
; | |
| 207 | |
| 208 SVGResourcesCache::clientDestroyed(this); | 206 SVGResourcesCache::clientDestroyed(this); |
| 209 LayoutReplaced::willBeDestroyed(); | 207 LayoutReplaced::willBeDestroyed(); |
| 210 } | 208 } |
| 211 | 209 |
| 212 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol
dStyle) | 210 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol
dStyle) |
| 213 { | 211 { |
| 214 if (diff.needsFullLayout()) | 212 if (diff.needsFullLayout()) |
| 215 setNeedsBoundariesUpdate(); | 213 setNeedsBoundariesUpdate(); |
| 216 if (diff.needsPaintInvalidation()) { | 214 if (diff.needsPaintInvalidation()) { |
| 217 // Box decorations may have appeared/disappeared - recompute status. | 215 // Box decorations may have appeared/disappeared - recompute status. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 updateHitTestResult(result, pointInBorderBox); | 407 updateHitTestResult(result, pointInBorderBox); |
| 410 if (!result.addNodeToListBasedTestResult(node(), locationInContainer
, boundsRect)) | 408 if (!result.addNodeToListBasedTestResult(node(), locationInContainer
, boundsRect)) |
| 411 return true; | 409 return true; |
| 412 } | 410 } |
| 413 } | 411 } |
| 414 | 412 |
| 415 return false; | 413 return false; |
| 416 } | 414 } |
| 417 | 415 |
| 418 } | 416 } |
| OLD | NEW |