| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 3 * Copyright (C) 2006 Apple Computer Inc. | 3 * Copyright (C) 2006 Apple Computer Inc. |
| 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 6 * Copyright (C) 2011 Torch Mobile (Beijing) CO. Ltd. All rights reserved. | 6 * Copyright (C) 2011 Torch Mobile (Beijing) CO. Ltd. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 SVGRenderingContext renderingContext(&renderer(), paintInfo, SVGRenderingCon
text::SaveGraphicsContext); | 54 SVGRenderingContext renderingContext(&renderer(), paintInfo, SVGRenderingCon
text::SaveGraphicsContext); |
| 55 if (renderingContext.isRenderingPrepared()) { | 55 if (renderingContext.isRenderingPrepared()) { |
| 56 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()
) | 56 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()
) |
| 57 child->paint(paintInfo, paintOffset, 0, 0); | 57 child->paint(paintInfo, paintOffset, 0, 0); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 | 60 |
| 61 void SVGRootInlineBox::markDirty(bool dirty) | 61 void SVGRootInlineBox::markDirty() |
| 62 { | 62 { |
| 63 if (dirty) | 63 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()) |
| 64 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()
) | 64 child->markDirty(); |
| 65 child->markDirty(true); | 65 RootInlineBox::markDirty(); |
| 66 RootInlineBox::markDirty(dirty); | |
| 67 } | 66 } |
| 68 | 67 |
| 69 void SVGRootInlineBox::computePerCharacterLayoutInformation() | 68 void SVGRootInlineBox::computePerCharacterLayoutInformation() |
| 70 { | 69 { |
| 71 RenderSVGText& textRoot = toRenderSVGText(block()); | 70 RenderSVGText& textRoot = toRenderSVGText(block()); |
| 72 | 71 |
| 73 Vector<SVGTextLayoutAttributes*>& layoutAttributes = textRoot.layoutAttribut
es(); | 72 Vector<SVGTextLayoutAttributes*>& layoutAttributes = textRoot.layoutAttribut
es(); |
| 74 if (layoutAttributes.isEmpty()) | 73 if (layoutAttributes.isEmpty()) |
| 75 return; | 74 return; |
| 76 | 75 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 } | 277 } |
| 279 } | 278 } |
| 280 | 279 |
| 281 void SVGRootInlineBox::reorderValueLists(Vector<SVGTextLayoutAttributes*>& attri
butes) | 280 void SVGRootInlineBox::reorderValueLists(Vector<SVGTextLayoutAttributes*>& attri
butes) |
| 282 { | 281 { |
| 283 Vector<InlineBox*> leafBoxesInLogicalOrder; | 282 Vector<InlineBox*> leafBoxesInLogicalOrder; |
| 284 collectLeafBoxesInLogicalOrder(leafBoxesInLogicalOrder, reverseInlineBoxRang
eAndValueListsIfNeeded, &attributes); | 283 collectLeafBoxesInLogicalOrder(leafBoxesInLogicalOrder, reverseInlineBoxRang
eAndValueListsIfNeeded, &attributes); |
| 285 } | 284 } |
| 286 | 285 |
| 287 } // namespace WebCore | 286 } // namespace WebCore |
| OLD | NEW |