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

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

Issue 2705143002: Split StyleSurroundData::offset into separate members. (Closed)
Patch Set: Fix typo Created 3 years, 9 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..075527936174977a2dd20fdf178375c04ca345c2 100644
--- a/third_party/WebKit/Source/platform/LengthBox.h
+++ b/third_party/WebKit/Source/platform/LengthBox.h
@@ -53,6 +53,22 @@ class PLATFORM_EXPORT LengthBox {
m_top(Length(t, Fixed)),
m_bottom(Length(b, Fixed)) {}
+ // For use in ComputedStyle.h
+ 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);
+
const Length& left() const { return m_left; }
const Length& right() const { return m_right; }
const Length& top() const { return m_top; }
« 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