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 cc651c30bedbc4ec0176463249145f2bd5c54006..eee5c67d699e50a4204fd83cbea6f5b0cc4bc0a6 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -4720,4 +4720,11 @@ void LayoutBox::clearPercentHeightDescendants() |
} |
} |
+void LayoutBox::IntrinsicSizingInfo::transpose() |
+{ |
+ size = size.transposedSize(); |
+ aspectRatio = aspectRatio ? 1 / aspectRatio : 0; |
+ std::swap(hasWidth, hasHeight); |
+} |
+ |
} // namespace blink |