| 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 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1838 return false; | 1838 return false; |
| 1839 } | 1839 } |
| 1840 | 1840 |
| 1841 LayoutTableSection* LayoutTableSection::createAnonymousWithParent( | 1841 LayoutTableSection* LayoutTableSection::createAnonymousWithParent( |
| 1842 const LayoutObject* parent) { | 1842 const LayoutObject* parent) { |
| 1843 RefPtr<ComputedStyle> newStyle = | 1843 RefPtr<ComputedStyle> newStyle = |
| 1844 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), | 1844 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), |
| 1845 EDisplay::TableRowGroup); | 1845 EDisplay::TableRowGroup); |
| 1846 LayoutTableSection* newSection = new LayoutTableSection(nullptr); | 1846 LayoutTableSection* newSection = new LayoutTableSection(nullptr); |
| 1847 newSection->setDocumentForAnonymous(&parent->document()); | 1847 newSection->setDocumentForAnonymous(&parent->document()); |
| 1848 newSection->setStyle(newStyle.release()); | 1848 newSection->setStyle(std::move(newStyle)); |
| 1849 return newSection; | 1849 return newSection; |
| 1850 } | 1850 } |
| 1851 | 1851 |
| 1852 void LayoutTableSection::setLogicalPositionForCell( | 1852 void LayoutTableSection::setLogicalPositionForCell( |
| 1853 LayoutTableCell* cell, | 1853 LayoutTableCell* cell, |
| 1854 unsigned effectiveColumn) const { | 1854 unsigned effectiveColumn) const { |
| 1855 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]); | 1855 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]); |
| 1856 int horizontalBorderSpacing = table()->hBorderSpacing(); | 1856 int horizontalBorderSpacing = table()->hBorderSpacing(); |
| 1857 | 1857 |
| 1858 // FIXME: The table's direction should determine our row's direction, not the | 1858 // FIXME: The table's direction should determine our row's direction, not the |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 // the header in all columns. | 2071 // the header in all columns. |
| 2072 // Note that this is in flow thread coordinates, not visual coordinates. The | 2072 // Note that this is in flow thread coordinates, not visual coordinates. The |
| 2073 // enclosing LayoutFlowThread will convert to visual coordinates. | 2073 // enclosing LayoutFlowThread will convert to visual coordinates. |
| 2074 if (table()->header() == this && isRepeatingHeaderGroup()) | 2074 if (table()->header() == this && isRepeatingHeaderGroup()) |
| 2075 rect.setHeight(table()->logicalHeight()); | 2075 rect.setHeight(table()->logicalHeight()); |
| 2076 return LayoutTableBoxComponent::mapToVisualRectInAncestorSpace(ancestor, rect, | 2076 return LayoutTableBoxComponent::mapToVisualRectInAncestorSpace(ancestor, rect, |
| 2077 flags); | 2077 flags); |
| 2078 } | 2078 } |
| 2079 | 2079 |
| 2080 } // namespace blink | 2080 } // namespace blink |
| OLD | NEW |