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 r ights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
430 | 430 |
431 Order rtlOrdering() const { return static_cast<Order>(inherited_flags.m_rtlO rdering); } | 431 Order rtlOrdering() const { return static_cast<Order>(inherited_flags.m_rtlO rdering); } |
432 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; } | 432 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; } |
433 | 433 |
434 bool isStyleAvailable() const; | 434 bool isStyleAvailable() const; |
435 | 435 |
436 bool hasAnyPublicPseudoStyles() const; | 436 bool hasAnyPublicPseudoStyles() const; |
437 bool hasPseudoStyle(PseudoId pseudo) const; | 437 bool hasPseudoStyle(PseudoId pseudo) const; |
438 void setHasPseudoStyle(PseudoId pseudo); | 438 void setHasPseudoStyle(PseudoId pseudo); |
439 bool hasUniquePseudoStyle() const; | 439 bool hasUniquePseudoStyle() const; |
440 bool hasContentPseudoStyle() const; | |
440 | 441 |
441 // attribute getter methods | 442 // attribute getter methods |
442 | 443 |
443 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags._ effectiveDisplay); } | 444 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags._ effectiveDisplay); } |
444 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited _flags._originalDisplay); } | 445 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited _flags._originalDisplay); } |
445 | 446 |
446 Length left() const { return surround->offset.left(); } | 447 Length left() const { return surround->offset.left(); } |
447 Length right() const { return surround->offset.right(); } | 448 Length right() const { return surround->offset.right(); } |
448 Length top() const { return surround->offset.top(); } | 449 Length top() const { return surround->offset.top(); } |
449 Length bottom() const { return surround->offset.bottom(); } | 450 Length bottom() const { return surround->offset.bottom(); } |
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1883 return (1 << (pseudo - 1)) & noninherited_flags._pseudoBits; | 1884 return (1 << (pseudo - 1)) & noninherited_flags._pseudoBits; |
1884 } | 1885 } |
1885 | 1886 |
1886 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) | 1887 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) |
1887 { | 1888 { |
1888 ASSERT(pseudo > NOPSEUDO); | 1889 ASSERT(pseudo > NOPSEUDO); |
1889 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); | 1890 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); |
1890 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); | 1891 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); |
1891 } | 1892 } |
1892 | 1893 |
1894 inline bool RenderStyle::hasContentPseudoStyle() const | |
1895 { | |
1896 return noninherited_flags._pseudoBits & CONTENT_PSEUDOID_MASK; | |
esprehn
2014/01/24 22:53:49
CONTENT is confusing since we have ::content which
rune
2014/01/25 00:00:38
Done.
| |
1897 } | |
1898 | |
1893 } // namespace WebCore | 1899 } // namespace WebCore |
1894 | 1900 |
1895 #endif // RenderStyle_h | 1901 #endif // RenderStyle_h |
OLD | NEW |