| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef StyleSelfAlignmentData_h | 5 #ifndef StyleSelfAlignmentData_h |
| 6 #define StyleSelfAlignmentData_h | 6 #define StyleSelfAlignmentData_h |
| 7 | 7 |
| 8 #include "core/style/ComputedStyleConstants.h" | 8 #include "core/style/ComputedStyleConstants.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class StyleSelfAlignmentData { | 13 class StyleSelfAlignmentData { |
| 14 DISALLOW_NEW(); | 14 DISALLOW_NEW(); |
| 15 | 15 |
| 16 public: | 16 public: |
| 17 // Style data for Self-Aligment and Default-Alignment properties: align-{self, | 17 // Style data for Self-Aligment and Default-Alignment properties: align-{self, |
| 18 // items}, justify-{self, items}. | 18 // items}, justify-{self, items}. |
| 19 // [ <self-position> && <overflow-position>? ] | [ legacy && [ left | right | | 19 // [ <self-position> && <overflow-position>? ] | [ legacy && [ left | right | |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 private: | 53 private: |
| 54 unsigned position_ : 4; // ItemPosition | 54 unsigned position_ : 4; // ItemPosition |
| 55 unsigned position_type_ : 1; // Whether or not alignment uses the 'legacy' | 55 unsigned position_type_ : 1; // Whether or not alignment uses the 'legacy' |
| 56 // keyword. | 56 // keyword. |
| 57 unsigned overflow_ : 2; // OverflowAlignment | 57 unsigned overflow_ : 2; // OverflowAlignment |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| 61 | 61 |
| 62 #endif // StyleSelfAlignmentData_h | 62 #endif // StyleSelfAlignmentData_h |
| OLD | NEW |