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, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 bool reversed(bool visuallyOrdered) const { return m_level % 2 && !visuallyO
rdered; } | 62 bool reversed(bool visuallyOrdered) const { return m_level % 2 && !visuallyO
rdered; } |
63 bool dirOverride(bool visuallyOrdered) { return m_override || visuallyOrdere
d; } | 63 bool dirOverride(bool visuallyOrdered) { return m_override || visuallyOrdere
d; } |
64 TextDirection direction() const { return reversed(false) ? RTL : LTR; } | 64 TextDirection direction() const { return reversed(false) ? RTL : LTR; } |
65 | 65 |
66 BidiCharacterRun* next() const { return m_next; } | 66 BidiCharacterRun* next() const { return m_next; } |
67 void setNext(BidiCharacterRun* next) { m_next = next; } | 67 void setNext(BidiCharacterRun* next) { m_next = next; } |
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 bool m_startsSegment : 1; // Same comment as m_hasHyphen. | |
73 unsigned char m_level; | 72 unsigned char m_level; |
74 BidiCharacterRun* m_next; | 73 BidiCharacterRun* m_next; |
75 int m_start; | 74 int m_start; |
76 int m_stop; | 75 int m_stop; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace WebCore | 78 } // namespace WebCore |
80 | 79 |
81 #endif // BidiCharacterRun_h | 80 #endif // BidiCharacterRun_h |
OLD | NEW |