Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 1679743006: Expand IntrinsicSizingInfo for SVG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propagate-whether-svg-has
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c6ecfa3ed0b82496657721ca645ce1183c8cdfc0..7e7698462e6838790c49f769b904b695a1317adf 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -4719,4 +4719,11 @@ void LayoutBox::clearPercentHeightDescendants()
}
}
+void LayoutBox::IntrinsicSizingInfo::transpose()
+{
+ size = size.transposedSize();
+ aspectRatio = aspectRatio ? 1 / aspectRatio : 0;
+ std::swap(emptyWidth, emptyHeight);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698