| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
| 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
| 9 * Copyright (C) 2012 Google Inc. | 9 * Copyright (C) 2012 Google Inc. |
| 10 * | 10 * |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 if (!rootBox) | 441 if (!rootBox) |
| 442 return createPositionWithAffinity(0, DOWNSTREAM); | 442 return createPositionWithAffinity(0, DOWNSTREAM); |
| 443 | 443 |
| 444 ASSERT(!rootBox->nextRootBox()); | 444 ASSERT(!rootBox->nextRootBox()); |
| 445 ASSERT(childrenInline()); | 445 ASSERT(childrenInline()); |
| 446 | 446 |
| 447 InlineBox* closestBox = toSVGRootInlineBox(rootBox)->closestLeafChildForPosi
tion(pointInContents); | 447 InlineBox* closestBox = toSVGRootInlineBox(rootBox)->closestLeafChildForPosi
tion(pointInContents); |
| 448 if (!closestBox) | 448 if (!closestBox) |
| 449 return createPositionWithAffinity(0, DOWNSTREAM); | 449 return createPositionWithAffinity(0, DOWNSTREAM); |
| 450 | 450 |
| 451 return closestBox->renderer().positionForPoint(LayoutPoint(pointInContents.x
(), closestBox->y())); | 451 return closestBox->layoutObject().positionForPoint(LayoutPoint(pointInConten
ts.x(), closestBox->y())); |
| 452 } | 452 } |
| 453 | 453 |
| 454 void LayoutSVGText::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) cons
t | 454 void LayoutSVGText::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) cons
t |
| 455 { | 455 { |
| 456 quads.append(localToAbsoluteQuad(strokeBoundingBox(), 0 /* mode */, wasFixed
)); | 456 quads.append(localToAbsoluteQuad(strokeBoundingBox(), 0 /* mode */, wasFixed
)); |
| 457 } | 457 } |
| 458 | 458 |
| 459 void LayoutSVGText::paint(const PaintInfo& paintInfo, const LayoutPoint&) | 459 void LayoutSVGText::paint(const PaintInfo& paintInfo, const LayoutPoint&) |
| 460 { | 460 { |
| 461 SVGTextPainter(*this).paint(paintInfo); | 461 SVGTextPainter(*this).paint(paintInfo); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 SVGResourcesCache::clientWillBeRemovedFromTree(child); | 499 SVGResourcesCache::clientWillBeRemovedFromTree(child); |
| 500 | 500 |
| 501 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes; | 501 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes; |
| 502 FontCachePurgePreventer fontCachePurgePreventer; | 502 FontCachePurgePreventer fontCachePurgePreventer; |
| 503 subtreeChildWillBeRemoved(child, affectedAttributes); | 503 subtreeChildWillBeRemoved(child, affectedAttributes); |
| 504 LayoutSVGBlock::removeChild(child); | 504 LayoutSVGBlock::removeChild(child); |
| 505 subtreeChildWasRemoved(affectedAttributes); | 505 subtreeChildWasRemoved(affectedAttributes); |
| 506 } | 506 } |
| 507 | 507 |
| 508 } | 508 } |
| OLD | NEW |