Index: Source/core/layout/LayoutMenuList.cpp |
diff --git a/Source/core/layout/LayoutMenuList.cpp b/Source/core/layout/LayoutMenuList.cpp |
index 67b0b043eddb8a6a1d6581e092b60d5df63d60a9..da9ce3dba734420dfd5fe566407a4b530226ca7d 100644 |
--- a/Source/core/layout/LayoutMenuList.cpp |
+++ b/Source/core/layout/LayoutMenuList.cpp |
@@ -109,7 +109,7 @@ void LayoutMenuList::adjustInnerStyle() |
// Use margin:auto instead of align-items:center to get safe centering, i.e. |
// when the content overflows, treat it the same as align-items: flex-start. |
// But we only do that for the cases where html.css would otherwise use center. |
- if (style()->alignItems() == ItemPositionCenter) { |
+ if (style()->alignItemsPosition() == ItemPositionCenter) { |
innerStyle.setMarginTop(Length()); |
innerStyle.setMarginBottom(Length()); |
innerStyle.setAlignSelf(ItemPositionFlexStart); |