| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 void RenderSVGRoot::willBeDestroyed() | 275 void RenderSVGRoot::willBeDestroyed() |
| 276 { | 276 { |
| 277 RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this))
; | 277 RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this))
; |
| 278 | 278 |
| 279 SVGResourcesCache::clientDestroyed(this); | 279 SVGResourcesCache::clientDestroyed(this); |
| 280 RenderReplaced::willBeDestroyed(); | 280 RenderReplaced::willBeDestroyed(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 void RenderSVGRoot::styleDidChange(StyleDifference diff, const RenderStyle* oldS
tyle) | 283 void RenderSVGRoot::styleDidChange(StyleDifference diff, const RenderStyle* oldS
tyle) |
| 284 { | 284 { |
| 285 if (diff.needsFullLayout()) | 285 if (diff == StyleDifferenceLayout) |
| 286 setNeedsBoundariesUpdate(); | 286 setNeedsBoundariesUpdate(); |
| 287 // FIXME: How about other diff flags? | 287 if (diff == StyleDifferenceRepaint) { |
| 288 if (diff.needsRepaintObjectOnly()) { | |
| 289 // Box decorations may have appeared/disappeared - recompute status. | 288 // Box decorations may have appeared/disappeared - recompute status. |
| 290 m_hasBoxDecorations = calculateHasBoxDecorations(); | 289 m_hasBoxDecorations = calculateHasBoxDecorations(); |
| 291 } | 290 } |
| 292 | 291 |
| 293 RenderReplaced::styleDidChange(diff, oldStyle); | 292 RenderReplaced::styleDidChange(diff, oldStyle); |
| 294 SVGResourcesCache::clientStyleChanged(this, diff, style()); | 293 SVGResourcesCache::clientStyleChanged(this, diff, style()); |
| 295 } | 294 } |
| 296 | 295 |
| 297 bool RenderSVGRoot::isChildAllowed(RenderObject* child, RenderStyle*) const | 296 bool RenderSVGRoot::isChildAllowed(RenderObject* child, RenderStyle*) const |
| 298 { | 297 { |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 updateHitTestResult(result, pointInBorderBox); | 452 updateHitTestResult(result, pointInBorderBox); |
| 454 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn
Container, boundsRect)) | 453 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn
Container, boundsRect)) |
| 455 return true; | 454 return true; |
| 456 } | 455 } |
| 457 } | 456 } |
| 458 | 457 |
| 459 return false; | 458 return false; |
| 460 } | 459 } |
| 461 | 460 |
| 462 } | 461 } |
| OLD | NEW |