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

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) {
322 m_offsetForRepeatingHeader = offset;
323 }
324 LayoutUnit offsetForRepeatingHeader() const {
325 return m_offsetForRepeatingHeader;
326 }
327
328 bool mapToVisualRectInAncestorSpace( 321 bool mapToVisualRectInAncestorSpace(
329 const LayoutBoxModelObject* ancestor, 322 const LayoutBoxModelObject* ancestor,
330 LayoutRect&, 323 LayoutRect&,
331 VisualRectFlags = DefaultVisualRectFlags) const override; 324 VisualRectFlags = DefaultVisualRectFlags) const override;
332 325
333 bool isRepeatingHeaderGroup() const; 326 bool isRepeatingHeaderGroup() const;
334 327
335 protected: 328 protected:
336 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 329 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
337 bool nodeAtPoint(HitTestResult&, 330 bool nodeAtPoint(HitTestResult&,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // memory. 456 // memory.
464 HashSet<LayoutTableCell*> m_overflowingCells; 457 HashSet<LayoutTableCell*> m_overflowingCells;
465 bool m_forceSlowPaintPathWithOverflowingCell; 458 bool m_forceSlowPaintPathWithOverflowingCell;
466 459
467 // This boolean tracks if we have cells overlapping due to rowspan / colspan 460 // This boolean tracks if we have cells overlapping due to rowspan / colspan
468 // (see class comment above about when it could appear). 461 // (see class comment above about when it could appear).
469 // 462 //
470 // The use is to disable a painting optimization where we just paint the 463 // The use is to disable a painting optimization where we just paint the
471 // invalidated cells. 464 // invalidated cells.
472 bool m_hasMultipleCellLevels; 465 bool m_hasMultipleCellLevels;
473
474 LayoutUnit m_offsetForRepeatingHeader;
475 }; 466 };
476 467
477 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 468 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
478 469
479 } // namespace blink 470 } // namespace blink
480 471
481 #endif // LayoutTableSection_h 472 #endif // LayoutTableSection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698