| 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 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 void SetMaskBoxImageWidth(const BorderImageLengthBox& slices) { | 1640 void SetMaskBoxImageWidth(const BorderImageLengthBox& slices) { |
| 1641 rare_non_inherited_data_.Access()->mask_box_image_.SetBorderSlices(slices); | 1641 rare_non_inherited_data_.Access()->mask_box_image_.SetBorderSlices(slices); |
| 1642 } | 1642 } |
| 1643 | 1643 |
| 1644 // Inherited properties. | 1644 // Inherited properties. |
| 1645 | 1645 |
| 1646 // color | 1646 // color |
| 1647 static Color InitialColor() { return Color::kBlack; } | 1647 static Color InitialColor() { return Color::kBlack; } |
| 1648 void SetColor(const Color&); | 1648 void SetColor(const Color&); |
| 1649 | 1649 |
| 1650 // hyphens | |
| 1651 static Hyphens InitialHyphens() { return Hyphens::kManual; } | |
| 1652 Hyphens GetHyphens() const { | |
| 1653 return static_cast<Hyphens>(rare_inherited_data_->hyphens_); | |
| 1654 } | |
| 1655 void SetHyphens(Hyphens h) { | |
| 1656 SET_VAR(rare_inherited_data_, hyphens_, static_cast<unsigned>(h)); | |
| 1657 } | |
| 1658 | |
| 1659 // -webkit-hyphenate-character | |
| 1660 static const AtomicString& InitialHyphenationString() { return g_null_atom; } | |
| 1661 const AtomicString& HyphenationString() const { | |
| 1662 return rare_inherited_data_->hyphenation_string_; | |
| 1663 } | |
| 1664 void SetHyphenationString(const AtomicString& h) { | |
| 1665 SET_VAR(rare_inherited_data_, hyphenation_string_, h); | |
| 1666 } | |
| 1667 | |
| 1668 // line-height | 1650 // line-height |
| 1669 static Length InitialLineHeight() { return Length(-100.0, kPercent); } | 1651 static Length InitialLineHeight() { return Length(-100.0, kPercent); } |
| 1670 Length LineHeight() const; | 1652 Length LineHeight() const; |
| 1671 void SetLineHeight(const Length& specified_line_height); | 1653 void SetLineHeight(const Length& specified_line_height); |
| 1672 | 1654 |
| 1673 // List style properties. | 1655 // List style properties. |
| 1674 // list-style-image | 1656 // list-style-image |
| 1675 static StyleImage* InitialListStyleImage() { return 0; } | 1657 static StyleImage* InitialListStyleImage() { return 0; } |
| 1676 StyleImage* ListStyleImage() const; | 1658 StyleImage* ListStyleImage() const; |
| 1677 void SetListStyleImage(StyleImage*); | 1659 void SetListStyleImage(StyleImage*); |
| (...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3806 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3788 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3807 } | 3789 } |
| 3808 | 3790 |
| 3809 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3791 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3810 return PseudoBitsInternal() & kElementPseudoIdMask; | 3792 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3811 } | 3793 } |
| 3812 | 3794 |
| 3813 } // namespace blink | 3795 } // namespace blink |
| 3814 | 3796 |
| 3815 #endif // ComputedStyle_h | 3797 #endif // ComputedStyle_h |
| OLD | NEW |