| 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, 2008, 2009, 2010, 2013 Apple Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 10 * | 10 * |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 m_forceSlowPaintPathWithOverflowingCell(false), | 108 m_forceSlowPaintPathWithOverflowingCell(false), |
| 109 m_hasMultipleCellLevels(false) { | 109 m_hasMultipleCellLevels(false) { |
| 110 // init LayoutObject attributes | 110 // init LayoutObject attributes |
| 111 setInline(false); // our object is not Inline | 111 setInline(false); // our object is not Inline |
| 112 } | 112 } |
| 113 | 113 |
| 114 LayoutTableSection::~LayoutTableSection() {} | 114 LayoutTableSection::~LayoutTableSection() {} |
| 115 | 115 |
| 116 void LayoutTableSection::styleDidChange(StyleDifference diff, | 116 void LayoutTableSection::styleDidChange(StyleDifference diff, |
| 117 const ComputedStyle* oldStyle) { | 117 const ComputedStyle* oldStyle) { |
| 118 DCHECK(style()->display() == EDisplay::TableFooterGroup || | 118 DCHECK(style()->display() == EDisplay::kTableFooterGroup || |
| 119 style()->display() == EDisplay::TableRowGroup || | 119 style()->display() == EDisplay::kTableRowGroup || |
| 120 style()->display() == EDisplay::TableHeaderGroup); | 120 style()->display() == EDisplay::kTableHeaderGroup); |
| 121 | 121 |
| 122 LayoutTableBoxComponent::styleDidChange(diff, oldStyle); | 122 LayoutTableBoxComponent::styleDidChange(diff, oldStyle); |
| 123 propagateStyleToAnonymousChildren(); | 123 propagateStyleToAnonymousChildren(); |
| 124 | 124 |
| 125 if (!oldStyle) | 125 if (!oldStyle) |
| 126 return; | 126 return; |
| 127 | 127 |
| 128 LayoutTable* table = this->table(); | 128 LayoutTable* table = this->table(); |
| 129 if (!table) | 129 if (!table) |
| 130 return; | 130 return; |
| (...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 break; | 1839 break; |
| 1840 } | 1840 } |
| 1841 | 1841 |
| 1842 return false; | 1842 return false; |
| 1843 } | 1843 } |
| 1844 | 1844 |
| 1845 LayoutTableSection* LayoutTableSection::createAnonymousWithParent( | 1845 LayoutTableSection* LayoutTableSection::createAnonymousWithParent( |
| 1846 const LayoutObject* parent) { | 1846 const LayoutObject* parent) { |
| 1847 RefPtr<ComputedStyle> newStyle = | 1847 RefPtr<ComputedStyle> newStyle = |
| 1848 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), | 1848 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), |
| 1849 EDisplay::TableRowGroup); | 1849 EDisplay::kTableRowGroup); |
| 1850 LayoutTableSection* newSection = new LayoutTableSection(nullptr); | 1850 LayoutTableSection* newSection = new LayoutTableSection(nullptr); |
| 1851 newSection->setDocumentForAnonymous(&parent->document()); | 1851 newSection->setDocumentForAnonymous(&parent->document()); |
| 1852 newSection->setStyle(std::move(newStyle)); | 1852 newSection->setStyle(std::move(newStyle)); |
| 1853 return newSection; | 1853 return newSection; |
| 1854 } | 1854 } |
| 1855 | 1855 |
| 1856 void LayoutTableSection::setLogicalPositionForCell( | 1856 void LayoutTableSection::setLogicalPositionForCell( |
| 1857 LayoutTableCell* cell, | 1857 LayoutTableCell* cell, |
| 1858 unsigned effectiveColumn) const { | 1858 unsigned effectiveColumn) const { |
| 1859 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]); | 1859 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2079 transformState.flatten(); | 2079 transformState.flatten(); |
| 2080 FloatRect rect = transformState.lastPlanarQuad().boundingBox(); | 2080 FloatRect rect = transformState.lastPlanarQuad().boundingBox(); |
| 2081 rect.setHeight(table()->logicalHeight()); | 2081 rect.setHeight(table()->logicalHeight()); |
| 2082 transformState.setQuad(FloatQuad(rect)); | 2082 transformState.setQuad(FloatQuad(rect)); |
| 2083 } | 2083 } |
| 2084 return LayoutTableBoxComponent::mapToVisualRectInAncestorSpaceInternal( | 2084 return LayoutTableBoxComponent::mapToVisualRectInAncestorSpaceInternal( |
| 2085 ancestor, transformState, flags); | 2085 ancestor, transformState, flags); |
| 2086 } | 2086 } |
| 2087 | 2087 |
| 2088 } // namespace blink | 2088 } // namespace blink |
| OLD | NEW |