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

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

Issue 2545243002: Don't repeat thead if the first row exceeds the height of the page (Closed)
Patch Set: bug 669690 Created 4 years 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, 2013 Apple Inc. All rights 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights
8 * reserved. 8 * 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, 311 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&,
312 unsigned) const override { 312 unsigned) const override {
313 return false; 313 return false;
314 } 314 }
315 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { 315 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override {
316 return false; 316 return false;
317 } 317 }
318 318
319 int paginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) const; 319 int paginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) const;
320 320
321 void setOffsetForRepeatingHeader(LayoutUnit offset) { 321 void setRowOffsetFromRepeatingHeader(LayoutUnit offset) {
322 m_offsetForRepeatingHeader = offset; 322 m_rowOffsetFromRepeatingHeader = offset;
323 } 323 }
324 LayoutUnit offsetForRepeatingHeader() const { 324 LayoutUnit rowOffsetFromRepeatingHeader() const {
325 return m_offsetForRepeatingHeader; 325 return m_rowOffsetFromRepeatingHeader;
326 } 326 }
327 327
328 bool mapToVisualRectInAncestorSpace( 328 bool mapToVisualRectInAncestorSpace(
329 const LayoutBoxModelObject* ancestor, 329 const LayoutBoxModelObject* ancestor,
330 LayoutRect&, 330 LayoutRect&,
331 VisualRectFlags = DefaultVisualRectFlags) const override; 331 VisualRectFlags = DefaultVisualRectFlags) const override;
332 332
333 bool isRepeatingHeaderGroup() const; 333 bool isRepeatingHeaderGroup() const;
334 334
335 protected: 335 protected:
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 HashSet<LayoutTableCell*> m_overflowingCells; 464 HashSet<LayoutTableCell*> m_overflowingCells;
465 bool m_forceSlowPaintPathWithOverflowingCell; 465 bool m_forceSlowPaintPathWithOverflowingCell;
466 466
467 // This boolean tracks if we have cells overlapping due to rowspan / colspan 467 // This boolean tracks if we have cells overlapping due to rowspan / colspan
468 // (see class comment above about when it could appear). 468 // (see class comment above about when it could appear).
469 // 469 //
470 // The use is to disable a painting optimization where we just paint the 470 // The use is to disable a painting optimization where we just paint the
471 // invalidated cells. 471 // invalidated cells.
472 bool m_hasMultipleCellLevels; 472 bool m_hasMultipleCellLevels;
473 473
474 LayoutUnit m_offsetForRepeatingHeader; 474 LayoutUnit m_rowOffsetFromRepeatingHeader;
mstensho (USE GERRIT) 2016/12/12 19:22:40 This should be stored in LayoutTable instead.
475 }; 475 };
476 476
477 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 477 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
478 478
479 } // namespace blink 479 } // namespace blink
480 480
481 #endif // LayoutTableSection_h 481 #endif // LayoutTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698