OLD | NEW |
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 bool hasMultipleCellLevels() const { return m_hasMultipleCellLevels; } | 307 bool hasMultipleCellLevels() const { return m_hasMultipleCellLevels; } |
308 | 308 |
309 const char* name() const override { return "LayoutTableSection"; } | 309 const char* name() const override { return "LayoutTableSection"; } |
310 | 310 |
311 // Whether a section has opaque background depends on many factors, e.g. bor
der spacing, | 311 // Whether a section has opaque background depends on many factors, e.g. bor
der spacing, |
312 // border collapsing, missing cells, etc. | 312 // border collapsing, missing cells, etc. |
313 // For simplicity, just conservatively assume all table sections are not opa
que. | 313 // For simplicity, just conservatively assume all table sections are not opa
que. |
314 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov
erride { return false; } | 314 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov
erride { return false; } |
315 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r
eturn false; } | 315 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r
eturn false; } |
316 | 316 |
| 317 int paginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) const; |
| 318 |
317 protected: | 319 protected: |
318 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 320 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
319 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; | 321 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; |
320 | 322 |
321 private: | 323 private: |
322 LayoutObjectChildList* virtualChildren() override { return children(); } | 324 LayoutObjectChildList* virtualChildren() override { return children(); } |
323 const LayoutObjectChildList* virtualChildren() const override { return child
ren(); } | 325 const LayoutObjectChildList* virtualChildren() const override { return child
ren(); } |
324 | 326 |
325 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTableSection || LayoutBox::isOfType(type); } | 327 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTableSection || LayoutBox::isOfType(type); } |
326 | 328 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 // Invisible borders are never stored in this map. | 420 // Invisible borders are never stored in this map. |
419 using CellsCollapsedBordersMap = HashMap<std::pair<const LayoutTableCell*, i
nt>, CollapsedBorderValue>; | 421 using CellsCollapsedBordersMap = HashMap<std::pair<const LayoutTableCell*, i
nt>, CollapsedBorderValue>; |
420 CellsCollapsedBordersMap m_cellsCollapsedBorders; | 422 CellsCollapsedBordersMap m_cellsCollapsedBorders; |
421 }; | 423 }; |
422 | 424 |
423 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); | 425 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); |
424 | 426 |
425 } // namespace blink | 427 } // namespace blink |
426 | 428 |
427 #endif // LayoutTableSection_h | 429 #endif // LayoutTableSection_h |
OLD | NEW |