| 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 21 matching lines...) Expand all Loading... |
| 32 unsigned char level, | 32 unsigned char level, |
| 33 int start, | 33 int start, |
| 34 int stop, | 34 int stop, |
| 35 WTF::Unicode::CharDirection dir, | 35 WTF::Unicode::CharDirection dir, |
| 36 WTF::Unicode::CharDirection override_dir) | 36 WTF::Unicode::CharDirection override_dir) |
| 37 : override_(override), | 37 : override_(override), |
| 38 level_(level), | 38 level_(level), |
| 39 next_(0), | 39 next_(0), |
| 40 start_(start), | 40 start_(start), |
| 41 stop_(stop) { | 41 stop_(stop) { |
| 42 ASSERT(start_ <= stop_); | 42 DCHECK_LE(start_, stop_); |
| 43 if (dir == WTF::Unicode::kOtherNeutral) | 43 if (dir == WTF::Unicode::kOtherNeutral) |
| 44 dir = override_dir; | 44 dir = override_dir; |
| 45 | 45 |
| 46 level_ = level; | 46 level_ = level; |
| 47 | 47 |
| 48 // add level of run (cases I1 & I2) | 48 // add level of run (cases I1 & I2) |
| 49 if (level_ % 2) { | 49 if (level_ % 2) { |
| 50 if (dir == WTF::Unicode::kLeftToRight || | 50 if (dir == WTF::Unicode::kLeftToRight || |
| 51 dir == WTF::Unicode::kArabicNumber || | 51 dir == WTF::Unicode::kArabicNumber || |
| 52 dir == WTF::Unicode::kEuropeanNumber) | 52 dir == WTF::Unicode::kEuropeanNumber) |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 bool has_hyphen_ : 1; | 91 bool has_hyphen_ : 1; |
| 92 unsigned char level_; | 92 unsigned char level_; |
| 93 BidiCharacterRun* next_; | 93 BidiCharacterRun* next_; |
| 94 int start_; | 94 int start_; |
| 95 int stop_; | 95 int stop_; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| 99 | 99 |
| 100 #endif // BidiCharacterRun_h | 100 #endif // BidiCharacterRun_h |
| OLD | NEW |