| 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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2200 available_height = View()->ViewLogicalHeightForPercentages(); | 2200 available_height = View()->ViewLogicalHeightForPercentages(); |
| 2201 } | 2201 } |
| 2202 | 2202 |
| 2203 return available_height; | 2203 return available_height; |
| 2204 } | 2204 } |
| 2205 | 2205 |
| 2206 bool LayoutBlock::HasDefiniteLogicalHeight() const { | 2206 bool LayoutBlock::HasDefiniteLogicalHeight() const { |
| 2207 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1); | 2207 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1); |
| 2208 } | 2208 } |
| 2209 | 2209 |
| 2210 bool LayoutBlock::NeedsPreferredWidthsRecalculation() const { |
| 2211 return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) || |
| 2212 LayoutBox::NeedsPreferredWidthsRecalculation(); |
| 2213 } |
| 2214 |
| 2210 } // namespace blink | 2215 } // namespace blink |
| OLD | NEW |