| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 public: | 60 public: |
| 61 TextPosition(SVGTextPositioningElement* newElement = nullptr, unsigned n
ewStart = 0, unsigned newLength = 0) | 61 TextPosition(SVGTextPositioningElement* newElement = nullptr, unsigned n
ewStart = 0, unsigned newLength = 0) |
| 62 : element(newElement) | 62 : element(newElement) |
| 63 , start(newStart) | 63 , start(newStart) |
| 64 , length(newLength) | 64 , length(newLength) |
| 65 { | 65 { |
| 66 } | 66 } |
| 67 | 67 |
| 68 DECLARE_TRACE(); | 68 DECLARE_TRACE(); |
| 69 | 69 |
| 70 RawPtrWillBeMember<SVGTextPositioningElement> element; | 70 Member<SVGTextPositioningElement> element; |
| 71 unsigned start; | 71 unsigned start; |
| 72 unsigned length; | 72 unsigned length; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 void buildCharacterDataMap(LayoutSVGText&); | 76 void buildCharacterDataMap(LayoutSVGText&); |
| 77 void collectTextPositioningElements(LayoutBoxModelObject&, UChar& lastCharac
ter); | 77 void collectTextPositioningElements(LayoutBoxModelObject&, UChar& lastCharac
ter); |
| 78 void fillCharacterDataMap(const TextPosition&); | 78 void fillCharacterDataMap(const TextPosition&); |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 unsigned m_textLength; | 81 unsigned m_textLength; |
| 82 WillBePersistentHeapVector<TextPosition> m_textPositions; | 82 PersistentHeapVector<TextPosition> m_textPositions; |
| 83 SVGCharacterDataMap m_characterDataMap; | 83 SVGCharacterDataMap m_characterDataMap; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SVGTextLayoutAttributesBuilder
::TextPosition); | 88 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SVGTextLayoutAttributesBuilder
::TextPosition); |
| 89 | 89 |
| 90 #endif | 90 #endif |
| OLD | NEW |