| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #ifndef BidiRun_h | 24 #ifndef BidiRun_h |
| 25 #define BidiRun_h | 25 #define BidiRun_h |
| 26 | 26 |
| 27 #include "core/layout/api/LineLayoutItem.h" | 27 #include "core/layout/api/LineLayoutItem.h" |
| 28 #include "platform/text/BidiResolver.h" | 28 #include "platform/text/BidiResolver.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class BidiContext; | |
| 33 class InlineBox; | 32 class InlineBox; |
| 34 | 33 |
| 35 struct BidiRun : BidiCharacterRun { | 34 struct BidiRun : BidiCharacterRun { |
| 36 BidiRun(bool override, | 35 BidiRun(bool override, |
| 37 unsigned char level, | 36 unsigned char level, |
| 38 int start, | 37 int start, |
| 39 int stop, | 38 int stop, |
| 40 LineLayoutItem lineLayoutItem, | 39 LineLayoutItem lineLayoutItem, |
| 41 WTF::Unicode::CharDirection dir, | 40 WTF::Unicode::CharDirection dir, |
| 42 WTF::Unicode::CharDirection overrideDir) | 41 WTF::Unicode::CharDirection overrideDir) |
| 43 : BidiCharacterRun(override, level, start, stop, dir, overrideDir), | 42 : BidiCharacterRun(override, level, start, stop, dir, overrideDir), |
| 44 m_lineLayoutItem(lineLayoutItem), | 43 m_lineLayoutItem(lineLayoutItem), |
| 45 m_box(nullptr) { | 44 m_box(nullptr) { |
| 46 // Stored in base class to save space. | 45 // Stored in base class to save space. |
| 47 m_hasHyphen = false; | 46 m_hasHyphen = false; |
| 48 } | 47 } |
| 49 | 48 |
| 50 BidiRun* next() { return static_cast<BidiRun*>(m_next); } | 49 BidiRun* next() { return static_cast<BidiRun*>(m_next); } |
| 51 | 50 |
| 52 public: | 51 public: |
| 53 LineLayoutItem m_lineLayoutItem; | 52 LineLayoutItem m_lineLayoutItem; |
| 54 InlineBox* m_box; | 53 InlineBox* m_box; |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace blink | 56 } // namespace blink |
| 58 | 57 |
| 59 #endif // BidiRun_h | 58 #endif // BidiRun_h |
| OLD | NEW |