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

Unified Diff: Source/core/rendering/RenderFlexibleBox.cpp

Issue 331203002: Blink doesn't honor percent heights on children of "align-self:stretch" flex items in a fixed-height (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New patch set Created 6 years, 6 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
Index: Source/core/rendering/RenderFlexibleBox.cpp
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp
index 59389a119b2539aaa3178732beb510348422f3d9..559be8a28ad46b477ed5ec9d04c0a039a4888f06 100644
--- a/Source/core/rendering/RenderFlexibleBox.cpp
+++ b/Source/core/rendering/RenderFlexibleBox.cpp
@@ -1375,8 +1375,10 @@ void RenderFlexibleBox::applyStretchAlignmentToChild(RenderBox* child, LayoutUni
// FIXME: Can avoid laying out here in some cases. See https://webkit.org/b/87905.
if (desiredLogicalHeight != child->logicalHeight()) {
child->setOverrideLogicalContentHeight(desiredLogicalHeight - child->borderAndPaddingLogicalHeight());
+ child->setOverrideContainingBlockContentLogicalHeight(desiredLogicalHeight);
child->setLogicalHeight(0);
child->forceChildLayout();
+ child->clearOverrideContainingBlockContentLogicalHeight();
tony 2014/06/19 16:37:46 Why do we clear the value? If we need to relayout
harpreet.sk 2014/06/20 14:54:32 I clear the value because consider the case below:
}
}
} else if (isColumnFlow() && child->style()->logicalWidth().isAuto()) {

Powered by Google App Engine
This is Rietveld 408576698