OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv
ed. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 virtual int borderStart() const override { return m_borderStart; } | 55 virtual int borderStart() const override { return m_borderStart; } |
56 virtual int borderEnd() const override { return m_borderEnd; } | 56 virtual int borderEnd() const override { return m_borderEnd; } |
57 virtual int borderBefore() const override; | 57 virtual int borderBefore() const override; |
58 virtual int borderAfter() const override; | 58 virtual int borderAfter() const override; |
59 | 59 |
60 virtual int borderLeft() const override | 60 virtual int borderLeft() const override |
61 { | 61 { |
62 if (style()->isHorizontalWritingMode()) | 62 if (style()->isHorizontalWritingMode()) |
63 return style()->isLeftToRightDirection() ? borderStart() : borderEnd
(); | 63 return style()->isLeftToRightDirection() ? borderStart() : borderEnd
(); |
64 return style()->isFlippedBlocksWritingMode() ? borderAfter() : borderBef
ore(); | 64 return style()->slowIsFlippedBlocksWritingMode() ? borderAfter() : borde
rBefore(); |
65 } | 65 } |
66 | 66 |
67 virtual int borderRight() const override | 67 virtual int borderRight() const override |
68 { | 68 { |
69 if (style()->isHorizontalWritingMode()) | 69 if (style()->isHorizontalWritingMode()) |
70 return style()->isLeftToRightDirection() ? borderEnd() : borderStart
(); | 70 return style()->isLeftToRightDirection() ? borderEnd() : borderStart
(); |
71 return style()->isFlippedBlocksWritingMode() ? borderBefore() : borderAf
ter(); | 71 return style()->slowIsFlippedBlocksWritingMode() ? borderBefore() : bord
erAfter(); |
72 } | 72 } |
73 | 73 |
74 virtual int borderTop() const override | 74 virtual int borderTop() const override |
75 { | 75 { |
76 if (style()->isHorizontalWritingMode()) | 76 if (style()->isHorizontalWritingMode()) |
77 return style()->isFlippedBlocksWritingMode() ? borderAfter() : borde
rBefore(); | 77 return style()->slowIsFlippedBlocksWritingMode() ? borderAfter() : b
orderBefore(); |
78 return style()->isLeftToRightDirection() ? borderStart() : borderEnd(); | 78 return style()->isLeftToRightDirection() ? borderStart() : borderEnd(); |
79 } | 79 } |
80 | 80 |
81 virtual int borderBottom() const override | 81 virtual int borderBottom() const override |
82 { | 82 { |
83 if (style()->isHorizontalWritingMode()) | 83 if (style()->isHorizontalWritingMode()) |
84 return style()->isFlippedBlocksWritingMode() ? borderBefore() : bord
erAfter(); | 84 return style()->slowIsFlippedBlocksWritingMode() ? borderBefore() :
borderAfter(); |
85 return style()->isLeftToRightDirection() ? borderEnd() : borderStart(); | 85 return style()->isLeftToRightDirection() ? borderEnd() : borderStart(); |
86 } | 86 } |
87 | 87 |
88 int outerBorderBefore() const; | 88 int outerBorderBefore() const; |
89 int outerBorderAfter() const; | 89 int outerBorderAfter() const; |
90 int outerBorderStart() const; | 90 int outerBorderStart() const; |
91 int outerBorderEnd() const; | 91 int outerBorderEnd() const; |
92 | 92 |
93 int outerBorderLeft() const | 93 int outerBorderLeft() const |
94 { | 94 { |
95 if (style()->isHorizontalWritingMode()) | 95 if (style()->isHorizontalWritingMode()) |
96 return style()->isLeftToRightDirection() ? outerBorderStart() : oute
rBorderEnd(); | 96 return style()->isLeftToRightDirection() ? outerBorderStart() : oute
rBorderEnd(); |
97 return style()->isFlippedBlocksWritingMode() ? outerBorderAfter() : oute
rBorderBefore(); | 97 return style()->slowIsFlippedBlocksWritingMode() ? outerBorderAfter() :
outerBorderBefore(); |
98 } | 98 } |
99 | 99 |
100 int outerBorderRight() const | 100 int outerBorderRight() const |
101 { | 101 { |
102 if (style()->isHorizontalWritingMode()) | 102 if (style()->isHorizontalWritingMode()) |
103 return style()->isLeftToRightDirection() ? outerBorderEnd() : outerB
orderStart(); | 103 return style()->isLeftToRightDirection() ? outerBorderEnd() : outerB
orderStart(); |
104 return style()->isFlippedBlocksWritingMode() ? outerBorderBefore() : out
erBorderAfter(); | 104 return style()->slowIsFlippedBlocksWritingMode() ? outerBorderBefore() :
outerBorderAfter(); |
105 } | 105 } |
106 | 106 |
107 int outerBorderTop() const | 107 int outerBorderTop() const |
108 { | 108 { |
109 if (style()->isHorizontalWritingMode()) | 109 if (style()->isHorizontalWritingMode()) |
110 return style()->isFlippedBlocksWritingMode() ? outerBorderAfter() :
outerBorderBefore(); | 110 return style()->slowIsFlippedBlocksWritingMode() ? outerBorderAfter(
) : outerBorderBefore(); |
111 return style()->isLeftToRightDirection() ? outerBorderStart() : outerBor
derEnd(); | 111 return style()->isLeftToRightDirection() ? outerBorderStart() : outerBor
derEnd(); |
112 } | 112 } |
113 | 113 |
114 int outerBorderBottom() const | 114 int outerBorderBottom() const |
115 { | 115 { |
116 if (style()->isHorizontalWritingMode()) | 116 if (style()->isHorizontalWritingMode()) |
117 return style()->isFlippedBlocksWritingMode() ? outerBorderBefore() :
outerBorderAfter(); | 117 return style()->slowIsFlippedBlocksWritingMode() ? outerBorderBefore
() : outerBorderAfter(); |
118 return style()->isLeftToRightDirection() ? outerBorderEnd() : outerBorde
rStart(); | 118 return style()->isLeftToRightDirection() ? outerBorderEnd() : outerBorde
rStart(); |
119 } | 119 } |
120 | 120 |
121 int calcBorderStart() const; | 121 int calcBorderStart() const; |
122 int calcBorderEnd() const; | 122 int calcBorderEnd() const; |
123 void recalcBordersInRowDirection(); | 123 void recalcBordersInRowDirection(); |
124 | 124 |
125 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) ov
erride; | 125 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) ov
erride; |
126 | 126 |
127 struct ColumnStruct { | 127 struct ColumnStruct { |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 if (m_firstBody) | 361 if (m_firstBody) |
362 return m_firstBody; | 362 return m_firstBody; |
363 return m_foot; | 363 return m_foot; |
364 } | 364 } |
365 | 365 |
366 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable()); | 366 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable()); |
367 | 367 |
368 } // namespace blink | 368 } // namespace blink |
369 | 369 |
370 #endif // RenderTable_h | 370 #endif // RenderTable_h |
OLD | NEW |