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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 newDisplay = EDisplay::Flex; 1991 newDisplay = EDisplay::Flex;
1992 } else { 1992 } else {
1993 newBox = LayoutBlockFlow::createAnonymous(&parent->document()); 1993 newBox = LayoutBlockFlow::createAnonymous(&parent->document());
1994 newDisplay = EDisplay::Block; 1994 newDisplay = EDisplay::Block;
1995 } 1995 }
1996 1996
1997 RefPtr<ComputedStyle> newStyle = 1997 RefPtr<ComputedStyle> newStyle =
1998 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), 1998 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(),
1999 newDisplay); 1999 newDisplay);
2000 parent->updateAnonymousChildStyle(*newBox, *newStyle); 2000 parent->updateAnonymousChildStyle(*newBox, *newStyle);
2001 newBox->setStyle(newStyle.release()); 2001 newBox->setStyle(std::move(newStyle));
2002 return newBox; 2002 return newBox;
2003 } 2003 }
2004 2004
2005 bool LayoutBlock::recalcNormalFlowChildOverflowIfNeeded( 2005 bool LayoutBlock::recalcNormalFlowChildOverflowIfNeeded(
2006 LayoutObject* layoutObject) { 2006 LayoutObject* layoutObject) {
2007 if (layoutObject->isOutOfFlowPositioned() || 2007 if (layoutObject->isOutOfFlowPositioned() ||
2008 !layoutObject->needsOverflowRecalcAfterStyleChange()) 2008 !layoutObject->needsOverflowRecalcAfterStyleChange())
2009 return false; 2009 return false;
2010 2010
2011 ASSERT(layoutObject->isLayoutBlock()); 2011 ASSERT(layoutObject->isLayoutBlock());
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 } 2200 }
2201 2201
2202 return availableHeight; 2202 return availableHeight;
2203 } 2203 }
2204 2204
2205 bool LayoutBlock::hasDefiniteLogicalHeight() const { 2205 bool LayoutBlock::hasDefiniteLogicalHeight() const {
2206 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1); 2206 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1);
2207 } 2207 }
2208 2208
2209 } // namespace blink 2209 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698