Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
34 33
35 namespace blink { 34 namespace blink {
36 35
37 static const unsigned unsetColumnIndex = 0x1FFFFFFF; 36 static const unsigned unsetColumnIndex = 0x1FFFFFFF;
38 static const unsigned maxColumnIndex = 0x1FFFFFFE; // 536,870,910 37 static const unsigned maxColumnIndex = 0x1FFFFFFE; // 536,870,910
39 38
40 enum IncludeBorderColorOrNot { DoNotIncludeBorderColor, IncludeBorderColor }; 39 enum IncludeBorderColorOrNot { DoNotIncludeBorderColor, IncludeBorderColor };
41 40
42 class SubtreeLayoutScope; 41 class SubtreeLayoutScope;
43 42
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 unsigned m_hasRowSpan: 1; 359 unsigned m_hasRowSpan: 1;
361 360
362 // The intrinsic padding. 361 // The intrinsic padding.
363 // See class comment for what they are. 362 // See class comment for what they are.
364 // 363 //
365 // Note: Those fields are using non-subpixel units (int) 364 // Note: Those fields are using non-subpixel units (int)
366 // because we don't do fractional arithmetic on tables. 365 // because we don't do fractional arithmetic on tables.
367 int m_intrinsicPaddingBefore; 366 int m_intrinsicPaddingBefore;
368 int m_intrinsicPaddingAfter; 367 int m_intrinsicPaddingAfter;
369 368
370 std::unique_ptr<CollapsedBorderValues> m_collapsedBorderValues; 369 OwnPtr<CollapsedBorderValues> m_collapsedBorderValues;
371 }; 370 };
372 371
373 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCell, isTableCell()); 372 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCell, isTableCell());
374 373
375 inline LayoutTableCell* LayoutTableCell::previousCell() const 374 inline LayoutTableCell* LayoutTableCell::previousCell() const
376 { 375 {
377 return toLayoutTableCell(LayoutObject::previousSibling()); 376 return toLayoutTableCell(LayoutObject::previousSibling());
378 } 377 }
379 378
380 inline LayoutTableCell* LayoutTableCell::nextCell() const 379 inline LayoutTableCell* LayoutTableCell::nextCell() const
381 { 380 {
382 return toLayoutTableCell(LayoutObject::nextSibling()); 381 return toLayoutTableCell(LayoutObject::nextSibling());
383 } 382 }
384 383
385 inline LayoutTableCell* LayoutTableRow::firstCell() const 384 inline LayoutTableCell* LayoutTableRow::firstCell() const
386 { 385 {
387 return toLayoutTableCell(firstChild()); 386 return toLayoutTableCell(firstChild());
388 } 387 }
389 388
390 inline LayoutTableCell* LayoutTableRow::lastCell() const 389 inline LayoutTableCell* LayoutTableRow::lastCell() const
391 { 390 {
392 return toLayoutTableCell(lastChild()); 391 return toLayoutTableCell(lastChild());
393 } 392 }
394 393
395 } // namespace blink 394 } // namespace blink
396 395
397 #endif // LayoutTableCell_h 396 #endif // LayoutTableCell_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698