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 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1676 | 1676 |
1677 // speak | 1677 // speak |
1678 static ESpeak InitialSpeak() { return ESpeak::kNormal; } | 1678 static ESpeak InitialSpeak() { return ESpeak::kNormal; } |
1679 ESpeak Speak() const { | 1679 ESpeak Speak() const { |
1680 return static_cast<ESpeak>(rare_inherited_data_->speak_); | 1680 return static_cast<ESpeak>(rare_inherited_data_->speak_); |
1681 } | 1681 } |
1682 void SetSpeak(ESpeak s) { | 1682 void SetSpeak(ESpeak s) { |
1683 SET_VAR(rare_inherited_data_, speak_, static_cast<unsigned>(s)); | 1683 SET_VAR(rare_inherited_data_, speak_, static_cast<unsigned>(s)); |
1684 } | 1684 } |
1685 | 1685 |
1686 // tab-size | |
1687 static TabSize InitialTabSize() { return TabSize(8); } | |
1688 TabSize GetTabSize() const { return rare_inherited_data_->tab_size_; } | |
1689 void SetTabSize(TabSize size) { | |
1690 SET_VAR(rare_inherited_data_, tab_size_, size); | |
1691 } | |
1692 | |
1693 // text-align-last | 1686 // text-align-last |
1694 static TextAlignLast InitialTextAlignLast() { return kTextAlignLastAuto; } | 1687 static TextAlignLast InitialTextAlignLast() { return kTextAlignLastAuto; } |
1695 TextAlignLast GetTextAlignLast() const { | 1688 TextAlignLast GetTextAlignLast() const { |
1696 return static_cast<TextAlignLast>(rare_inherited_data_->text_align_last_); | 1689 return static_cast<TextAlignLast>(rare_inherited_data_->text_align_last_); |
1697 } | 1690 } |
1698 void SetTextAlignLast(TextAlignLast v) { | 1691 void SetTextAlignLast(TextAlignLast v) { |
1699 SET_VAR(rare_inherited_data_, text_align_last_, v); | 1692 SET_VAR(rare_inherited_data_, text_align_last_, v); |
1700 } | 1693 } |
1701 | 1694 |
1702 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine) | 1695 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine) |
(...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3780 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3773 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3781 } | 3774 } |
3782 | 3775 |
3783 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3776 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3784 return PseudoBitsInternal() & kElementPseudoIdMask; | 3777 return PseudoBitsInternal() & kElementPseudoIdMask; |
3785 } | 3778 } |
3786 | 3779 |
3787 } // namespace blink | 3780 } // namespace blink |
3788 | 3781 |
3789 #endif // ComputedStyle_h | 3782 #endif // ComputedStyle_h |
OLD | NEW |