OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. |
3 * All rights reserved. | 3 * All rights 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // some LayoutObject (i.e., it represents a portion of that LayoutObject). | 43 // some LayoutObject (i.e., it represents a portion of that LayoutObject). |
44 class CORE_EXPORT InlineBox : public DisplayItemClient { | 44 class CORE_EXPORT InlineBox : public DisplayItemClient { |
45 WTF_MAKE_NONCOPYABLE(InlineBox); | 45 WTF_MAKE_NONCOPYABLE(InlineBox); |
46 | 46 |
47 public: | 47 public: |
48 InlineBox(LineLayoutItem obj) | 48 InlineBox(LineLayoutItem obj) |
49 : m_next(nullptr), | 49 : m_next(nullptr), |
50 m_prev(nullptr), | 50 m_prev(nullptr), |
51 m_parent(nullptr), | 51 m_parent(nullptr), |
52 m_lineLayoutItem(obj), | 52 m_lineLayoutItem(obj), |
53 m_logicalWidth() | 53 m_logicalWidth() {} |
54 { | |
55 } | |
56 | 54 |
57 InlineBox(LineLayoutItem item, | 55 InlineBox(LineLayoutItem item, |
58 LayoutPoint topLeft, | 56 LayoutPoint topLeft, |
59 LayoutUnit logicalWidth, | 57 LayoutUnit logicalWidth, |
60 bool firstLine, | 58 bool firstLine, |
61 bool constructed, | 59 bool constructed, |
62 bool dirty, | 60 bool dirty, |
63 bool extracted, | 61 bool extracted, |
64 bool isHorizontal, | 62 bool isHorizontal, |
65 InlineBox* next, | 63 InlineBox* next, |
66 InlineBox* prev, | 64 InlineBox* prev, |
67 InlineFlowBox* parent) | 65 InlineFlowBox* parent) |
68 : m_bitfields(firstLine, constructed, dirty, extracted, isHorizontal), | 66 : m_bitfields(firstLine, constructed, dirty, extracted, isHorizontal), |
69 m_next(next), | 67 m_next(next), |
70 m_prev(prev), | 68 m_prev(prev), |
71 m_parent(parent), | 69 m_parent(parent), |
72 m_lineLayoutItem(item), | 70 m_lineLayoutItem(item), |
73 m_location(topLeft), | 71 m_location(topLeft), |
74 m_logicalWidth(logicalWidth) | 72 m_logicalWidth(logicalWidth) {} |
75 { | |
76 } | |
77 | 73 |
78 virtual ~InlineBox(); | 74 virtual ~InlineBox(); |
79 | 75 |
80 virtual void destroy(); | 76 virtual void destroy(); |
81 | 77 |
82 virtual void deleteLine(); | 78 virtual void deleteLine(); |
83 virtual void extractLine(); | 79 virtual void extractLine(); |
84 virtual void attachLine(); | 80 virtual void attachLine(); |
85 | 81 |
86 virtual bool isLineBreak() const { return false; } | 82 virtual bool isLineBreak() const { return false; } |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 | 565 |
570 } // namespace blink | 566 } // namespace blink |
571 | 567 |
572 #ifndef NDEBUG | 568 #ifndef NDEBUG |
573 // Outside the WebCore namespace for ease of invocation from gdb. | 569 // Outside the WebCore namespace for ease of invocation from gdb. |
574 void showTree(const blink::InlineBox*); | 570 void showTree(const blink::InlineBox*); |
575 void showLineTree(const blink::InlineBox*); | 571 void showLineTree(const blink::InlineBox*); |
576 #endif | 572 #endif |
577 | 573 |
578 #endif // InlineBox_h | 574 #endif // InlineBox_h |
OLD | NEW |