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 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 static Length InitialLineHeight() { return Length(-100.0, kPercent); } | 1620 static Length InitialLineHeight() { return Length(-100.0, kPercent); } |
1621 Length LineHeight() const; | 1621 Length LineHeight() const; |
1622 void SetLineHeight(const Length& specified_line_height); | 1622 void SetLineHeight(const Length& specified_line_height); |
1623 | 1623 |
1624 // List style properties. | 1624 // List style properties. |
1625 // list-style-image | 1625 // list-style-image |
1626 static StyleImage* InitialListStyleImage() { return 0; } | 1626 static StyleImage* InitialListStyleImage() { return 0; } |
1627 StyleImage* ListStyleImage() const; | 1627 StyleImage* ListStyleImage() const; |
1628 void SetListStyleImage(StyleImage*); | 1628 void SetListStyleImage(StyleImage*); |
1629 | 1629 |
1630 // orphans | |
1631 static short InitialOrphans() { return 2; } | |
1632 short Orphans() const { return rare_inherited_data_->orphans_; } | |
1633 void SetOrphans(short o) { SET_VAR(rare_inherited_data_, orphans_, o); } | |
1634 | |
1635 // widows | |
1636 static short InitialWidows() { return 2; } | |
1637 short Widows() const { return rare_inherited_data_->widows_; } | |
1638 void SetWidows(short w) { SET_VAR(rare_inherited_data_, widows_, w); } | |
1639 | |
1640 // overflow-wrap (aka word-wrap) | 1630 // overflow-wrap (aka word-wrap) |
1641 static EOverflowWrap InitialOverflowWrap() { return EOverflowWrap::kNormal; } | 1631 static EOverflowWrap InitialOverflowWrap() { return EOverflowWrap::kNormal; } |
1642 EOverflowWrap OverflowWrap() const { | 1632 EOverflowWrap OverflowWrap() const { |
1643 return static_cast<EOverflowWrap>(rare_inherited_data_->overflow_wrap_); | 1633 return static_cast<EOverflowWrap>(rare_inherited_data_->overflow_wrap_); |
1644 } | 1634 } |
1645 void SetOverflowWrap(EOverflowWrap b) { | 1635 void SetOverflowWrap(EOverflowWrap b) { |
1646 SET_VAR(rare_inherited_data_, overflow_wrap_, static_cast<unsigned>(b)); | 1636 SET_VAR(rare_inherited_data_, overflow_wrap_, static_cast<unsigned>(b)); |
1647 } | 1637 } |
1648 | 1638 |
1649 // quotes | 1639 // quotes |
(...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3778 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3768 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3779 } | 3769 } |
3780 | 3770 |
3781 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3771 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3782 return PseudoBitsInternal() & kElementPseudoIdMask; | 3772 return PseudoBitsInternal() & kElementPseudoIdMask; |
3783 } | 3773 } |
3784 | 3774 |
3785 } // namespace blink | 3775 } // namespace blink |
3786 | 3776 |
3787 #endif // ComputedStyle_h | 3777 #endif // ComputedStyle_h |
OLD | NEW |