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

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

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.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index c76c483e2a4f812f9bbbc5272d6db8bf74ee599a..0018f2238d33f724fe020711155c9b4c0c89c3a9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -826,10 +826,14 @@ public:
struct IntrinsicSizingInfo {
STACK_ALLOCATED();
- IntrinsicSizingInfo() : aspectRatio(0) {}
+ IntrinsicSizingInfo() : aspectRatio(0), emptyWidth(false), emptyHeight(false) {}
FloatSize size;
double aspectRatio;
+ bool emptyWidth;
+ bool emptyHeight;
+
+ void transpose();
};
// Computes the logical intrinsic sizing information.

Powered by Google App Engine
This is Rietveld 408576698