Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Side by Side Diff: Source/core/layout/svg/LayoutSVGText.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourcePattern.cpp ('k') | Source/core/layout/svg/ReferenceFilterBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698