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

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

Issue 2326303002: Don't repeat headers if at least one row of content doesn't fit (Closed)
Patch Set: bug 624814 Created 4 years, 3 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, 2013 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv ed.
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; } 304 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; }
305 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r eturn false; } 305 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r eturn false; }
306 306
307 int paginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) const; 307 int paginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) const;
308 308
309 void setOffsetForRepeatingHeader(LayoutUnit offset) { m_offsetForRepeatingHe ader = offset; } 309 void setOffsetForRepeatingHeader(LayoutUnit offset) { m_offsetForRepeatingHe ader = offset; }
310 LayoutUnit offsetForRepeatingHeader() const { return m_offsetForRepeatingHea der; } 310 LayoutUnit offsetForRepeatingHeader() const { return m_offsetForRepeatingHea der; }
311 311
312 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect&, VisualRectFlags = DefaultVisualRectFlags) const override; 312 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect&, VisualRectFlags = DefaultVisualRectFlags) const override;
313 313
314 bool hasRepeatingHeaderGroup() const; 314 bool isRepeatingHeaderGroup() const;
315 315
316 protected: 316 protected:
317 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 317 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
318 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 318 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
319 319
320 private: 320 private:
321 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableSection || LayoutBox::isOfType(type); } 321 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableSection || LayoutBox::isOfType(type); }
322 322
323 void willBeRemovedFromTree() override; 323 void willBeRemovedFromTree() override;
324 324
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 bool m_hasMultipleCellLevels; 406 bool m_hasMultipleCellLevels;
407 407
408 LayoutUnit m_offsetForRepeatingHeader; 408 LayoutUnit m_offsetForRepeatingHeader;
409 }; 409 };
410 410
411 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 411 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
412 412
413 } // namespace blink 413 } // namespace blink
414 414
415 #endif // LayoutTableSection_h 415 #endif // LayoutTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698