Index: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
index feba20988d9c968c54c49e513113436250ec246f..ec14e4c67a30f3fc3d3b87bdf63afb135779daf3 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
@@ -245,7 +245,6 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl |
if (isSVGTextElement(*element)) |
style.clearMultiCol(); |
} |
- adjustStyleForAlignment(style, parentStyle); |
} |
void StyleAdjuster::adjustStyleForFirstLetter(ComputedStyle& style) |
@@ -260,42 +259,6 @@ void StyleAdjuster::adjustStyleForFirstLetter(ComputedStyle& style) |
style.setPosition(StaticPosition); |
} |
-void StyleAdjuster::adjustStyleForAlignment(ComputedStyle& style, const ComputedStyle& parentStyle) |
-{ |
- bool isFlexOrGrid = style.isDisplayFlexibleOrGridBox(); |
- bool absolutePositioned = style.position() == AbsolutePosition; |
- |
- // If the inherited value of justify-items includes the legacy keyword, 'auto' |
- // computes to the the inherited value. |
- // Otherwise, auto computes to: |
- // - 'stretch' for flex containers and grid containers. |
- // - 'start' for everything else. |
- if (style.justifyItemsPosition() == ItemPositionAuto) { |
- if (parentStyle.justifyItemsPositionType() == LegacyPosition) |
- style.setJustifyItems(parentStyle.justifyItems()); |
- else if (isFlexOrGrid) |
- style.setJustifyItemsPosition(ItemPositionStretch); |
- } |
- |
- // The 'auto' keyword computes to 'stretch' on absolutely-positioned elements, |
- // and to the computed value of justify-items on the parent (minus |
- // any legacy keywords) on all other boxes. |
- if (style.justifySelfPosition() == ItemPositionAuto) { |
- if (absolutePositioned) |
- style.setJustifySelfPosition(ItemPositionStretch); |
- else |
- style.setJustifySelf(parentStyle.justifyItems()); |
- } |
- |
- // The 'auto' keyword computes to: |
- // - 'stretch' for flex containers and grid containers, |
- // - 'start' for everything else. |
- if (style.alignItemsPosition() == ItemPositionAuto) { |
- if (isFlexOrGrid) |
- style.setAlignItemsPosition(ItemPositionStretch); |
- } |
-} |
- |
void StyleAdjuster::adjustStyleForHTMLElement(ComputedStyle& style, const ComputedStyle& parentStyle, HTMLElement& element) |
{ |
// <div> and <span> are the most common elements on the web, we skip all the work for them. |