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

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

Issue 2807113002: [LayoutNG] Use NGLogical[Offset|Size] for NGFragment
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
Index: third_party/WebKit/Source/core/layout/ng/ng_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
index 8b10e25b8101cda2fd86d75caf64bc6f72112460..ccb1f760c335d61475b38a7067c990745f2da777 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
@@ -6,6 +6,8 @@
#define NGFragment_h
#include "core/CoreExport.h"
+#include "core/layout/ng/geometry/ng_logical_offset.h"
+#include "core/layout/ng/geometry/ng_logical_size.h"
#include "core/layout/ng/ng_physical_fragment.h"
#include "core/layout/ng/ng_writing_mode.h"
#include "platform/LayoutUnit.h"
@@ -22,12 +24,10 @@ class CORE_EXPORT NGFragment {
}
// Returns the border-box size.
- LayoutUnit InlineSize() const;
- LayoutUnit BlockSize() const;
+ NGLogicalSize Size() const;
// Returns the offset relative to the parent fragment's content-box.
- LayoutUnit InlineOffset() const;
- LayoutUnit BlockOffset() const;
+ NGLogicalOffset Offset() const;
NGPhysicalFragment::NGFragmentType Type() const;

Powered by Google App Engine
This is Rietveld 408576698