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

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

Issue 2790283003: Reset constraint space's BFC offset if block creates a new FC (Closed)
Patch Set: git rebase-update 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_box_strut.h
diff --git a/third_party/WebKit/Source/core/layout/ng/geometry/ng_box_strut.h b/third_party/WebKit/Source/core/layout/ng/geometry/ng_box_strut.h
index 2e14309b431cedbb9662bba3d15ca1ee25420f5b..fe6bf1f845f8fe34102e13d36a4196f43f52df3f 100644
--- a/third_party/WebKit/Source/core/layout/ng/geometry/ng_box_strut.h
+++ b/third_party/WebKit/Source/core/layout/ng/geometry/ng_box_strut.h
@@ -6,6 +6,7 @@
#define NGBoxStrut_h
#include "core/CoreExport.h"
+#include "core/layout/ng/geometry/ng_logical_offset.h"
#include "core/layout/ng/ng_writing_mode.h"
#include "platform/LayoutUnit.h"
#include "platform/text/TextDirection.h"
@@ -28,6 +29,10 @@ struct CORE_EXPORT NGBoxStrut {
LayoutUnit InlineSum() const { return inline_start + inline_end; }
LayoutUnit BlockSum() const { return block_start + block_end; }
+ NGLogicalOffset InlineBlockStartOffset() {
+ return {inline_start, block_start};
+ }
+
bool IsEmpty() const;
// The following two operators exist primarily to have an easy way to access
« 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