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

Side by Side Diff: third_party/WebKit/Source/platform/LengthBox.h

Issue 2705143002: Split StyleSurroundData::offset into separate members. (Closed)
Patch Set: Fix typo Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 Copyright (c) 2012, Google Inc. All rights reserved. 4 Copyright (c) 2012, Google Inc. All rights reserved.
5 5
6 This library is free software; you can redistribute it and/or 6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either 8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version. 9 version 2 of the License, or (at your option) any later version.
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 LengthBox(const Length& t, const Length& r, const Length& b, const Length& l) 47 LengthBox(const Length& t, const Length& r, const Length& b, const Length& l)
48 : m_left(l), m_right(r), m_top(t), m_bottom(b) {} 48 : m_left(l), m_right(r), m_top(t), m_bottom(b) {}
49 49
50 LengthBox(int t, int r, int b, int l) 50 LengthBox(int t, int r, int b, int l)
51 : m_left(Length(l, Fixed)), 51 : m_left(Length(l, Fixed)),
52 m_right(Length(r, Fixed)), 52 m_right(Length(r, Fixed)),
53 m_top(Length(t, Fixed)), 53 m_top(Length(t, Fixed)),
54 m_bottom(Length(b, Fixed)) {} 54 m_bottom(Length(b, Fixed)) {}
55 55
56 // For use in ComputedStyle.h
57 static const Length& logicalLeft(WritingMode,
58 const Length& left,
59 const Length& top);
60 static const Length& logicalRight(WritingMode,
61 const Length& right,
62 const Length& bottom);
63 static const Length& before(WritingMode,
64 const Length& top,
65 const Length& left,
66 const Length& right);
67 static const Length& after(WritingMode,
68 const Length& bottom,
69 const Length& left,
70 const Length& right);
71
56 const Length& left() const { return m_left; } 72 const Length& left() const { return m_left; }
57 const Length& right() const { return m_right; } 73 const Length& right() const { return m_right; }
58 const Length& top() const { return m_top; } 74 const Length& top() const { return m_top; }
59 const Length& bottom() const { return m_bottom; } 75 const Length& bottom() const { return m_bottom; }
60 76
61 const Length& logicalLeft(WritingMode) const; 77 const Length& logicalLeft(WritingMode) const;
62 const Length& logicalRight(WritingMode) const; 78 const Length& logicalRight(WritingMode) const;
63 79
64 const Length& before(WritingMode) const; 80 const Length& before(WritingMode) const;
65 const Length& after(WritingMode) const; 81 const Length& after(WritingMode) const;
(...skipping 17 matching lines...) Expand all
83 // Must be public for SET_VAR in ComputedStyle.h 99 // Must be public for SET_VAR in ComputedStyle.h
84 Length m_left; 100 Length m_left;
85 Length m_right; 101 Length m_right;
86 Length m_top; 102 Length m_top;
87 Length m_bottom; 103 Length m_bottom;
88 }; 104 };
89 105
90 } // namespace blink 106 } // namespace blink
91 107
92 #endif // LengthBox_h 108 #endif // LengthBox_h
OLDNEW
« 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