| 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 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1731 // text-justify | 1731 // text-justify |
| 1732 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } | 1732 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } |
| 1733 TextJustify GetTextJustify() const { | 1733 TextJustify GetTextJustify() const { |
| 1734 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); | 1734 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); |
| 1735 } | 1735 } |
| 1736 void SetTextJustify(TextJustify v) { | 1736 void SetTextJustify(TextJustify v) { |
| 1737 SET_VAR(rare_inherited_data_, text_justify_, v); | 1737 SET_VAR(rare_inherited_data_, text_justify_, v); |
| 1738 } | 1738 } |
| 1739 | 1739 |
| 1740 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation) | 1740 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation) |
| 1741 static TextOrientation InitialTextOrientation() { | 1741 bool SetTextOrientation(ETextOrientation); |
| 1742 return TextOrientation::kMixed; | |
| 1743 } | |
| 1744 TextOrientation GetTextOrientation() const { | |
| 1745 return static_cast<TextOrientation>( | |
| 1746 rare_inherited_data_->text_orientation_); | |
| 1747 } | |
| 1748 bool SetTextOrientation(TextOrientation); | |
| 1749 | 1742 |
| 1750 // text-shadow | 1743 // text-shadow |
| 1751 static ShadowList* InitialTextShadow() { return 0; } | 1744 static ShadowList* InitialTextShadow() { return 0; } |
| 1752 ShadowList* TextShadow() const { | 1745 ShadowList* TextShadow() const { |
| 1753 return rare_inherited_data_->text_shadow_.Get(); | 1746 return rare_inherited_data_->text_shadow_.Get(); |
| 1754 } | 1747 } |
| 1755 void SetTextShadow(RefPtr<ShadowList>); | 1748 void SetTextShadow(RefPtr<ShadowList>); |
| 1756 | 1749 |
| 1757 bool TextShadowDataEquivalent(const ComputedStyle&) const; | 1750 bool TextShadowDataEquivalent(const ComputedStyle&) const; |
| 1758 | 1751 |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3746 | 3739 |
| 3747 inline bool ComputedStyle::IsSharable() const { | 3740 inline bool ComputedStyle::IsSharable() const { |
| 3748 if (Unique()) | 3741 if (Unique()) |
| 3749 return false; | 3742 return false; |
| 3750 if (HasUniquePseudoStyle()) | 3743 if (HasUniquePseudoStyle()) |
| 3751 return false; | 3744 return false; |
| 3752 return true; | 3745 return true; |
| 3753 } | 3746 } |
| 3754 | 3747 |
| 3755 inline bool ComputedStyle::SetTextOrientation( | 3748 inline bool ComputedStyle::SetTextOrientation( |
| 3756 TextOrientation text_orientation) { | 3749 ETextOrientation text_orientation) { |
| 3757 if (compareEqual(rare_inherited_data_->text_orientation_, | 3750 if (compareEqual(rare_inherited_data_->text_orientation_, |
| 3758 static_cast<unsigned>(text_orientation))) | 3751 static_cast<unsigned>(text_orientation))) |
| 3759 return false; | 3752 return false; |
| 3760 | 3753 |
| 3761 rare_inherited_data_.Access()->text_orientation_ = | 3754 rare_inherited_data_.Access()->text_orientation_ = |
| 3762 static_cast<unsigned>(text_orientation); | 3755 static_cast<unsigned>(text_orientation); |
| 3763 return true; | 3756 return true; |
| 3764 } | 3757 } |
| 3765 | 3758 |
| 3766 inline bool ComputedStyle::HasAnyPublicPseudoStyles() const { | 3759 inline bool ComputedStyle::HasAnyPublicPseudoStyles() const { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3781 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3774 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3782 } | 3775 } |
| 3783 | 3776 |
| 3784 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3777 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3785 return PseudoBitsInternal() & kElementPseudoIdMask; | 3778 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3786 } | 3779 } |
| 3787 | 3780 |
| 3788 } // namespace blink | 3781 } // namespace blink |
| 3789 | 3782 |
| 3790 #endif // ComputedStyle_h | 3783 #endif // ComputedStyle_h |
| OLD | NEW |