| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 int start() const { return m_start; } | 67 int start() const { return m_start; } |
| 68 int stop() const { return m_stop; } | 68 int stop() const { return m_stop; } |
| 69 unsigned char level() const { return m_level; } | 69 unsigned char level() const { return m_level; } |
| 70 bool reversed(bool visuallyOrdered) const { | 70 bool reversed(bool visuallyOrdered) const { |
| 71 return m_level % 2 && !visuallyOrdered; | 71 return m_level % 2 && !visuallyOrdered; |
| 72 } | 72 } |
| 73 bool dirOverride(bool visuallyOrdered) { | 73 bool dirOverride(bool visuallyOrdered) { |
| 74 return m_override || visuallyOrdered; | 74 return m_override || visuallyOrdered; |
| 75 } | 75 } |
| 76 TextDirection direction() const { | 76 TextDirection direction() const { |
| 77 return reversed(false) ? TextDirection::Rtl : TextDirection::Ltr; | 77 return reversed(false) ? TextDirection::kRtl : TextDirection::kLtr; |
| 78 } | 78 } |
| 79 | 79 |
| 80 BidiCharacterRun* next() const { return m_next; } | 80 BidiCharacterRun* next() const { return m_next; } |
| 81 void setNext(BidiCharacterRun* next) { m_next = next; } | 81 void setNext(BidiCharacterRun* next) { m_next = next; } |
| 82 | 82 |
| 83 // Do not add anything apart from bitfields until after m_next. See | 83 // Do not add anything apart from bitfields until after m_next. See |
| 84 // https://bugs.webkit.org/show_bug.cgi?id=100173 | 84 // https://bugs.webkit.org/show_bug.cgi?id=100173 |
| 85 bool m_override : 1; | 85 bool m_override : 1; |
| 86 // Used by BidiRun subclass which is a layering violation but enables us to | 86 // Used by BidiRun subclass which is a layering violation but enables us to |
| 87 // save 8 bytes per object on 64-bit. | 87 // save 8 bytes per object on 64-bit. |
| 88 bool m_hasHyphen : 1; | 88 bool m_hasHyphen : 1; |
| 89 unsigned char m_level; | 89 unsigned char m_level; |
| 90 BidiCharacterRun* m_next; | 90 BidiCharacterRun* m_next; |
| 91 int m_start; | 91 int m_start; |
| 92 int m_stop; | 92 int m_stop; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| 96 | 96 |
| 97 #endif // BidiCharacterRun_h | 97 #endif // BidiCharacterRun_h |
| OLD | NEW |