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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |