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

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

Issue 2421613002: Lay out table children in visual order, and set position and size. (Closed)
Patch Set: Created 4 years, 2 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, 2009, 2010 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 LayoutUnit convertStyleLogicalHeightToComputedHeight( 473 LayoutUnit convertStyleLogicalHeightToComputedHeight(
474 const Length& styleLogicalHeight); 474 const Length& styleLogicalHeight);
475 475
476 LayoutRect overflowClipRect( 476 LayoutRect overflowClipRect(
477 const LayoutPoint& location, 477 const LayoutPoint& location,
478 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; 478 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override;
479 479
480 void addOverflowFromChildren() override; 480 void addOverflowFromChildren() override;
481 481
482 void recalcSections() const; 482 void recalcSections() const;
483 void layoutCaption(LayoutTableCaption&); 483 void layoutCaption(LayoutTableCaption&, SubtreeLayoutScope&);
484 void layoutSection(LayoutTableSection&,
485 SubtreeLayoutScope&,
486 LayoutUnit logicalLeft);
484 487
485 void distributeExtraLogicalHeight(int extraLogicalHeight); 488 void distributeExtraLogicalHeight(int extraLogicalHeight);
486 489
487 void recalcCollapsedBordersIfNeeded(); 490 void recalcCollapsedBordersIfNeeded();
488 491
489 // TODO(layout-dev): All mutables in this class are lazily updated by 492 // TODO(layout-dev): All mutables in this class are lazily updated by
490 // recalcSections() which is called by various getter methods (e.g. 493 // recalcSections() which is called by various getter methods (e.g.
491 // borderBefore(), borderAfter()). 494 // borderBefore(), borderAfter()).
492 // They allow dirty layout even after DocumentLifecycle::LayoutClean which 495 // They allow dirty layout even after DocumentLifecycle::LayoutClean which
493 // seems not proper. crbug.com/538236. 496 // seems not proper. crbug.com/538236.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 if (m_firstBody) 569 if (m_firstBody)
567 return m_firstBody; 570 return m_firstBody;
568 return m_foot; 571 return m_foot;
569 } 572 }
570 573
571 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 574 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
572 575
573 } // namespace blink 576 } // namespace blink
574 577
575 #endif // LayoutTable_h 578 #endif // LayoutTable_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698