OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 // flex-basis (aka -webkit-flex-basis) | 732 // flex-basis (aka -webkit-flex-basis) |
733 static Length InitialFlexBasis() { return Length(kAuto); } | 733 static Length InitialFlexBasis() { return Length(kAuto); } |
734 const Length& FlexBasis() const { | 734 const Length& FlexBasis() const { |
735 return rare_non_inherited_data_->flexible_box_data_->flex_basis_; | 735 return rare_non_inherited_data_->flexible_box_data_->flex_basis_; |
736 } | 736 } |
737 void SetFlexBasis(const Length& length) { | 737 void SetFlexBasis(const Length& length) { |
738 SET_NESTED_VAR(rare_non_inherited_data_, flexible_box_data_, flex_basis_, | 738 SET_NESTED_VAR(rare_non_inherited_data_, flexible_box_data_, flex_basis_, |
739 length); | 739 length); |
740 } | 740 } |
741 | 741 |
| 742 // flex-direction (aka -webkit-flex-direction) |
| 743 static EFlexDirection InitialFlexDirection() { return EFlexDirection::kRow; } |
| 744 EFlexDirection FlexDirection() const { |
| 745 return static_cast<EFlexDirection>( |
| 746 rare_non_inherited_data_->flexible_box_data_->flex_direction_); |
| 747 } |
| 748 void SetFlexDirection(EFlexDirection direction) { |
| 749 SET_NESTED_VAR(rare_non_inherited_data_, flexible_box_data_, |
| 750 flex_direction_, static_cast<unsigned>(direction)); |
| 751 } |
| 752 |
742 // flex-grow (aka -webkit-flex-grow) | 753 // flex-grow (aka -webkit-flex-grow) |
743 static float InitialFlexGrow() { return 0; } | 754 static float InitialFlexGrow() { return 0; } |
744 float FlexGrow() const { | 755 float FlexGrow() const { |
745 return rare_non_inherited_data_->flexible_box_data_->flex_grow_; | 756 return rare_non_inherited_data_->flexible_box_data_->flex_grow_; |
746 } | 757 } |
747 void SetFlexGrow(float f) { | 758 void SetFlexGrow(float f) { |
748 SET_NESTED_VAR(rare_non_inherited_data_, flexible_box_data_, flex_grow_, f); | 759 SET_NESTED_VAR(rare_non_inherited_data_, flexible_box_data_, flex_grow_, f); |
749 } | 760 } |
750 | 761 |
751 // flex-shrink (aka -webkit-flex-shrink) | 762 // flex-shrink (aka -webkit-flex-shrink) |
(...skipping 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3113 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3124 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3114 } | 3125 } |
3115 | 3126 |
3116 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3127 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3117 return PseudoBitsInternal() & kElementPseudoIdMask; | 3128 return PseudoBitsInternal() & kElementPseudoIdMask; |
3118 } | 3129 } |
3119 | 3130 |
3120 } // namespace blink | 3131 } // namespace blink |
3121 | 3132 |
3122 #endif // ComputedStyle_h | 3133 #endif // ComputedStyle_h |
OLD | NEW |