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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 builder->rebuildMetricsForTextRenderer(text); | 316 builder->rebuildMetricsForTextRenderer(text); |
317 } | 317 } |
318 } | 318 } |
319 | 319 |
320 void RenderSVGText::layout() | 320 void RenderSVGText::layout() |
321 { | 321 { |
322 ASSERT(needsLayout()); | 322 ASSERT(needsLayout()); |
323 | 323 |
324 subtreeStyleDidChange(); | 324 subtreeStyleDidChange(); |
325 | 325 |
| 326 setMayNeedInvalidation(true); |
| 327 |
326 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL
ayout(this)); | 328 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL
ayout(this)); |
327 | 329 |
328 bool updateCachedBoundariesInParents = false; | 330 bool updateCachedBoundariesInParents = false; |
329 if (m_needsTransformUpdate) { | 331 if (m_needsTransformUpdate) { |
330 m_localTransform = toSVGTextElement(node())->animatedLocalTransform(); | 332 m_localTransform = toSVGTextElement(node())->animatedLocalTransform(); |
331 m_needsTransformUpdate = false; | 333 m_needsTransformUpdate = false; |
332 updateCachedBoundariesInParents = true; | 334 updateCachedBoundariesInParents = true; |
333 } | 335 } |
334 | 336 |
335 if (!everHadLayout()) { | 337 if (!everHadLayout()) { |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 return 0; | 539 return 0; |
538 } | 540 } |
539 | 541 |
540 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e | 542 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e |
541 // in a SVG text element context. | 543 // in a SVG text element context. |
542 void RenderSVGText::updateFirstLetter() | 544 void RenderSVGText::updateFirstLetter() |
543 { | 545 { |
544 } | 546 } |
545 | 547 |
546 } | 548 } |
OLD | NEW |