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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineSpacing.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 10 matching lines...) Expand all
21 #define SVGTextLayoutEngineSpacing_h 21 #define SVGTextLayoutEngineSpacing_h
22 22
23 #include "wtf/Allocator.h" 23 #include "wtf/Allocator.h"
24 #include "wtf/Noncopyable.h" 24 #include "wtf/Noncopyable.h"
25 #include "wtf/text/Unicode.h" 25 #include "wtf/text/Unicode.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 class Font; 29 class Font;
30 30
31 // Helper class used by SVGTextLayoutEngine to handle 'letter-spacing' and 'word -spacing'. 31 // Helper class used by SVGTextLayoutEngine to handle 'letter-spacing' and
32 // 'word-spacing'.
32 class SVGTextLayoutEngineSpacing { 33 class SVGTextLayoutEngineSpacing {
33 STACK_ALLOCATED(); 34 STACK_ALLOCATED();
34 WTF_MAKE_NONCOPYABLE(SVGTextLayoutEngineSpacing); 35 WTF_MAKE_NONCOPYABLE(SVGTextLayoutEngineSpacing);
35 36
36 public: 37 public:
37 SVGTextLayoutEngineSpacing(const Font&, float effectiveZoom); 38 SVGTextLayoutEngineSpacing(const Font&, float effectiveZoom);
38 39
39 float calculateCSSSpacing(UChar currentCharacter); 40 float calculateCSSSpacing(UChar currentCharacter);
40 41
41 private: 42 private:
42 const Font& m_font; 43 const Font& m_font;
43 UChar m_lastCharacter; 44 UChar m_lastCharacter;
44 float m_effectiveZoom; 45 float m_effectiveZoom;
45 }; 46 };
46 47
47 } // namespace blink 48 } // namespace blink
48 49
49 #endif 50 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698