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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2257223002: Allow using overrideContainingBlockContentLogical{Width,Height} outside of grid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_box.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index a937370a4c0a89180fc907f7102ce38e54e8549a..0c0c4a6bb10792e02cf8cc3a007abdab506dc195 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -3016,7 +3016,7 @@ LayoutUnit LayoutBox::computeReplacedLogicalHeightUsing(SizeType sizeType, const
availableHeight = containingBlockLogicalHeightForPositioned(toLayoutBoxModelObject(cb));
} else if (stretchedHeight != -1) {
availableHeight = stretchedHeight;
- } else if (isGridItem() && hasOverrideContainingBlockLogicalHeight()) {
jfernandez 2016/08/19 21:14:24 I think it's correct, from the layout logic point
Manuel Rego 2016/08/22 10:31:09 The isGridItem() was added in: https://codereview.
+ } else if (hasOverrideContainingBlockLogicalHeight()) {
availableHeight = overrideContainingBlockContentLogicalHeight();
} else {
availableHeight = containingBlockLogicalHeightForContent(IncludeMarginBorderPadding);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_box.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698