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

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

Issue 2824973002: Split StyleSurroundData::margin into four individual Lengths. (Closed)
Patch Set: Rebase 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const Length& right, 61 const Length& right,
62 const Length& bottom); 62 const Length& bottom);
63 static const Length& Before(WritingMode, 63 static const Length& Before(WritingMode,
64 const Length& top, 64 const Length& top,
65 const Length& left, 65 const Length& left,
66 const Length& right); 66 const Length& right);
67 static const Length& After(WritingMode, 67 static const Length& After(WritingMode,
68 const Length& bottom, 68 const Length& bottom,
69 const Length& left, 69 const Length& left,
70 const Length& right); 70 const Length& right);
71 static const Length& Start(WritingMode,
72 TextDirection,
73 const Length& top,
74 const Length& left,
75 const Length& right,
76 const Length& bottom);
77 static const Length& End(WritingMode,
78 TextDirection,
79 const Length& top,
80 const Length& left,
81 const Length& right,
82 const Length& bottom);
83 static const Length& Over(WritingMode,
84 const Length& top,
85 const Length& right);
86 static const Length& Under(WritingMode,
87 const Length& bottom,
88 const Length& left);
71 89
72 const Length& Left() const { return left_; } 90 const Length& Left() const { return left_; }
73 const Length& Right() const { return right_; } 91 const Length& Right() const { return right_; }
74 const Length& Top() const { return top_; } 92 const Length& Top() const { return top_; }
75 const Length& Bottom() const { return bottom_; } 93 const Length& Bottom() const { return bottom_; }
76 94
77 const Length& LogicalLeft(WritingMode) const; 95 const Length& LogicalLeft(WritingMode) const;
78 const Length& LogicalRight(WritingMode) const; 96 const Length& LogicalRight(WritingMode) const;
79 97
80 const Length& Before(WritingMode) const; 98 const Length& Before(WritingMode) const;
(...skipping 18 matching lines...) Expand all
99 // Must be public for SET_VAR in ComputedStyle.h 117 // Must be public for SET_VAR in ComputedStyle.h
100 Length left_; 118 Length left_;
101 Length right_; 119 Length right_;
102 Length top_; 120 Length top_;
103 Length bottom_; 121 Length bottom_;
104 }; 122 };
105 123
106 } // namespace blink 124 } // namespace blink
107 125
108 #endif // LengthBox_h 126 #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