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

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

Issue 914993003: [CSS Grid Layout] Determine definite/indefinite size properly in nested grids (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename isRenderView() calls to isLayoutView() Created 5 years, 9 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 LayoutUnit computeContentLogicalHeight(const Length& height, LayoutUnit intr insicContentHeight) const; 454 LayoutUnit computeContentLogicalHeight(const Length& height, LayoutUnit intr insicContentHeight) const;
455 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(const Length& height , LayoutUnit intrinsicContentHeight) const; 455 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(const Length& height , LayoutUnit intrinsicContentHeight) const;
456 LayoutUnit computeReplacedLogicalWidthUsing(const Length& width) const; 456 LayoutUnit computeReplacedLogicalWidthUsing(const Length& width) const;
457 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const; 457 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const;
458 LayoutUnit computeReplacedLogicalHeightUsing(const Length& height) const; 458 LayoutUnit computeReplacedLogicalHeightUsing(const Length& height) const;
459 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const; 459 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const;
460 460
461 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const; 461 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const;
462 virtual LayoutUnit computeReplacedLogicalHeight() const; 462 virtual LayoutUnit computeReplacedLogicalHeight() const;
463 463
464 static bool logicalWidthIsResolvableFromBlock(const LayoutBlock* containingB lock);
465 bool hasDefiniteLogicalWidth() const; 464 bool hasDefiniteLogicalWidth() const;
466 static bool percentageLogicalHeightIsResolvableFromBlock(const LayoutBlock* containingBlock, bool outOfFlowPositioned); 465 static bool percentageLogicalHeightIsResolvableFromBlock(const LayoutBlock* containingBlock, bool outOfFlowPositioned);
467 bool hasDefiniteLogicalHeight() const; 466 bool hasDefiniteLogicalHeight() const;
468 LayoutUnit computePercentageLogicalHeight(const Length& height) const; 467 LayoutUnit computePercentageLogicalHeight(const Length& height) const;
469 468
470 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.) 469 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.)
471 virtual LayoutUnit availableLogicalWidth() const { return contentLogicalWidt h(); } 470 virtual LayoutUnit availableLogicalWidth() const { return contentLogicalWidt h(); }
472 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; 471 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const;
473 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const; 472 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const;
474 473
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 if (UNLIKELY(inlineBoxWrapper() != 0)) 850 if (UNLIKELY(inlineBoxWrapper() != 0))
852 deleteLineBoxWrapper(); 851 deleteLineBoxWrapper();
853 } 852 }
854 853
855 ensureRareData().m_inlineBoxWrapper = boxWrapper; 854 ensureRareData().m_inlineBoxWrapper = boxWrapper;
856 } 855 }
857 856
858 } // namespace blink 857 } // namespace blink
859 858
860 #endif // LayoutBox_h 859 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css-grid-layout/percent-intrinsic-track-breadth-expected.txt ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698