| Index: third_party/WebKit/Source/core/layout/ng/ng_units.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units.h b/third_party/WebKit/Source/core/layout/ng/ng_units.h
|
| index c4be357477675a71fb3df86e2c90aa5bbcbbaf2f..67071df2ca5974cfd554940fb0cd659148f8d8a6 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_units.h
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_units.h
|
| @@ -26,6 +26,13 @@ struct NGLogicalSize {
|
| LayoutUnit block_size;
|
|
|
| NGPhysicalSize ConvertToPhysical(NGWritingMode mode) const;
|
| + NGLogicalSize ConvertToWritingMode(NGWritingMode current_mode,
|
| + NGWritingMode new_mode) const {
|
| + if ((current_mode == HorizontalTopBottom) !=
|
| + (new_mode == HorizontalTopBottom))
|
| + return NGLogicalSize(block_size, inline_size);
|
| + return *this;
|
| + }
|
| };
|
|
|
| // NGLogicalOffset is the position of a rect (typically a fragment) relative to
|
|
|