| 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 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1681 // text-justify | 1681 // text-justify |
| 1682 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } | 1682 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } |
| 1683 TextJustify GetTextJustify() const { | 1683 TextJustify GetTextJustify() const { |
| 1684 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); | 1684 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); |
| 1685 } | 1685 } |
| 1686 void SetTextJustify(TextJustify v) { | 1686 void SetTextJustify(TextJustify v) { |
| 1687 SET_VAR(rare_inherited_data_, text_justify_, v); | 1687 SET_VAR(rare_inherited_data_, text_justify_, v); |
| 1688 } | 1688 } |
| 1689 | 1689 |
| 1690 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation) | 1690 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation) |
| 1691 static TextOrientation InitialTextOrientation() { | 1691 bool SetTextOrientation(ETextOrientation); |
| 1692 return TextOrientation::kMixed; | |
| 1693 } | |
| 1694 TextOrientation GetTextOrientation() const { | |
| 1695 return static_cast<TextOrientation>( | |
| 1696 rare_inherited_data_->text_orientation_); | |
| 1697 } | |
| 1698 bool SetTextOrientation(TextOrientation); | |
| 1699 | 1692 |
| 1700 // text-shadow | 1693 // text-shadow |
| 1701 static ShadowList* InitialTextShadow() { return 0; } | 1694 static ShadowList* InitialTextShadow() { return 0; } |
| 1702 ShadowList* TextShadow() const { | 1695 ShadowList* TextShadow() const { |
| 1703 return rare_inherited_data_->text_shadow_.Get(); | 1696 return rare_inherited_data_->text_shadow_.Get(); |
| 1704 } | 1697 } |
| 1705 void SetTextShadow(RefPtr<ShadowList>); | 1698 void SetTextShadow(RefPtr<ShadowList>); |
| 1706 | 1699 |
| 1707 bool TextShadowDataEquivalent(const ComputedStyle&) const; | 1700 bool TextShadowDataEquivalent(const ComputedStyle&) const; |
| 1708 | 1701 |
| (...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3597 | 3590 |
| 3598 inline bool ComputedStyle::IsSharable() const { | 3591 inline bool ComputedStyle::IsSharable() const { |
| 3599 if (Unique()) | 3592 if (Unique()) |
| 3600 return false; | 3593 return false; |
| 3601 if (HasUniquePseudoStyle()) | 3594 if (HasUniquePseudoStyle()) |
| 3602 return false; | 3595 return false; |
| 3603 return true; | 3596 return true; |
| 3604 } | 3597 } |
| 3605 | 3598 |
| 3606 inline bool ComputedStyle::SetTextOrientation( | 3599 inline bool ComputedStyle::SetTextOrientation( |
| 3607 TextOrientation text_orientation) { | 3600 ETextOrientation text_orientation) { |
| 3608 if (compareEqual(rare_inherited_data_->text_orientation_, | 3601 if (compareEqual(rare_inherited_data_->text_orientation_, |
| 3609 static_cast<unsigned>(text_orientation))) | 3602 static_cast<unsigned>(text_orientation))) |
| 3610 return false; | 3603 return false; |
| 3611 | 3604 |
| 3612 rare_inherited_data_.Access()->text_orientation_ = | 3605 rare_inherited_data_.Access()->text_orientation_ = |
| 3613 static_cast<unsigned>(text_orientation); | 3606 static_cast<unsigned>(text_orientation); |
| 3614 return true; | 3607 return true; |
| 3615 } | 3608 } |
| 3616 | 3609 |
| 3617 inline bool ComputedStyle::HasAnyPublicPseudoStyles() const { | 3610 inline bool ComputedStyle::HasAnyPublicPseudoStyles() const { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3632 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3625 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3633 } | 3626 } |
| 3634 | 3627 |
| 3635 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3628 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3636 return PseudoBitsInternal() & kElementPseudoIdMask; | 3629 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3637 } | 3630 } |
| 3638 | 3631 |
| 3639 } // namespace blink | 3632 } // namespace blink |
| 3640 | 3633 |
| 3641 #endif // ComputedStyle_h | 3634 #endif // ComputedStyle_h |
| OLD | NEW |