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, 2007, 2009, 2013 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights
reserved. |
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 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #ifndef LayoutTableCell_h | 25 #ifndef LayoutTableCell_h |
26 #define LayoutTableCell_h | 26 #define LayoutTableCell_h |
27 | 27 |
28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
29 #include "core/layout/LayoutBlockFlow.h" | 29 #include "core/layout/LayoutBlockFlow.h" |
30 #include "core/layout/LayoutTableRow.h" | 30 #include "core/layout/LayoutTableRow.h" |
31 #include "core/layout/LayoutTableSection.h" | 31 #include "core/layout/LayoutTableSection.h" |
32 #include "platform/LengthFunctions.h" | 32 #include "platform/LengthFunctions.h" |
| 33 #include <memory> |
33 | 34 |
34 namespace blink { | 35 namespace blink { |
35 | 36 |
36 static const unsigned unsetColumnIndex = 0x1FFFFFFF; | 37 static const unsigned unsetColumnIndex = 0x1FFFFFFF; |
37 static const unsigned maxColumnIndex = 0x1FFFFFFE; // 536,870,910 | 38 static const unsigned maxColumnIndex = 0x1FFFFFFE; // 536,870,910 |
38 | 39 |
39 enum IncludeBorderColorOrNot { DoNotIncludeBorderColor, IncludeBorderColor }; | 40 enum IncludeBorderColorOrNot { DoNotIncludeBorderColor, IncludeBorderColor }; |
40 | 41 |
41 class SubtreeLayoutScope; | 42 class SubtreeLayoutScope; |
42 | 43 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 unsigned m_hasRowSpan: 1; | 360 unsigned m_hasRowSpan: 1; |
360 | 361 |
361 // The intrinsic padding. | 362 // The intrinsic padding. |
362 // See class comment for what they are. | 363 // See class comment for what they are. |
363 // | 364 // |
364 // Note: Those fields are using non-subpixel units (int) | 365 // Note: Those fields are using non-subpixel units (int) |
365 // because we don't do fractional arithmetic on tables. | 366 // because we don't do fractional arithmetic on tables. |
366 int m_intrinsicPaddingBefore; | 367 int m_intrinsicPaddingBefore; |
367 int m_intrinsicPaddingAfter; | 368 int m_intrinsicPaddingAfter; |
368 | 369 |
369 OwnPtr<CollapsedBorderValues> m_collapsedBorderValues; | 370 std::unique_ptr<CollapsedBorderValues> m_collapsedBorderValues; |
370 }; | 371 }; |
371 | 372 |
372 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCell, isTableCell()); | 373 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCell, isTableCell()); |
373 | 374 |
374 inline LayoutTableCell* LayoutTableCell::previousCell() const | 375 inline LayoutTableCell* LayoutTableCell::previousCell() const |
375 { | 376 { |
376 return toLayoutTableCell(LayoutObject::previousSibling()); | 377 return toLayoutTableCell(LayoutObject::previousSibling()); |
377 } | 378 } |
378 | 379 |
379 inline LayoutTableCell* LayoutTableCell::nextCell() const | 380 inline LayoutTableCell* LayoutTableCell::nextCell() const |
380 { | 381 { |
381 return toLayoutTableCell(LayoutObject::nextSibling()); | 382 return toLayoutTableCell(LayoutObject::nextSibling()); |
382 } | 383 } |
383 | 384 |
384 inline LayoutTableCell* LayoutTableRow::firstCell() const | 385 inline LayoutTableCell* LayoutTableRow::firstCell() const |
385 { | 386 { |
386 return toLayoutTableCell(firstChild()); | 387 return toLayoutTableCell(firstChild()); |
387 } | 388 } |
388 | 389 |
389 inline LayoutTableCell* LayoutTableRow::lastCell() const | 390 inline LayoutTableCell* LayoutTableRow::lastCell() const |
390 { | 391 { |
391 return toLayoutTableCell(lastChild()); | 392 return toLayoutTableCell(lastChild()); |
392 } | 393 } |
393 | 394 |
394 } // namespace blink | 395 } // namespace blink |
395 | 396 |
396 #endif // LayoutTableCell_h | 397 #endif // LayoutTableCell_h |
OLD | NEW |