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

Side by Side Diff: third_party/WebKit/Source/platform/text/BidiContext.h

Issue 2385283002: reflow comments in platform/{testing,text} (Closed)
Patch Set: idunnolol 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2006, 2007, 2009, 2010 Apple Inc. All right reserve d. 3 * Copyright (C) 2003, 2004, 2006, 2007, 2009, 2010 Apple Inc.
4 * All right reserved.
4 * 5 *
5 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
8 * 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.
9 * 10 *
10 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 14 * Library General Public License for more details.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 m_parent(parent) { 73 m_parent(parent) {
73 ASSERT(level <= kMaxLevel); 74 ASSERT(level <= kMaxLevel);
74 } 75 }
75 76
76 static PassRefPtr<BidiContext> createUncached(unsigned char level, 77 static PassRefPtr<BidiContext> createUncached(unsigned char level,
77 WTF::Unicode::CharDirection, 78 WTF::Unicode::CharDirection,
78 bool override, 79 bool override,
79 BidiEmbeddingSource, 80 BidiEmbeddingSource,
80 BidiContext* parent); 81 BidiContext* parent);
81 82
82 unsigned 83 // The maximium bidi level is 125:
83 m_level : 7; // The maximium bidi level is 125: http://unicode.o rg/reports/tr9/#Explicit_Levels_and_Directions 84 // http://unicode.org/reports/tr9/#Explicit_Levels_and_Directions
85 unsigned m_level : 7;
84 unsigned m_direction : 5; // Direction 86 unsigned m_direction : 5; // Direction
85 unsigned m_override : 1; 87 unsigned m_override : 1;
86 unsigned m_source : 1; // BidiEmbeddingSource 88 unsigned m_source : 1; // BidiEmbeddingSource
87 RefPtr<BidiContext> m_parent; 89 RefPtr<BidiContext> m_parent;
88 }; 90 };
89 91
90 inline unsigned char nextGreaterOddLevel(unsigned char level) { 92 inline unsigned char nextGreaterOddLevel(unsigned char level) {
91 return (level + 1) | 1; 93 return (level + 1) | 1;
92 } 94 }
93 95
94 inline unsigned char nextGreaterEvenLevel(unsigned char level) { 96 inline unsigned char nextGreaterEvenLevel(unsigned char level) {
95 return (level + 2) & ~1; 97 return (level + 2) & ~1;
96 } 98 }
97 99
98 PLATFORM_EXPORT bool operator==(const BidiContext&, const BidiContext&); 100 PLATFORM_EXPORT bool operator==(const BidiContext&, const BidiContext&);
99 101
100 } // namespace blink 102 } // namespace blink
101 103
102 #endif // BidiContext_h 104 #endif // BidiContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/BidiCharacterRun.h ('k') | third_party/WebKit/Source/platform/text/BidiContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698