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

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

Issue 2422953003: Repeating header groups should align properly when captions are present (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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // change but not our column's width. In practice, horizontal border-spacing 246 // change but not our column's width. In practice, horizontal border-spacing
247 // won't change often. 247 // won't change often.
248 m_columnLogicalWidthChanged |= 248 m_columnLogicalWidthChanged |=
249 m_effectiveColumnPositions[index] != position; 249 m_effectiveColumnPositions[index] != position;
250 m_effectiveColumnPositions[index] = position; 250 m_effectiveColumnPositions[index] = position;
251 } 251 }
252 252
253 LayoutTableSection* header() const { return m_head; } 253 LayoutTableSection* header() const { return m_head; }
254 LayoutTableSection* footer() const { return m_foot; } 254 LayoutTableSection* footer() const { return m_foot; }
255 LayoutTableSection* firstBody() const { return m_firstBody; } 255 LayoutTableSection* firstBody() const { return m_firstBody; }
256 LayoutTableCaption* topCaption() const;
256 257
257 // This function returns 0 if the table has no section. 258 // This function returns 0 if the table has no section.
258 LayoutTableSection* topSection() const; 259 LayoutTableSection* topSection() const;
259 LayoutTableSection* bottomSection() const; 260 LayoutTableSection* bottomSection() const;
260 261
261 // This function returns 0 if the table has no non-empty sections. 262 // This function returns 0 if the table has no non-empty sections.
262 LayoutTableSection* topNonEmptySection() const; 263 LayoutTableSection* topNonEmptySection() const;
263 264
264 unsigned lastEffectiveColumnIndex() const { 265 unsigned lastEffectiveColumnIndex() const {
265 return numEffectiveColumns() - 1; 266 return numEffectiveColumns() - 1;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 if (m_firstBody) 567 if (m_firstBody)
567 return m_firstBody; 568 return m_firstBody;
568 return m_foot; 569 return m_foot;
569 } 570 }
570 571
571 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 572 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
572 573
573 } // namespace blink 574 } // namespace blink
574 575
575 #endif // LayoutTable_h 576 #endif // LayoutTable_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698