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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size.h

Issue 2721613003: [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Don't export NGBoxStrut for now Created 3 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/ng/ng_min_max_content_size.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size.h b/third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size.h
new file mode 100644
index 0000000000000000000000000000000000000000..2fb0a930647c661d5b005a6e77ba7c1891e6cc2a
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size.h
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MinMaxContentSize_h
+#define MinMaxContentSize_h
+
+#include "core/CoreExport.h"
+#include "core/layout/ng/ng_writing_mode.h"
+#include "platform/LayoutUnit.h"
+
+namespace blink {
+
+struct CORE_EXPORT MinMaxContentSize {
+ LayoutUnit min_content;
+ LayoutUnit max_content;
+ LayoutUnit ShrinkToFit(LayoutUnit available_size) const;
+ bool operator==(const MinMaxContentSize& other) const;
+};
+
+CORE_EXPORT std::ostream& operator<<(std::ostream&, const MinMaxContentSize&);
+
+} // namespace blink
+
+#endif // MinMaxContentSize_h

Powered by Google App Engine
This is Rietveld 408576698