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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 LayoutSize oldSize = size(); | 144 LayoutSize oldSize = size(); |
145 updateLogicalWidth(); | 145 updateLogicalWidth(); |
146 updateLogicalHeight(); | 146 updateLogicalHeight(); |
147 buildLocalToBorderBoxTransform(); | 147 buildLocalToBorderBoxTransform(); |
148 | 148 |
149 SVGLayoutSupport::layoutResourcesIfNeeded(this); | 149 SVGLayoutSupport::layoutResourcesIfNeeded(this); |
150 | 150 |
151 SVGSVGElement* svg = toSVGSVGElement(node()); | 151 SVGSVGElement* svg = toSVGSVGElement(node()); |
152 ASSERT(svg); | 152 ASSERT(svg); |
153 m_isLayoutSizeChanged = needsLayout || (svg->hasRelativeLengths() && oldSize != size()); | 153 m_isLayoutSizeChanged = needsLayout || (svg->hasRelativeLengths() && oldSize != size()); |
154 SVGLayoutSupport::layoutChildren(this, needsLayout || SVGLayoutSupport::filt ersForceContainerLayout(this)); | 154 // If any of this root's children need to be laid out, and a filter is |
155 // applied to it, we need to issue paint invalidations for all descendants. | |
156 bool forceLayoutOfChildren = needsLayout | |
pdr.
2016/04/19 18:14:46
This is a little confusing because the 2nd argumen
| |
157 || (normalChildNeedsLayout() && SVGLayoutSupport::hasFilterResource(*thi s)); | |
158 SVGLayoutSupport::layoutChildren(this, forceLayoutOfChildren); | |
155 | 159 |
156 if (m_needsBoundariesOrTransformUpdate) { | 160 if (m_needsBoundariesOrTransformUpdate) { |
157 updateCachedBoundaries(); | 161 updateCachedBoundaries(); |
158 m_needsBoundariesOrTransformUpdate = false; | 162 m_needsBoundariesOrTransformUpdate = false; |
159 } | 163 } |
160 | 164 |
161 m_overflow.clear(); | 165 m_overflow.clear(); |
162 addVisualEffectOverflow(); | 166 addVisualEffectOverflow(); |
163 | 167 |
164 if (!shouldApplyViewportClip()) { | 168 if (!shouldApplyViewportClip()) { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
404 updateHitTestResult(result, pointInBorderBox); | 408 updateHitTestResult(result, pointInBorderBox); |
405 if (result.addNodeToListBasedTestResult(node(), locationInContainer, boundsRect) == StopHitTesting) | 409 if (result.addNodeToListBasedTestResult(node(), locationInContainer, boundsRect) == StopHitTesting) |
406 return true; | 410 return true; |
407 } | 411 } |
408 } | 412 } |
409 | 413 |
410 return false; | 414 return false; |
411 } | 415 } |
412 | 416 |
413 } // namespace blink | 417 } // namespace blink |
OLD | NEW |