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

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

Issue 2808863002: [LayoutNG] Use NGLogicalSize in NGBlockLayoutAlgorithm (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_size.h
diff --git a/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_size.h b/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_size.h
index 448cd9d0bd9c0eef3ef6b236fcd4f549882fd807..af0e5e987a8a685d462a02ea32f398548ed99da3 100644
--- a/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_size.h
+++ b/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_size.h
@@ -6,6 +6,7 @@
#define NGLogicalSize_h
#include "core/CoreExport.h"
+#include "core/layout/ng/geometry/ng_box_strut.h"
#include "core/layout/ng/ng_writing_mode.h"
#include "platform/LayoutUnit.h"
@@ -32,6 +33,12 @@ struct CORE_EXPORT NGLogicalSize {
}
};
+inline NGLogicalSize& operator-=(NGLogicalSize& a, const NGBoxStrut& b) {
+ a.inline_size -= b.InlineSum();
+ a.block_size -= b.BlockSum();
+ return a;
+}
+
CORE_EXPORT std::ostream& operator<<(std::ostream&, const NGLogicalSize&);
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698