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 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 } | 1661 } |
1662 void SetTextCombine(TextCombine v) { | 1662 void SetTextCombine(TextCombine v) { |
1663 SET_VAR(rare_inherited_data_, text_combine_, v); | 1663 SET_VAR(rare_inherited_data_, text_combine_, v); |
1664 } | 1664 } |
1665 | 1665 |
1666 // text-indent | 1666 // text-indent |
1667 static Length InitialTextIndent() { return Length(kFixed); } | 1667 static Length InitialTextIndent() { return Length(kFixed); } |
1668 static TextIndentLine InitialTextIndentLine() { | 1668 static TextIndentLine InitialTextIndentLine() { |
1669 return TextIndentLine::kFirstLine; | 1669 return TextIndentLine::kFirstLine; |
1670 } | 1670 } |
1671 static TextIndentType InitialTextIndentType() { return kTextIndentNormal; } | 1671 static TextIndentType InitialTextIndentType() { |
| 1672 return TextIndentType::kNormal; |
| 1673 } |
1672 const Length& TextIndent() const { | 1674 const Length& TextIndent() const { |
1673 return rare_inherited_data_->text_indent_; | 1675 return rare_inherited_data_->text_indent_; |
1674 } | 1676 } |
1675 TextIndentLine GetTextIndentLine() const { | 1677 TextIndentLine GetTextIndentLine() const { |
1676 return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_); | 1678 return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_); |
1677 } | 1679 } |
1678 TextIndentType GetTextIndentType() const { | 1680 TextIndentType GetTextIndentType() const { |
1679 return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_); | 1681 return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_); |
1680 } | 1682 } |
1681 void SetTextIndent(const Length& v) { | 1683 void SetTextIndent(const Length& v) { |
1682 SET_VAR(rare_inherited_data_, text_indent_, v); | 1684 SET_VAR(rare_inherited_data_, text_indent_, v); |
1683 } | 1685 } |
1684 void SetTextIndentLine(TextIndentLine v) { | 1686 void SetTextIndentLine(TextIndentLine v) { |
1685 SET_VAR(rare_inherited_data_, text_indent_line_, static_cast<unsigned>(v)); | 1687 SET_VAR(rare_inherited_data_, text_indent_line_, static_cast<unsigned>(v)); |
1686 } | 1688 } |
1687 void SetTextIndentType(TextIndentType v) { | 1689 void SetTextIndentType(TextIndentType v) { |
1688 SET_VAR(rare_inherited_data_, text_indent_type_, v); | 1690 SET_VAR(rare_inherited_data_, text_indent_type_, static_cast<unsigned>(v)); |
1689 } | 1691 } |
1690 | 1692 |
1691 // text-justify | 1693 // text-justify |
1692 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } | 1694 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } |
1693 TextJustify GetTextJustify() const { | 1695 TextJustify GetTextJustify() const { |
1694 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); | 1696 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); |
1695 } | 1697 } |
1696 void SetTextJustify(TextJustify v) { | 1698 void SetTextJustify(TextJustify v) { |
1697 SET_VAR(rare_inherited_data_, text_justify_, v); | 1699 SET_VAR(rare_inherited_data_, text_justify_, v); |
1698 } | 1700 } |
(...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3749 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3751 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3750 } | 3752 } |
3751 | 3753 |
3752 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3754 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3753 return PseudoBitsInternal() & kElementPseudoIdMask; | 3755 return PseudoBitsInternal() & kElementPseudoIdMask; |
3754 } | 3756 } |
3755 | 3757 |
3756 } // namespace blink | 3758 } // namespace blink |
3757 | 3759 |
3758 #endif // ComputedStyle_h | 3760 #endif // ComputedStyle_h |
OLD | NEW |