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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 return closestBox->renderer()->positionForPoint(LayoutPoint(pointInContents.
x(), closestBox->y())); | 482 return closestBox->renderer()->positionForPoint(LayoutPoint(pointInContents.
x(), closestBox->y())); |
483 } | 483 } |
484 | 484 |
485 void RenderSVGText::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) cons
t | 485 void RenderSVGText::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) cons
t |
486 { | 486 { |
487 quads.append(localToAbsoluteQuad(strokeBoundingBox(), 0 /* mode */, wasFixed
)); | 487 quads.append(localToAbsoluteQuad(strokeBoundingBox(), 0 /* mode */, wasFixed
)); |
488 } | 488 } |
489 | 489 |
490 void RenderSVGText::paint(PaintInfo& paintInfo, const LayoutPoint&) | 490 void RenderSVGText::paint(PaintInfo& paintInfo, const LayoutPoint&) |
491 { | 491 { |
492 if (paintInfo.context->paintingDisabled()) | 492 if (paintInfo.getContext()->paintingDisabled()) |
493 return; | 493 return; |
494 | 494 |
495 if (paintInfo.phase != PaintPhaseForeground | 495 if (paintInfo.getPhase() != PaintPhaseForeground |
496 && paintInfo.phase != PaintPhaseSelfOutline | 496 && paintInfo.getPhase() != PaintPhaseSelfOutline |
497 && paintInfo.phase != PaintPhaseSelection) | 497 && paintInfo.getPhase() != PaintPhaseSelection) |
498 return; | 498 return; |
499 | 499 |
500 PaintInfo blockInfo(paintInfo); | 500 PaintInfo blockInfo(paintInfo); |
501 GraphicsContextStateSaver stateSaver(*blockInfo.context); | 501 GraphicsContextStateSaver stateSaver(*(blockInfo.getContext())); |
502 blockInfo.applyTransform(localToParentTransform()); | 502 blockInfo.applyTransform(localToParentTransform()); |
503 RenderBlock::paint(blockInfo, LayoutPoint()); | 503 RenderBlock::paint(blockInfo, LayoutPoint()); |
504 } | 504 } |
505 | 505 |
506 FloatRect RenderSVGText::strokeBoundingBox() const | 506 FloatRect RenderSVGText::strokeBoundingBox() const |
507 { | 507 { |
508 FloatRect strokeBoundaries = objectBoundingBox(); | 508 FloatRect strokeBoundaries = objectBoundingBox(); |
509 const SVGRenderStyle* svgStyle = style()->svgStyle(); | 509 const SVGRenderStyle* svgStyle = style()->svgStyle(); |
510 if (!svgStyle->hasStroke()) | 510 if (!svgStyle->hasStroke()) |
511 return strokeBoundaries; | 511 return strokeBoundaries; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 return 0; | 554 return 0; |
555 } | 555 } |
556 | 556 |
557 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e | 557 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e |
558 // in a SVG text element context. | 558 // in a SVG text element context. |
559 void RenderSVGText::updateFirstLetter() | 559 void RenderSVGText::updateFirstLetter() |
560 { | 560 { |
561 } | 561 } |
562 | 562 |
563 } | 563 } |
OLD | NEW |