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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.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 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 return layoutObject; 1426 return layoutObject;
1427 } 1427 }
1428 1428
1429 LayoutTableCell* LayoutTableCell::createAnonymousWithParent( 1429 LayoutTableCell* LayoutTableCell::createAnonymousWithParent(
1430 const LayoutObject* parent) { 1430 const LayoutObject* parent) {
1431 LayoutTableCell* newCell = 1431 LayoutTableCell* newCell =
1432 LayoutTableCell::createAnonymous(&parent->document()); 1432 LayoutTableCell::createAnonymous(&parent->document());
1433 RefPtr<ComputedStyle> newStyle = 1433 RefPtr<ComputedStyle> newStyle =
1434 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), 1434 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(),
1435 EDisplay::TableCell); 1435 EDisplay::TableCell);
1436 newCell->setStyle(newStyle.release()); 1436 newCell->setStyle(std::move(newStyle));
1437 return newCell; 1437 return newCell;
1438 } 1438 }
1439 1439
1440 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect( 1440 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect(
1441 const LayoutRect& localRect) const { 1441 const LayoutRect& localRect) const {
1442 // If this object has layer, the area of collapsed borders should be 1442 // If this object has layer, the area of collapsed borders should be
1443 // transparent to expose the collapsed borders painted on the underlying 1443 // transparent to expose the collapsed borders painted on the underlying
1444 // layer. 1444 // layer.
1445 if (hasLayer() && table()->collapseBorders()) 1445 if (hasLayer() && table()->collapseBorders())
1446 return false; 1446 return false;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 } 1492 }
1493 1493
1494 bool LayoutTableCell::hasLineIfEmpty() const { 1494 bool LayoutTableCell::hasLineIfEmpty() const {
1495 if (node() && hasEditableStyle(*node())) 1495 if (node() && hasEditableStyle(*node()))
1496 return true; 1496 return true;
1497 1497
1498 return LayoutBlock::hasLineIfEmpty(); 1498 return LayoutBlock::hasLineIfEmpty();
1499 } 1499 }
1500 1500
1501 } // namespace blink 1501 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698