| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |