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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 1868013002: Percent height in auto height containers no longer computes as auto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@303728-6
Patch Set: Updated Created 4 years, 8 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 LayoutUnit computeLogicalWidthUsing(SizeType, const Length& logicalWidth, La youtUnit availableLogicalWidth, const LayoutBlock* containingBlock) const; 697 LayoutUnit computeLogicalWidthUsing(SizeType, const Length& logicalWidth, La youtUnit availableLogicalWidth, const LayoutBlock* containingBlock) const;
698 LayoutUnit computeLogicalHeightUsing(SizeType, const Length& height, LayoutU nit intrinsicContentHeight) const; 698 LayoutUnit computeLogicalHeightUsing(SizeType, const Length& height, LayoutU nit intrinsicContentHeight) const;
699 LayoutUnit computeContentLogicalHeight(SizeType, const Length& height, Layou tUnit intrinsicContentHeight) const; 699 LayoutUnit computeContentLogicalHeight(SizeType, const Length& height, Layou tUnit intrinsicContentHeight) const;
700 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(SizeType, const Leng th& height, LayoutUnit intrinsicContentHeight) const; 700 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(SizeType, const Leng th& height, LayoutUnit intrinsicContentHeight) const;
701 LayoutUnit computeReplacedLogicalWidthUsing(SizeType, const Length& width) c onst; 701 LayoutUnit computeReplacedLogicalWidthUsing(SizeType, const Length& width) c onst;
702 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const; 702 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const;
703 LayoutUnit computeReplacedLogicalHeightUsing(SizeType, const Length& height) const; 703 LayoutUnit computeReplacedLogicalHeightUsing(SizeType, const Length& height) const;
704 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const; 704 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const;
705 705
706 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const; 706 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const;
707 virtual LayoutUnit computeReplacedLogicalHeight() const; 707 virtual LayoutUnit computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidt h = LayoutUnit()) const;
708 708
709 bool hasDefiniteLogicalWidth() const; 709 bool hasDefiniteLogicalWidth() const;
710 bool percentageLogicalHeightIsResolvable() const; 710 bool percentageLogicalHeightIsResolvable() const;
711 bool hasDefiniteLogicalHeight() const; 711 bool hasDefiniteLogicalHeight() const;
712 LayoutUnit computePercentageLogicalHeight(const Length& height) const; 712 LayoutUnit computePercentageLogicalHeight(const Length& height) const;
713 713
714 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.) 714 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.)
715 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); } 715 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); }
716 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; 716 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const;
717 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const; 717 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const;
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 || breakValue == BreakLeft 1160 || breakValue == BreakLeft
1161 || breakValue == BreakPage 1161 || breakValue == BreakPage
1162 || breakValue == BreakRecto 1162 || breakValue == BreakRecto
1163 || breakValue == BreakRight 1163 || breakValue == BreakRight
1164 || breakValue == BreakVerso; 1164 || breakValue == BreakVerso;
1165 } 1165 }
1166 1166
1167 } // namespace blink 1167 } // namespace blink
1168 1168
1169 #endif // LayoutBox_h 1169 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698