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

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

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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, 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698