Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index 8bb840744a271fc962481aca33a32537d20fafdb..d378055571e227c3a8acd529ba593d916df18764 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -1381,7 +1381,10 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject { |
void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
void updateFromStyle() override; |
- virtual ItemPosition selfAlignmentNormalBehavior() const { |
+ virtual ItemPosition selfAlignmentNormalBehavior( |
+ const LayoutBox* child = nullptr) const { |
+ if (child && child->isLayoutReplaced()) |
jfernandez
2017/03/01 12:46:49
I think this logic is grid specific, so it should
Manuel Rego
2017/03/01 17:57:07
Yeah, good point, it's grid layout specific so I'v
|
+ return ItemPositionStart; |
return ItemPositionStretch; |
} |