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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2828453002: Add NeedsPreferredWidthsRecalculation() for block (Closed)
Patch Set: Add NeedsPreferredWidthsRecalculation() for block Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698