OLD | NEW |
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, 2008 Apple Inc. All right reserved. | 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008 Apple Inc. All right reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 |
22 #ifndef BidiCharacterRun_h | 22 #ifndef BidiCharacterRun_h |
23 #define BidiCharacterRun_h | 23 #define BidiCharacterRun_h |
24 | 24 |
25 #include "platform/text/BidiContext.h" | 25 #include "platform/text/BidiContext.h" |
26 #include "platform/text/TextDirection.h" | 26 #include "platform/text/TextDirection.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace blink { |
29 | 29 |
30 struct BidiCharacterRun { | 30 struct BidiCharacterRun { |
31 BidiCharacterRun(int start, int stop, BidiContext* context, WTF::Unicode::Di
rection dir) | 31 BidiCharacterRun(int start, int stop, BidiContext* context, WTF::Unicode::Di
rection dir) |
32 : m_override(context->override()) | 32 : m_override(context->override()) |
33 , m_next(0) | 33 , m_next(0) |
34 , m_start(start) | 34 , m_start(start) |
35 , m_stop(stop) | 35 , m_stop(stop) |
36 { | 36 { |
37 ASSERT(m_start <= m_stop); | 37 ASSERT(m_start <= m_stop); |
38 if (dir == WTF::Unicode::OtherNeutral) | 38 if (dir == WTF::Unicode::OtherNeutral) |
(...skipping 29 matching lines...) Expand all Loading... |
68 | 68 |
69 // Do not add anything apart from bitfields until after m_next. See https://
bugs.webkit.org/show_bug.cgi?id=100173 | 69 // Do not add anything apart from bitfields until after m_next. See https://
bugs.webkit.org/show_bug.cgi?id=100173 |
70 bool m_override : 1; | 70 bool m_override : 1; |
71 bool m_hasHyphen : 1; // Used by BidiRun subclass which is a layering violat
ion but enables us to save 8 bytes per object on 64-bit. | 71 bool m_hasHyphen : 1; // Used by BidiRun subclass which is a layering violat
ion but enables us to save 8 bytes per object on 64-bit. |
72 unsigned char m_level; | 72 unsigned char m_level; |
73 BidiCharacterRun* m_next; | 73 BidiCharacterRun* m_next; |
74 int m_start; | 74 int m_start; |
75 int m_stop; | 75 int m_stop; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace WebCore | 78 } // namespace blink |
79 | 79 |
80 #endif // BidiCharacterRun_h | 80 #endif // BidiCharacterRun_h |
OLD | NEW |