OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@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. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 while (ancestor && !ancestor->isSVGRoot()) { | 264 while (ancestor && !ancestor->isSVGRoot()) { |
265 if (ancestor->isSVGTransformableContainer()) | 265 if (ancestor->isSVGTransformableContainer()) |
266 return toLayoutSVGTransformableContainer(ancestor)->didTransformToRo
otUpdate(); | 266 return toLayoutSVGTransformableContainer(ancestor)->didTransformToRo
otUpdate(); |
267 if (ancestor->isSVGViewportContainer()) | 267 if (ancestor->isSVGViewportContainer()) |
268 return toLayoutSVGViewportContainer(ancestor)->didTransformToRootUpd
ate(); | 268 return toLayoutSVGViewportContainer(ancestor)->didTransformToRootUpd
ate(); |
269 ancestor = ancestor->parent(); | 269 ancestor = ancestor->parent(); |
270 } | 270 } |
271 return false; | 271 return false; |
272 } | 272 } |
273 | 273 |
274 void SVGLayoutSupport::layoutChildren(LayoutObject* start, bool forceLayout, boo
l transformChanged, bool layoutSizeChanged) | 274 void SVGLayoutSupport::layoutChildren(LayoutObject* firstChild, bool forceLayout
, bool transformChanged, bool layoutSizeChanged) |
275 { | 275 { |
276 for (LayoutObject* child = start->slowFirstChild(); child; child = child->ne
xtSibling()) { | 276 for (LayoutObject* child = firstChild; child; child = child->nextSibling())
{ |
277 bool forceChildLayout = forceLayout; | 277 bool forceChildLayout = forceLayout; |
278 | 278 |
279 if (transformChanged) { | 279 if (transformChanged) { |
280 // If the transform changed we need to update the text metrics (note
: this also happens for layoutSizeChanged=true). | 280 // If the transform changed we need to update the text metrics (note
: this also happens for layoutSizeChanged=true). |
281 if (child->isSVGText()) | 281 if (child->isSVGText()) |
282 toLayoutSVGText(child)->setNeedsTextMetricsUpdate(); | 282 toLayoutSVGText(child)->setNeedsTextMetricsUpdate(); |
283 forceChildLayout = true; | 283 forceChildLayout = true; |
284 } | 284 } |
285 | 285 |
286 if (layoutSizeChanged) { | 286 if (layoutSizeChanged) { |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 | 573 |
574 return closestText; | 574 return closestText; |
575 } | 575 } |
576 | 576 |
577 LayoutObject* SVGLayoutSupport::findClosestLayoutSVGText(LayoutObject* layoutObj
ect, const FloatPoint& point) | 577 LayoutObject* SVGLayoutSupport::findClosestLayoutSVGText(LayoutObject* layoutObj
ect, const FloatPoint& point) |
578 { | 578 { |
579 return searchTreeForFindClosestLayoutSVGText(layoutObject, point).candidateL
ayoutObject; | 579 return searchTreeForFindClosestLayoutSVGText(layoutObject, point).candidateL
ayoutObject; |
580 } | 580 } |
581 | 581 |
582 } // namespace blink | 582 } // namespace blink |
OLD | NEW |