| 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);
|
|
|
|
|