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

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: rebaselined Created 7 years 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 FloatRect RenderSVGText::strokeBoundingBox() const 504 FloatRect RenderSVGText::strokeBoundingBox() const
505 { 505 {
506 FloatRect strokeBoundaries = objectBoundingBox(); 506 FloatRect strokeBoundaries = objectBoundingBox();
507 const SVGRenderStyle* svgStyle = style()->svgStyle(); 507 const SVGRenderStyle* svgStyle = style()->svgStyle();
508 if (!svgStyle->hasStroke()) 508 if (!svgStyle->hasStroke())
509 return strokeBoundaries; 509 return strokeBoundaries;
510 510
511 ASSERT(node()); 511 ASSERT(node());
512 ASSERT(node()->isSVGElement()); 512 ASSERT(node()->isSVGElement());
513 SVGLengthContext lengthContext(toSVGElement(node())); 513 SVGLengthContext lengthContext(toSVGElement(node()));
514 strokeBoundaries.inflate(svgStyle->strokeWidth().value(lengthContext)); 514 strokeBoundaries.inflate(svgStyle->strokeWidth()->value(lengthContext));
515 return strokeBoundaries; 515 return strokeBoundaries;
516 } 516 }
517 517
518 FloatRect RenderSVGText::repaintRectInLocalCoordinates() const 518 FloatRect RenderSVGText::repaintRectInLocalCoordinates() const
519 { 519 {
520 FloatRect repaintRect = strokeBoundingBox(); 520 FloatRect repaintRect = strokeBoundingBox();
521 SVGRenderSupport::intersectRepaintRectWithResources(this, repaintRect); 521 SVGRenderSupport::intersectRepaintRectWithResources(this, repaintRect);
522 522
523 if (const ShadowList* textShadow = style()->textShadow()) 523 if (const ShadowList* textShadow = style()->textShadow())
524 textShadow->adjustRectForShadow(repaintRect); 524 textShadow->adjustRectForShadow(repaintRect);
(...skipping 27 matching lines...) Expand all
552 return 0; 552 return 0;
553 } 553 }
554 554
555 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl e 555 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl e
556 // in a SVG text element context. 556 // in a SVG text element context.
557 void RenderSVGText::updateFirstLetter() 557 void RenderSVGText::updateFirstLetter()
558 { 558 {
559 } 559 }
560 560
561 } 561 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698