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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 // -webkit-mask-box-image-width | 1669 // -webkit-mask-box-image-width |
1670 const BorderImageLengthBox& MaskBoxImageWidth() const { | 1670 const BorderImageLengthBox& MaskBoxImageWidth() const { |
1671 return rare_non_inherited_data_->mask_box_image_.BorderSlices(); | 1671 return rare_non_inherited_data_->mask_box_image_.BorderSlices(); |
1672 } | 1672 } |
1673 void SetMaskBoxImageWidth(const BorderImageLengthBox& slices) { | 1673 void SetMaskBoxImageWidth(const BorderImageLengthBox& slices) { |
1674 rare_non_inherited_data_.Access()->mask_box_image_.SetBorderSlices(slices); | 1674 rare_non_inherited_data_.Access()->mask_box_image_.SetBorderSlices(slices); |
1675 } | 1675 } |
1676 | 1676 |
1677 // Inherited properties. | 1677 // Inherited properties. |
1678 | 1678 |
1679 // Border-spacing properties. | |
1680 // -webkit-border-horizontal-spacing | |
1681 static short InitialHorizontalBorderSpacing() { return 0; } | |
1682 short HorizontalBorderSpacing() const; | |
1683 void SetHorizontalBorderSpacing(short); | |
1684 | |
1685 // -webkit-border-vertical-spacing | |
1686 static short InitialVerticalBorderSpacing() { return 0; } | |
1687 short VerticalBorderSpacing() const; | |
1688 void SetVerticalBorderSpacing(short); | |
1689 | |
1690 // color | 1679 // color |
1691 static Color InitialColor() { return Color::kBlack; } | 1680 static Color InitialColor() { return Color::kBlack; } |
1692 void SetColor(const Color&); | 1681 void SetColor(const Color&); |
1693 | 1682 |
1694 // hyphens | 1683 // hyphens |
1695 static Hyphens InitialHyphens() { return kHyphensManual; } | 1684 static Hyphens InitialHyphens() { return kHyphensManual; } |
1696 Hyphens GetHyphens() const { | 1685 Hyphens GetHyphens() const { |
1697 return static_cast<Hyphens>(rare_inherited_data_->hyphens_); | 1686 return static_cast<Hyphens>(rare_inherited_data_->hyphens_); |
1698 } | 1687 } |
1699 void SetHyphens(Hyphens h) { SET_VAR(rare_inherited_data_, hyphens_, h); } | 1688 void SetHyphens(Hyphens h) { SET_VAR(rare_inherited_data_, hyphens_, h); } |
(...skipping 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3813 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3802 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3814 } | 3803 } |
3815 | 3804 |
3816 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3805 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3817 return PseudoBitsInternal() & kElementPseudoIdMask; | 3806 return PseudoBitsInternal() & kElementPseudoIdMask; |
3818 } | 3807 } |
3819 | 3808 |
3820 } // namespace blink | 3809 } // namespace blink |
3821 | 3810 |
3822 #endif // ComputedStyle_h | 3811 #endif // ComputedStyle_h |
OLD | NEW |