Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.h

Issue 2400783002: Reformat comments in core/layout/svg (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. 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 12 matching lines...) Expand all
23 #include "wtf/Allocator.h" 23 #include "wtf/Allocator.h"
24 #include "wtf/Vector.h" 24 #include "wtf/Vector.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class SVGInlineTextBox; 28 class SVGInlineTextBox;
29 struct SVGTextFragment; 29 struct SVGTextFragment;
30 30
31 // SVGTextChunkBuilder performs the third layout phase for SVG text. 31 // SVGTextChunkBuilder performs the third layout phase for SVG text.
32 // 32 //
33 // Phase one built the layout information from the SVG DOM stored in the LayoutS VGInlineText objects (SVGTextLayoutAttributes). 33 // Phase one built the layout information from the SVG DOM stored in the
34 // Phase two performed the actual per-character layout, computing the final posi tions for each character, stored in the SVGInlineTextBox objects (SVGTextFragmen t). 34 // LayoutSVGInlineText objects (SVGTextLayoutAttributes).
35 // Phase three performs all modifications that have to be applied to each indivi dual text chunk (text-anchor & textLength). 35 // Phase two performed the actual per-character layout, computing the final
36 // positions for each character, stored in the SVGInlineTextBox objects
37 // (SVGTextFragment).
38 // Phase three performs all modifications that have to be applied to each
39 // individual text chunk (text-anchor & textLength).
36 40
37 class SVGTextChunkBuilder { 41 class SVGTextChunkBuilder {
38 STACK_ALLOCATED(); 42 STACK_ALLOCATED();
39 WTF_MAKE_NONCOPYABLE(SVGTextChunkBuilder); 43 WTF_MAKE_NONCOPYABLE(SVGTextChunkBuilder);
40 44
41 public: 45 public:
42 SVGTextChunkBuilder(); 46 SVGTextChunkBuilder();
43 47
44 void processTextChunks(const Vector<SVGInlineTextBox*>&); 48 void processTextChunks(const Vector<SVGInlineTextBox*>&);
45 49
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 BoxListConstIterator boxEnd) override; 82 BoxListConstIterator boxEnd) override;
79 83
80 float m_totalLength; 84 float m_totalLength;
81 unsigned m_totalCharacters; 85 unsigned m_totalCharacters;
82 float m_totalTextAnchorShift; 86 float m_totalTextAnchorShift;
83 }; 87 };
84 88
85 } // namespace blink 89 } // namespace blink
86 90
87 #endif 91 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698