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

Unified Diff: third_party/WebKit/Source/platform/LengthBox.h

Issue 2705143002: Split StyleSurroundData::offset into separate members. (Closed)
Patch Set: Created 3 years, 10 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/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;
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleSurroundData.cpp ('k') | third_party/WebKit/Source/platform/LengthBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698