Chromium Code Reviews| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 306 bool hasMultipleCellLevels() const { return m_hasMultipleCellLevels; } | 306 bool hasMultipleCellLevels() const { return m_hasMultipleCellLevels; } |
| 307 | 307 |
| 308 const char* name() const override { return "LayoutTableSection"; } | 308 const char* name() const override { return "LayoutTableSection"; } |
| 309 | 309 |
| 310 // Whether a section has opaque background depends on many factors, e.g. bor der spacing, | 310 // Whether a section has opaque background depends on many factors, e.g. bor der spacing, |
| 311 // border collapsing, missing cells, etc. | 311 // border collapsing, missing cells, etc. |
| 312 // For simplicity, just conservatively assume all table sections are not opa que. | 312 // For simplicity, just conservatively assume all table sections are not opa que. |
| 313 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; } | 313 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; } |
| 314 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r eturn false; } | 314 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r eturn false; } |
| 315 | 315 |
| 316 int getPaginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) cons t; | |
|
mstensho (USE GERRIT)
2016/03/29 09:57:46
s/getP/p/ ?
rhogan
2016/03/29 19:04:37
Is that the new style? I still see getPaginationBr
mstensho (USE GERRIT)
2016/03/31 09:55:04
I don't think the intention is to prefix all gette
| |
| 317 | |
| 316 protected: | 318 protected: |
| 317 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; | 319 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; |
| 318 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; | 320 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; |
| 319 | 321 |
| 320 private: | 322 private: |
| 321 LayoutObjectChildList* virtualChildren() override { return children(); } | 323 LayoutObjectChildList* virtualChildren() override { return children(); } |
| 322 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } | 324 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } |
| 323 | 325 |
| 324 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableSection || LayoutBox::isOfType(type); } | 326 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableSection || LayoutBox::isOfType(type); } |
| 325 | 327 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 417 // Invisible borders are never stored in this map. | 419 // Invisible borders are never stored in this map. |
| 418 using CellsCollapsedBordersMap = HashMap<std::pair<const LayoutTableCell*, i nt>, CollapsedBorderValue>; | 420 using CellsCollapsedBordersMap = HashMap<std::pair<const LayoutTableCell*, i nt>, CollapsedBorderValue>; |
| 419 CellsCollapsedBordersMap m_cellsCollapsedBorders; | 421 CellsCollapsedBordersMap m_cellsCollapsedBorders; |
| 420 }; | 422 }; |
| 421 | 423 |
| 422 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); | 424 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); |
| 423 | 425 |
| 424 } // namespace blink | 426 } // namespace blink |
| 425 | 427 |
| 426 #endif // LayoutTableSection_h | 428 #endif // LayoutTableSection_h |
| OLD | NEW |