| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 FloatRect LayoutSVGText::strokeBoundingBox() const { | 363 FloatRect LayoutSVGText::strokeBoundingBox() const { |
| 364 FloatRect strokeBoundaries = objectBoundingBox(); | 364 FloatRect strokeBoundaries = objectBoundingBox(); |
| 365 const SVGComputedStyle& svgStyle = style()->svgStyle(); | 365 const SVGComputedStyle& svgStyle = style()->svgStyle(); |
| 366 if (!svgStyle.hasStroke()) | 366 if (!svgStyle.hasStroke()) |
| 367 return strokeBoundaries; | 367 return strokeBoundaries; |
| 368 | 368 |
| 369 ASSERT(node()); | 369 ASSERT(node()); |
| 370 ASSERT(node()->isSVGElement()); | 370 ASSERT(node()->isSVGElement()); |
| 371 SVGLengthContext lengthContext(toSVGElement(node())); | 371 SVGLengthContext lengthContext(toSVGElement(node())); |
| 372 strokeBoundaries.inflate( | 372 strokeBoundaries.inflate( |
| 373 lengthContext.valueForLength(svgStyle.strokeWidth())); | 373 lengthContext.valueForLength(style()->strokeWidth())); |
| 374 return strokeBoundaries; | 374 return strokeBoundaries; |
| 375 } | 375 } |
| 376 | 376 |
| 377 FloatRect LayoutSVGText::visualRectInLocalSVGCoordinates() const { | 377 FloatRect LayoutSVGText::visualRectInLocalSVGCoordinates() const { |
| 378 FloatRect visualRect = strokeBoundingBox(); | 378 FloatRect visualRect = strokeBoundingBox(); |
| 379 SVGLayoutSupport::adjustVisualRectWithResources(this, visualRect); | 379 SVGLayoutSupport::adjustVisualRectWithResources(this, visualRect); |
| 380 | 380 |
| 381 if (const ShadowList* textShadow = style()->textShadow()) | 381 if (const ShadowList* textShadow = style()->textShadow()) |
| 382 textShadow->adjustRectForShadow(visualRect); | 382 textShadow->adjustRectForShadow(visualRect); |
| 383 | 383 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 411 | 411 |
| 412 void LayoutSVGText::invalidateTreeIfNeeded( | 412 void LayoutSVGText::invalidateTreeIfNeeded( |
| 413 const PaintInvalidationState& paintInvalidationState) { | 413 const PaintInvalidationState& paintInvalidationState) { |
| 414 // TODO(wangxianzhu): Verify if the inherited | 414 // TODO(wangxianzhu): Verify if the inherited |
| 415 // LayoutBoxModelObject::invalidateTreeIfNeeded() | 415 // LayoutBoxModelObject::invalidateTreeIfNeeded() |
| 416 // is applicable here. If yes, remove this overriding method. | 416 // is applicable here. If yes, remove this overriding method. |
| 417 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); | 417 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); |
| 418 } | 418 } |
| 419 | 419 |
| 420 } // namespace blink | 420 } // namespace blink |
| OLD | NEW |