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 15 matching lines...) Expand all Loading... |
26 #include "wtf/Vector.h" | 26 #include "wtf/Vector.h" |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 class LayoutBoxModelObject; | 30 class LayoutBoxModelObject; |
31 class LayoutSVGText; | 31 class LayoutSVGText; |
32 class SVGTextPositioningElement; | 32 class SVGTextPositioningElement; |
33 | 33 |
34 // SVGTextLayoutAttributesBuilder performs the first layout phase for SVG text. | 34 // SVGTextLayoutAttributesBuilder performs the first layout phase for SVG text. |
35 // | 35 // |
36 // It extracts the x/y/dx/dy/rotate values from the SVGTextPositioningElements i
n the DOM. | 36 // It extracts the x/y/dx/dy/rotate values from the SVGTextPositioningElements |
37 // These values are propagated to the corresponding LayoutSVGInlineText layoutOb
jects. | 37 // in the DOM. These values are propagated to the corresponding |
38 // The first layout phase only extracts the relevant information needed in Layou
tBlockFlowLine | 38 // LayoutSVGInlineText layoutObjects. |
39 // to create the InlineBox tree based on text chunk boundaries & BiDi informatio
n. | 39 // The first layout phase only extracts the relevant information needed in |
| 40 // LayoutBlockFlowLine to create the InlineBox tree based on text chunk |
| 41 // boundaries & BiDi information. |
40 // The second layout phase is carried out by SVGTextLayoutEngine. | 42 // The second layout phase is carried out by SVGTextLayoutEngine. |
41 class SVGTextLayoutAttributesBuilder { | 43 class SVGTextLayoutAttributesBuilder { |
42 STACK_ALLOCATED(); | 44 STACK_ALLOCATED(); |
43 WTF_MAKE_NONCOPYABLE(SVGTextLayoutAttributesBuilder); | 45 WTF_MAKE_NONCOPYABLE(SVGTextLayoutAttributesBuilder); |
44 | 46 |
45 public: | 47 public: |
46 explicit SVGTextLayoutAttributesBuilder(LayoutSVGText&); | 48 explicit SVGTextLayoutAttributesBuilder(LayoutSVGText&); |
47 | 49 |
48 void buildLayoutAttributes(); | 50 void buildLayoutAttributes(); |
49 | 51 |
(...skipping 24 matching lines...) Expand all Loading... |
74 HeapVector<TextPosition> m_textPositions; | 76 HeapVector<TextPosition> m_textPositions; |
75 SVGCharacterDataMap m_characterDataMap; | 77 SVGCharacterDataMap m_characterDataMap; |
76 }; | 78 }; |
77 | 79 |
78 } // namespace blink | 80 } // namespace blink |
79 | 81 |
80 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS( | 82 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS( |
81 blink::SVGTextLayoutAttributesBuilder::TextPosition); | 83 blink::SVGTextLayoutAttributesBuilder::TextPosition); |
82 | 84 |
83 #endif | 85 #endif |
OLD | NEW |