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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 const RenderSVGText* RenderSVGText::locateRenderSVGTextAncestor(const RenderObje
ct* start) | 86 const RenderSVGText* RenderSVGText::locateRenderSVGTextAncestor(const RenderObje
ct* start) |
87 { | 87 { |
88 ASSERT(start); | 88 ASSERT(start); |
89 while (start && !start->isSVGText()) | 89 while (start && !start->isSVGText()) |
90 start = start->parent(); | 90 start = start->parent(); |
91 if (!start || !start->isSVGText()) | 91 if (!start || !start->isSVGText()) |
92 return 0; | 92 return 0; |
93 return toRenderSVGText(start); | 93 return toRenderSVGText(start); |
94 } | 94 } |
95 | 95 |
96 void RenderSVGText::computeRectForRepaint(const RenderLayerModelObject* repaintC
ontainer, LayoutRect& rect, bool fixed) const | 96 void RenderSVGText::mapRectToRepaintBacking(const RenderLayerModelObject* repain
tContainer, LayoutRect& rect, bool fixed) const |
97 { | 97 { |
98 FloatRect repaintRect = rect; | 98 FloatRect repaintRect = rect; |
99 computeFloatRectForRepaint(repaintContainer, repaintRect, fixed); | 99 computeFloatRectForRepaint(repaintContainer, repaintRect, fixed); |
100 rect = enclosingLayoutRect(repaintRect); | 100 rect = enclosingLayoutRect(repaintRect); |
101 } | 101 } |
102 | 102 |
103 static inline void collectLayoutAttributes(RenderObject* text, Vector<SVGTextLay
outAttributes*>& attributes) | 103 static inline void collectLayoutAttributes(RenderObject* text, Vector<SVGTextLay
outAttributes*>& attributes) |
104 { | 104 { |
105 for (RenderObject* descendant = text; descendant; descendant = descendant->n
extInPreOrder(text)) { | 105 for (RenderObject* descendant = text; descendant; descendant = descendant->n
extInPreOrder(text)) { |
106 if (descendant->isSVGInlineText()) | 106 if (descendant->isSVGInlineText()) |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 return 0; | 543 return 0; |
544 } | 544 } |
545 | 545 |
546 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e | 546 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e |
547 // in a SVG text element context. | 547 // in a SVG text element context. |
548 void RenderSVGText::updateFirstLetter() | 548 void RenderSVGText::updateFirstLetter() |
549 { | 549 { |
550 } | 550 } |
551 | 551 |
552 } | 552 } |
OLD | NEW |