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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 bool HasWillChangeTransformHint() const; | 1693 bool HasWillChangeTransformHint() const; |
1694 | 1694 |
1695 // Hyphen utility functions. | 1695 // Hyphen utility functions. |
1696 Hyphenation* GetHyphenation() const; | 1696 Hyphenation* GetHyphenation() const; |
1697 const AtomicString& HyphenString() const; | 1697 const AtomicString& HyphenString() const; |
1698 | 1698 |
1699 // text-align utility functions. | 1699 // text-align utility functions. |
1700 using ComputedStyleBase::GetTextAlign; | 1700 using ComputedStyleBase::GetTextAlign; |
1701 ETextAlign GetTextAlign(bool is_last_line) const; | 1701 ETextAlign GetTextAlign(bool is_last_line) const; |
1702 | 1702 |
| 1703 // text-indent utility functions. |
| 1704 bool ShouldUseTextIndent(bool is_first_line, |
| 1705 bool is_after_forced_break) const; |
| 1706 |
1703 // Line-height utility functions. | 1707 // Line-height utility functions. |
1704 const Length& SpecifiedLineHeight() const; | 1708 const Length& SpecifiedLineHeight() const; |
1705 int ComputedLineHeight() const; | 1709 int ComputedLineHeight() const; |
1706 LayoutUnit ComputedLineHeightAsFixed() const; | 1710 LayoutUnit ComputedLineHeightAsFixed() const; |
1707 | 1711 |
1708 // Width/height utility functions. | 1712 // Width/height utility functions. |
1709 const Length& LogicalWidth() const { | 1713 const Length& LogicalWidth() const { |
1710 return IsHorizontalWritingMode() ? Width() : Height(); | 1714 return IsHorizontalWritingMode() ? Width() : Height(); |
1711 } | 1715 } |
1712 const Length& LogicalHeight() const { | 1716 const Length& LogicalHeight() const { |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2871 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 2875 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
2872 } | 2876 } |
2873 | 2877 |
2874 inline bool ComputedStyle::HasPseudoElementStyle() const { | 2878 inline bool ComputedStyle::HasPseudoElementStyle() const { |
2875 return PseudoBitsInternal() & kElementPseudoIdMask; | 2879 return PseudoBitsInternal() & kElementPseudoIdMask; |
2876 } | 2880 } |
2877 | 2881 |
2878 } // namespace blink | 2882 } // namespace blink |
2879 | 2883 |
2880 #endif // ComputedStyle_h | 2884 #endif // ComputedStyle_h |
OLD | NEW |