Chromium Code Reviews| Index: third_party/WebKit/Source/platform/LengthBox.h |
| diff --git a/third_party/WebKit/Source/platform/LengthBox.h b/third_party/WebKit/Source/platform/LengthBox.h |
| index a57d28719391f314e763e540cf51b9c755d727c0..e79f9a0ee19e1e969df5c184e70b02cbbaabd306 100644 |
| --- a/third_party/WebKit/Source/platform/LengthBox.h |
| +++ b/third_party/WebKit/Source/platform/LengthBox.h |
| @@ -68,6 +68,24 @@ class PLATFORM_EXPORT LengthBox { |
| const Length& over(WritingMode) const; |
| const Length& under(WritingMode) const; |
| + // For use in ComputedStyle.h |
| + // TODO(shend): these are independent of LengthBox, make them nonmember |
|
nainar
2017/02/21 02:28:37
could that be done in this patch? Having these fun
|
| + // functions. |
| + static const Length& logicalLeft(WritingMode, |
| + const Length& left, |
| + const Length& top); |
| + static const Length& logicalRight(WritingMode, |
| + const Length& right, |
| + const Length& bottom); |
| + static const Length& before(WritingMode, |
| + const Length& top, |
| + const Length& left, |
| + const Length& right); |
| + static const Length& after(WritingMode, |
| + const Length& bottom, |
| + const Length& left, |
| + const Length& right); |
| + |
| bool operator==(const LengthBox& o) const { |
| return m_left == o.m_left && m_right == o.m_right && m_top == o.m_top && |
| m_bottom == o.m_bottom; |