| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 m_didScreenScaleFactorChange = selfNeedsLayout(); | 150 m_didScreenScaleFactorChange = selfNeedsLayout(); |
| 151 | 151 |
| 152 SVGLayoutSupport::layoutResourcesIfNeeded(this); | 152 SVGLayoutSupport::layoutResourcesIfNeeded(this); |
| 153 | 153 |
| 154 SVGSVGElement* svg = toSVGSVGElement(node()); | 154 SVGSVGElement* svg = toSVGSVGElement(node()); |
| 155 ASSERT(svg); | 155 ASSERT(svg); |
| 156 // When hasRelativeLengths() is false, no descendants have relative lengths | 156 // When hasRelativeLengths() is false, no descendants have relative lengths |
| 157 // (hence no one is interested in viewport size changes). | 157 // (hence no one is interested in viewport size changes). |
| 158 m_isLayoutSizeChanged = svg->hasRelativeLengths() && (selfNeedsLayout() || o
ldSize != size()); | 158 m_isLayoutSizeChanged = svg->hasRelativeLengths() && (selfNeedsLayout() || o
ldSize != size()); |
| 159 | 159 |
| 160 // The scale of one or more of the SVG elements may have changed, so mark |
| 161 // the entire subtree as needing paint invalidation checking. |
| 162 if (m_isLayoutSizeChanged) |
| 163 setMayNeedPaintInvalidationSubtree(); |
| 164 |
| 160 SVGLayoutSupport::layoutChildren(firstChild(), false, m_didScreenScaleFactor
Change, m_isLayoutSizeChanged); | 165 SVGLayoutSupport::layoutChildren(firstChild(), false, m_didScreenScaleFactor
Change, m_isLayoutSizeChanged); |
| 161 | 166 |
| 162 if (m_needsBoundariesOrTransformUpdate) { | 167 if (m_needsBoundariesOrTransformUpdate) { |
| 163 updateCachedBoundaries(); | 168 updateCachedBoundaries(); |
| 164 m_needsBoundariesOrTransformUpdate = false; | 169 m_needsBoundariesOrTransformUpdate = false; |
| 165 } | 170 } |
| 166 | 171 |
| 167 m_overflow.reset(); | 172 m_overflow.reset(); |
| 168 addVisualEffectOverflow(); | 173 addVisualEffectOverflow(); |
| 169 | 174 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 updateHitTestResult(result, pointInBorderBox); | 423 updateHitTestResult(result, pointInBorderBox); |
| 419 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) | 424 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) |
| 420 return true; | 425 return true; |
| 421 } | 426 } |
| 422 } | 427 } |
| 423 | 428 |
| 424 return false; | 429 return false; |
| 425 } | 430 } |
| 426 | 431 |
| 427 } // namespace blink | 432 } // namespace blink |
| OLD | NEW |