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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 static EBoxAlignment InitialBoxAlign() { return BSTRETCH; } | 792 static EBoxAlignment InitialBoxAlign() { return BSTRETCH; } |
793 EBoxAlignment BoxAlign() const { | 793 EBoxAlignment BoxAlign() const { |
794 return static_cast<EBoxAlignment>( | 794 return static_cast<EBoxAlignment>( |
795 rare_non_inherited_data_->deprecated_flexible_box_->align); | 795 rare_non_inherited_data_->deprecated_flexible_box_->align); |
796 } | 796 } |
797 void SetBoxAlign(EBoxAlignment a) { | 797 void SetBoxAlign(EBoxAlignment a) { |
798 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, align, | 798 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, align, |
799 a); | 799 a); |
800 } | 800 } |
801 | 801 |
802 // -webkit-box-decoration-break | |
803 static EBoxDecorationBreak InitialBoxDecorationBreak() { | |
804 return EBoxDecorationBreak::kSlice; | |
805 } | |
806 EBoxDecorationBreak BoxDecorationBreak() const { | |
807 return static_cast<EBoxDecorationBreak>(box_data_->box_decoration_break_); | |
808 } | |
809 void SetBoxDecorationBreak(EBoxDecorationBreak b) { | |
810 SET_VAR(box_data_, box_decoration_break_, static_cast<unsigned>(b)); | |
811 } | |
812 | |
813 // -webkit-box-lines | 802 // -webkit-box-lines |
814 static EBoxLines InitialBoxLines() { return SINGLE; } | 803 static EBoxLines InitialBoxLines() { return SINGLE; } |
815 EBoxLines BoxLines() const { | 804 EBoxLines BoxLines() const { |
816 return static_cast<EBoxLines>( | 805 return static_cast<EBoxLines>( |
817 rare_non_inherited_data_->deprecated_flexible_box_->lines); | 806 rare_non_inherited_data_->deprecated_flexible_box_->lines); |
818 } | 807 } |
819 void SetBoxLines(EBoxLines lines) { | 808 void SetBoxLines(EBoxLines lines) { |
820 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, lines, | 809 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, lines, |
821 lines); | 810 lines); |
822 } | 811 } |
(...skipping 2902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3725 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3714 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3726 } | 3715 } |
3727 | 3716 |
3728 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3717 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3729 return PseudoBitsInternal() & kElementPseudoIdMask; | 3718 return PseudoBitsInternal() & kElementPseudoIdMask; |
3730 } | 3719 } |
3731 | 3720 |
3732 } // namespace blink | 3721 } // namespace blink |
3733 | 3722 |
3734 #endif // ComputedStyle_h | 3723 #endif // ComputedStyle_h |
OLD | NEW |