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 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 | 1712 |
1713 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine) | 1713 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine) |
1714 static TextCombine InitialTextCombine() { return kTextCombineNone; } | 1714 static TextCombine InitialTextCombine() { return kTextCombineNone; } |
1715 TextCombine GetTextCombine() const { | 1715 TextCombine GetTextCombine() const { |
1716 return static_cast<TextCombine>(rare_inherited_data_->text_combine_); | 1716 return static_cast<TextCombine>(rare_inherited_data_->text_combine_); |
1717 } | 1717 } |
1718 void SetTextCombine(TextCombine v) { | 1718 void SetTextCombine(TextCombine v) { |
1719 SET_VAR(rare_inherited_data_, text_combine_, v); | 1719 SET_VAR(rare_inherited_data_, text_combine_, v); |
1720 } | 1720 } |
1721 | 1721 |
1722 // text-indent | |
1723 static Length InitialTextIndent() { return Length(kFixed); } | |
1724 static TextIndentLine InitialTextIndentLine() { | |
1725 return TextIndentLine::kFirstLine; | |
1726 } | |
1727 static TextIndentType InitialTextIndentType() { | |
1728 return TextIndentType::kNormal; | |
1729 } | |
1730 const Length& TextIndent() const { | |
1731 return rare_inherited_data_->text_indent_; | |
1732 } | |
1733 TextIndentLine GetTextIndentLine() const { | |
1734 return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_); | |
1735 } | |
1736 TextIndentType GetTextIndentType() const { | |
1737 return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_); | |
1738 } | |
1739 void SetTextIndent(const Length& v) { | |
1740 SET_VAR(rare_inherited_data_, text_indent_, v); | |
1741 } | |
1742 void SetTextIndentLine(TextIndentLine v) { | |
1743 SET_VAR(rare_inherited_data_, text_indent_line_, static_cast<unsigned>(v)); | |
1744 } | |
1745 void SetTextIndentType(TextIndentType v) { | |
1746 SET_VAR(rare_inherited_data_, text_indent_type_, static_cast<unsigned>(v)); | |
1747 } | |
1748 | |
1749 // text-justify | 1722 // text-justify |
1750 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } | 1723 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } |
1751 TextJustify GetTextJustify() const { | 1724 TextJustify GetTextJustify() const { |
1752 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); | 1725 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); |
1753 } | 1726 } |
1754 void SetTextJustify(TextJustify v) { | 1727 void SetTextJustify(TextJustify v) { |
1755 SET_VAR(rare_inherited_data_, text_justify_, v); | 1728 SET_VAR(rare_inherited_data_, text_justify_, v); |
1756 } | 1729 } |
1757 | 1730 |
1758 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation) | 1731 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation) |
(...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3806 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3779 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3807 } | 3780 } |
3808 | 3781 |
3809 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3782 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3810 return PseudoBitsInternal() & kElementPseudoIdMask; | 3783 return PseudoBitsInternal() & kElementPseudoIdMask; |
3811 } | 3784 } |
3812 | 3785 |
3813 } // namespace blink | 3786 } // namespace blink |
3814 | 3787 |
3815 #endif // ComputedStyle_h | 3788 #endif // ComputedStyle_h |
OLD | NEW |