| Index: third_party/WebKit/Source/core/layout/ng/ng_units.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units.cc b/third_party/WebKit/Source/core/layout/ng/ng_units.cc
|
| index bec0be56fa5bf76fa1712c4429e0ff315608a529..f8ecccdce2b182987feac638972af04a53d03445 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_units.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_units.cc
|
| @@ -71,6 +71,10 @@ bool NGBoxStrut::operator==(const NGBoxStrut& other) const {
|
| std::tie(inline_start, inline_end, block_start, block_end);
|
| }
|
|
|
| +LayoutUnit NGMarginStrut::BlockEndSum() const {
|
| + return margin_block_end + negative_margin_block_end;
|
| +}
|
| +
|
| void NGMarginStrut::AppendMarginBlockStart(const LayoutUnit& value) {
|
| if (value < 0) {
|
| negative_margin_block_start =
|
| @@ -112,6 +116,10 @@ String NGMarginStrut::ToString() const {
|
| negative_margin_block_end.toInt());
|
| }
|
|
|
| +bool NGMarginStrut::IsEmpty() const {
|
| + return *this == NGMarginStrut();
|
| +}
|
| +
|
| bool NGMarginStrut::operator==(const NGMarginStrut& other) const {
|
| return std::tie(other.margin_block_start, other.margin_block_end,
|
| other.negative_margin_block_start,
|
|
|