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. |
11 * | 11 * |
12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Library General Public License for more details. | 15 * Library General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Library General Public License | 17 * You should have received a copy of the GNU Library General Public License |
18 * along with this library; see the file COPYING.LIB. If not, write to | 18 * along with this library; see the file COPYING.LIB. If not, write to |
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 * Boston, MA 02110-1301, USA. | 20 * Boston, MA 02110-1301, USA. |
21 * | 21 * |
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/LayoutText.h" | |
28 #include "core/layout/api/LineLayoutItem.h" | 27 #include "core/layout/api/LineLayoutItem.h" |
29 #include "platform/text/BidiResolver.h" | 28 #include "platform/text/BidiResolver.h" |
30 #include "wtf/StdLibExtras.h" | |
31 | 29 |
32 namespace blink { | 30 namespace blink { |
33 | 31 |
34 class BidiContext; | 32 class BidiContext; |
35 class InlineBox; | 33 class InlineBox; |
36 | 34 |
37 struct BidiRun : BidiCharacterRun { | 35 struct BidiRun : BidiCharacterRun { |
38 BidiRun(int start, int stop, LineLayoutItem lineLayoutItem, BidiContext* con
text, WTF::Unicode::CharDirection dir) | 36 BidiRun(int start, int stop, LineLayoutItem lineLayoutItem, BidiContext* con
text, WTF::Unicode::CharDirection dir) |
39 : BidiCharacterRun(start, stop, context, dir) | 37 : BidiCharacterRun(start, stop, context, dir) |
40 , m_lineLayoutItem(lineLayoutItem) | 38 , m_lineLayoutItem(lineLayoutItem) |
41 , m_box(nullptr) | 39 , m_box(nullptr) |
42 { | 40 { |
43 // Stored in base class to save space. | 41 // Stored in base class to save space. |
44 m_hasHyphen = false; | 42 m_hasHyphen = false; |
45 } | 43 } |
46 | 44 |
47 BidiRun* next() { return static_cast<BidiRun*>(m_next); } | 45 BidiRun* next() { return static_cast<BidiRun*>(m_next); } |
48 | 46 |
49 public: | 47 public: |
50 LineLayoutItem m_lineLayoutItem; | 48 LineLayoutItem m_lineLayoutItem; |
51 InlineBox* m_box; | 49 InlineBox* m_box; |
52 }; | 50 }; |
53 | 51 |
54 } // namespace blink | 52 } // namespace blink |
55 | 53 |
56 #endif // BidiRun_h | 54 #endif // BidiRun_h |
OLD | NEW |