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

Unified Diff: third_party/WebKit/Source/core/layout/ng/geometry/ng_physical_offset.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/geometry/ng_physical_offset.h
diff --git a/third_party/WebKit/Source/core/layout/ng/geometry/ng_physical_offset.h b/third_party/WebKit/Source/core/layout/ng/geometry/ng_physical_offset.h
index 5c4818cc3e4c24b98127f669c1e26d079ad4f732..d81cb81e5479972ee5fee1a9df4d68fd7ea3eb1f 100644
--- a/third_party/WebKit/Source/core/layout/ng/geometry/ng_physical_offset.h
+++ b/third_party/WebKit/Source/core/layout/ng/geometry/ng_physical_offset.h
@@ -7,10 +7,13 @@
#include "core/CoreExport.h"
+#include "core/layout/ng/ng_writing_mode.h"
#include "platform/LayoutUnit.h"
namespace blink {
+struct NGLogicalOffset;
+
// NGPhysicalOffset is the position of a rect (typically a fragment) relative to
// its parent rect in the physical coordinate system.
struct CORE_EXPORT NGPhysicalOffset {
@@ -20,6 +23,8 @@ struct CORE_EXPORT NGPhysicalOffset {
LayoutUnit left;
LayoutUnit top;
+ NGLogicalOffset ConvertToLogical(NGWritingMode mode) const;
+
NGPhysicalOffset operator+(const NGPhysicalOffset& other) const;
NGPhysicalOffset& operator+=(const NGPhysicalOffset& other);

Powered by Google App Engine
This is Rietveld 408576698