| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 m_isLayoutSizeChanged = needsLayout || (svg->hasRelativeLengths() && oldSize
!= size()); | 153 m_isLayoutSizeChanged = needsLayout || (svg->hasRelativeLengths() && oldSize
!= size()); |
| 154 // When hasRelativeLengths() is false, no descendants have relative lengths | 154 // When hasRelativeLengths() is false, no descendants have relative lengths |
| 155 // (hence no one is interested in viewport size changes). | 155 // (hence no one is interested in viewport size changes). |
| 156 bool layoutSizeChanged = m_isLayoutSizeChanged && svg->hasRelativeLengths(); | 156 bool layoutSizeChanged = m_isLayoutSizeChanged && svg->hasRelativeLengths(); |
| 157 | 157 |
| 158 // If any of this root's children need to be laid out, and a filter is | 158 // If any of this root's children need to be laid out, and a filter is |
| 159 // applied to it, we need to issue paint invalidations for all descendants. | 159 // applied to it, we need to issue paint invalidations for all descendants. |
| 160 bool forceLayoutOfChildren = needsLayout | 160 bool forceLayoutOfChildren = needsLayout |
| 161 || (normalChildNeedsLayout() && SVGLayoutSupport::hasFilterResource(*thi
s)); | 161 || (normalChildNeedsLayout() && SVGLayoutSupport::hasFilterResource(*thi
s)); |
| 162 | 162 |
| 163 const bool transformToRootChanged = false; | 163 const bool scalingFactorChanged = false; |
| 164 SVGLayoutSupport::layoutChildren(firstChild(), forceLayoutOfChildren, transf
ormToRootChanged, layoutSizeChanged); | 164 SVGLayoutSupport::layoutChildren(firstChild(), forceLayoutOfChildren, scalin
gFactorChanged, layoutSizeChanged); |
| 165 | 165 |
| 166 if (m_needsBoundariesOrTransformUpdate) { | 166 if (m_needsBoundariesOrTransformUpdate) { |
| 167 updateCachedBoundaries(); | 167 updateCachedBoundaries(); |
| 168 m_needsBoundariesOrTransformUpdate = false; | 168 m_needsBoundariesOrTransformUpdate = false; |
| 169 } | 169 } |
| 170 | 170 |
| 171 m_overflow.clear(); | 171 m_overflow.clear(); |
| 172 addVisualEffectOverflow(); | 172 addVisualEffectOverflow(); |
| 173 | 173 |
| 174 if (!shouldApplyViewportClip()) { | 174 if (!shouldApplyViewportClip()) { |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 updateHitTestResult(result, pointInBorderBox); | 414 updateHitTestResult(result, pointInBorderBox); |
| 415 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) | 415 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) |
| 416 return true; | 416 return true; |
| 417 } | 417 } |
| 418 } | 418 } |
| 419 | 419 |
| 420 return false; | 420 return false; |
| 421 } | 421 } |
| 422 | 422 |
| 423 } // namespace blink | 423 } // namespace blink |
| OLD | NEW |