| 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 Inc. All rights reserved. | 3 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void LayoutSVGInline::absoluteQuads(Vector<FloatQuad>& quads, | 101 void LayoutSVGInline::absoluteQuads(Vector<FloatQuad>& quads, |
| 102 MapCoordinatesFlags mode) const { | 102 MapCoordinatesFlags mode) const { |
| 103 const LayoutSVGText* textRoot = | 103 const LayoutSVGText* textRoot = |
| 104 LayoutSVGText::locateLayoutSVGTextAncestor(this); | 104 LayoutSVGText::locateLayoutSVGTextAncestor(this); |
| 105 if (!textRoot) | 105 if (!textRoot) |
| 106 return; | 106 return; |
| 107 | 107 |
| 108 FloatRect textBoundingBox = textRoot->strokeBoundingBox(); | 108 FloatRect textBoundingBox = textRoot->strokeBoundingBox(); |
| 109 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) { | 109 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) { |
| 110 quads.append( | 110 quads.push_back( |
| 111 localToAbsoluteQuad(FloatRect(textBoundingBox.x() + box->x().toFloat(), | 111 localToAbsoluteQuad(FloatRect(textBoundingBox.x() + box->x().toFloat(), |
| 112 textBoundingBox.y() + box->y().toFloat(), | 112 textBoundingBox.y() + box->y().toFloat(), |
| 113 box->logicalWidth().toFloat(), | 113 box->logicalWidth().toFloat(), |
| 114 box->logicalHeight().toFloat()), | 114 box->logicalHeight().toFloat()), |
| 115 mode)); | 115 mode)); |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 | 118 |
| 119 void LayoutSVGInline::willBeDestroyed() { | 119 void LayoutSVGInline::willBeDestroyed() { |
| 120 SVGResourcesCache::clientDestroyed(this); | 120 SVGResourcesCache::clientDestroyed(this); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 150 | 150 |
| 151 void LayoutSVGInline::invalidateTreeIfNeeded( | 151 void LayoutSVGInline::invalidateTreeIfNeeded( |
| 152 const PaintInvalidationState& paintInvalidationState) { | 152 const PaintInvalidationState& paintInvalidationState) { |
| 153 // TODO(wangxianzhu): Verify if the inherited | 153 // TODO(wangxianzhu): Verify if the inherited |
| 154 // LayoutBoxModelObject::invalidateTreeIfNeeded() is applicable here. | 154 // LayoutBoxModelObject::invalidateTreeIfNeeded() is applicable here. |
| 155 // If yes, remove this overriding method. | 155 // If yes, remove this overriding method. |
| 156 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); | 156 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |