LEFT | RIGHT |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Inc. | 2 * Copyright (C) 2006 Apple 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 void RenderSVGText::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) cons
t | 474 void RenderSVGText::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) cons
t |
475 { | 475 { |
476 quads.append(localToAbsoluteQuad(strokeBoundingBox(), UseTransforms, wasFixe
d)); | 476 quads.append(localToAbsoluteQuad(strokeBoundingBox(), UseTransforms, wasFixe
d)); |
477 } | 477 } |
478 | 478 |
479 void RenderSVGText::paint(PaintInfo& paintInfo, const LayoutPoint&) | 479 void RenderSVGText::paint(PaintInfo& paintInfo, const LayoutPoint&) |
480 { | 480 { |
481 if (paintInfo.context().paintingDisabled()) | 481 if (paintInfo.context().paintingDisabled()) |
482 return; | 482 return; |
483 | 483 |
484 if (paintInfo.phase != PaintPhaseForeground | 484 if (paintInfo.phase != PaintPhase::Foreground && paintInfo.phase != PaintPha
se::Selection) |
485 && paintInfo.phase != PaintPhaseSelection) | |
486 return; | 485 return; |
487 | 486 |
488 PaintInfo blockInfo(paintInfo); | 487 PaintInfo blockInfo(paintInfo); |
489 GraphicsContextStateSaver stateSaver(blockInfo.context()); | 488 GraphicsContextStateSaver stateSaver(blockInfo.context()); |
490 blockInfo.applyTransform(localToParentTransform()); | 489 blockInfo.applyTransform(localToParentTransform()); |
491 RenderBlock::paint(blockInfo, LayoutPoint()); | 490 RenderBlock::paint(blockInfo, LayoutPoint()); |
492 | 491 |
493 // Paint the outlines, if any | 492 // Paint the outlines, if any |
494 if (paintInfo.phase == PaintPhaseForeground) { | 493 if (paintInfo.phase == PaintPhase::Foreground) { |
495 blockInfo.phase = PaintPhaseSelfOutline; | 494 blockInfo.phase = PaintPhase::SelfOutline; |
496 RenderBlock::paint(blockInfo, LayoutPoint()); | 495 RenderBlock::paint(blockInfo, LayoutPoint()); |
497 } | 496 } |
498 } | 497 } |
499 | 498 |
500 FloatRect RenderSVGText::strokeBoundingBox() const | 499 FloatRect RenderSVGText::strokeBoundingBox() const |
501 { | 500 { |
502 FloatRect strokeBoundaries = objectBoundingBox(); | 501 FloatRect strokeBoundaries = objectBoundingBox(); |
503 const SVGRenderStyle& svgStyle = style().svgStyle(); | 502 const SVGRenderStyle& svgStyle = style().svgStyle(); |
504 if (!svgStyle.hasStroke()) | 503 if (!svgStyle.hasStroke()) |
505 return strokeBoundaries; | 504 return strokeBoundaries; |
(...skipping 15 matching lines...) Expand all Loading... |
521 } | 520 } |
522 | 521 |
523 // Fix for <rdar://problem/8048875>. We should not render :first-line CSS Style | 522 // Fix for <rdar://problem/8048875>. We should not render :first-line CSS Style |
524 // in a SVG text element context. | 523 // in a SVG text element context. |
525 RenderBlock* RenderSVGText::firstLineBlock() const | 524 RenderBlock* RenderSVGText::firstLineBlock() const |
526 { | 525 { |
527 return 0; | 526 return 0; |
528 } | 527 } |
529 | 528 |
530 } | 529 } |
LEFT | RIGHT |