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

Side by Side Diff: Source/core/rendering/svg/RenderSVGText.cpp

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert aggressive svgAttributeChanged, add NeedsRebaseline Created 6 years, 11 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 FloatRect RenderSVGText::strokeBoundingBox() const 513 FloatRect RenderSVGText::strokeBoundingBox() const
514 { 514 {
515 FloatRect strokeBoundaries = objectBoundingBox(); 515 FloatRect strokeBoundaries = objectBoundingBox();
516 const SVGRenderStyle* svgStyle = style()->svgStyle(); 516 const SVGRenderStyle* svgStyle = style()->svgStyle();
517 if (!svgStyle->hasStroke()) 517 if (!svgStyle->hasStroke())
518 return strokeBoundaries; 518 return strokeBoundaries;
519 519
520 ASSERT(node()); 520 ASSERT(node());
521 ASSERT(node()->isSVGElement()); 521 ASSERT(node()->isSVGElement());
522 SVGLengthContext lengthContext(toSVGElement(node())); 522 SVGLengthContext lengthContext(toSVGElement(node()));
523 strokeBoundaries.inflate(svgStyle->strokeWidth().value(lengthContext)); 523 strokeBoundaries.inflate(svgStyle->strokeWidth()->value(lengthContext));
524 return strokeBoundaries; 524 return strokeBoundaries;
525 } 525 }
526 526
527 FloatRect RenderSVGText::repaintRectInLocalCoordinates() const 527 FloatRect RenderSVGText::repaintRectInLocalCoordinates() const
528 { 528 {
529 FloatRect repaintRect = strokeBoundingBox(); 529 FloatRect repaintRect = strokeBoundingBox();
530 SVGRenderSupport::intersectRepaintRectWithResources(this, repaintRect); 530 SVGRenderSupport::intersectRepaintRectWithResources(this, repaintRect);
531 531
532 if (const ShadowList* textShadow = style()->textShadow()) 532 if (const ShadowList* textShadow = style()->textShadow())
533 textShadow->adjustRectForShadow(repaintRect); 533 textShadow->adjustRectForShadow(repaintRect);
(...skipping 27 matching lines...) Expand all
561 return 0; 561 return 0;
562 } 562 }
563 563
564 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl e 564 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl e
565 // in a SVG text element context. 565 // in a SVG text element context.
566 void RenderSVGText::updateFirstLetter() 566 void RenderSVGText::updateFirstLetter()
567 { 567 {
568 } 568 }
569 569
570 } 570 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGShape.cpp ('k') | Source/core/rendering/svg/RenderSVGTextPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698