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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTable.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, 2007, 2008, 2009, 2010, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 } 1618 }
1619 1619
1620 LayoutTable* LayoutTable::createAnonymousWithParent( 1620 LayoutTable* LayoutTable::createAnonymousWithParent(
1621 const LayoutObject* parent) { 1621 const LayoutObject* parent) {
1622 RefPtr<ComputedStyle> newStyle = 1622 RefPtr<ComputedStyle> newStyle =
1623 ComputedStyle::createAnonymousStyleWithDisplay( 1623 ComputedStyle::createAnonymousStyleWithDisplay(
1624 parent->styleRef(), 1624 parent->styleRef(),
1625 parent->isLayoutInline() ? EDisplay::InlineTable : EDisplay::Table); 1625 parent->isLayoutInline() ? EDisplay::InlineTable : EDisplay::Table);
1626 LayoutTable* newTable = new LayoutTable(nullptr); 1626 LayoutTable* newTable = new LayoutTable(nullptr);
1627 newTable->setDocumentForAnonymous(&parent->document()); 1627 newTable->setDocumentForAnonymous(&parent->document());
1628 newTable->setStyle(newStyle.release()); 1628 newTable->setStyle(std::move(newStyle));
1629 return newTable; 1629 return newTable;
1630 } 1630 }
1631 1631
1632 const BorderValue& LayoutTable::tableStartBorderAdjoiningCell( 1632 const BorderValue& LayoutTable::tableStartBorderAdjoiningCell(
1633 const LayoutTableCell* cell) const { 1633 const LayoutTableCell* cell) const {
1634 ASSERT(cell->isFirstOrLastCellInRow()); 1634 ASSERT(cell->isFirstOrLastCellInRow());
1635 if (hasSameDirectionAs(cell->row())) 1635 if (hasSameDirectionAs(cell->row()))
1636 return style()->borderStart(); 1636 return style()->borderStart();
1637 1637
1638 return style()->borderEnd(); 1638 return style()->borderEnd();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 } 1688 }
1689 1689
1690 LayoutUnit LayoutTable::paddingRight() const { 1690 LayoutUnit LayoutTable::paddingRight() const {
1691 if (collapseBorders()) 1691 if (collapseBorders())
1692 return LayoutUnit(); 1692 return LayoutUnit();
1693 1693
1694 return LayoutBlock::paddingRight(); 1694 return LayoutBlock::paddingRight();
1695 } 1695 }
1696 1696
1697 } // namespace blink 1697 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698