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 c95355321073624881a6c982cb9ec15b59b40077..3e368eedc64a24f984c5de33686579133ff28e03 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -2360,13 +2360,12 @@ LayoutUnit LayoutBox::computeLogicalWidthUsing(SizeType widthType, const Length& |
static bool columnFlexItemHasStretchAlignment(const LayoutObject* flexitem) |
{ |
- LayoutObject* parent = flexitem->parent(); |
// auto margins mean we don't stretch. Note that this function will only be used for |
// widths, so we don't have to check marginBefore/marginAfter. |
- ASSERT(parent->style()->isColumnFlexDirection()); |
+ DCHECK(flexitem->parent()->style()->isColumnFlexDirection()); |
if (flexitem->style()->marginStart().isAuto() || flexitem->style()->marginEnd().isAuto()) |
return false; |
- return flexitem->style()->alignSelfPosition() == ItemPositionStretch || (flexitem->style()->alignSelfPosition() == ItemPositionAuto && parent->style()->alignItemsPosition() == ItemPositionStretch); |
+ return flexitem->styleRef().resolvedAlignSelf(ItemPositionStretch).position() == ItemPositionStretch; |
} |
static bool isStretchingColumnFlexItem(const LayoutObject* flexitem) |
@@ -2394,8 +2393,8 @@ bool LayoutBox::hasStretchedLogicalWidth() const |
return false; |
} |
if (cb->isHorizontalWritingMode() != isHorizontalWritingMode()) |
- return ComputedStyle::resolveAlignment(cb->styleRef(), style, ItemPositionStretch) == ItemPositionStretch; |
- return ComputedStyle::resolveJustification(cb->styleRef(), style, ItemPositionStretch) == ItemPositionStretch; |
+ return style.resolvedAlignSelf(ItemPositionStretch).position() == ItemPositionStretch; |
+ return style.resolvedJustifySelf(ItemPositionStretch).position() == ItemPositionStretch; |
} |
bool LayoutBox::sizesLogicalWidthToFitContent(const Length& logicalWidth) const |