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 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2416 bool hasViewportUnits() const { | 2416 bool hasViewportUnits() const { |
2417 return m_nonInheritedData.m_hasViewportUnits; | 2417 return m_nonInheritedData.m_hasViewportUnits; |
2418 } | 2418 } |
2419 void setHasViewportUnits(bool hasViewportUnits = true) const { | 2419 void setHasViewportUnits(bool hasViewportUnits = true) const { |
2420 m_nonInheritedData.m_hasViewportUnits = hasViewportUnits; | 2420 m_nonInheritedData.m_hasViewportUnits = hasViewportUnits; |
2421 } | 2421 } |
2422 | 2422 |
2423 bool hasRemUnits() const { return m_nonInheritedData.m_hasRemUnits; } | 2423 bool hasRemUnits() const { return m_nonInheritedData.m_hasRemUnits; } |
2424 void setHasRemUnits() const { m_nonInheritedData.m_hasRemUnits = true; } | 2424 void setHasRemUnits() const { m_nonInheritedData.m_hasRemUnits = true; } |
2425 | 2425 |
2426 bool emptyState() const { return m_nonInheritedData.m_emptyState; } | 2426 bool emptyState() const { return m_emptyState; } |
2427 void setEmptyState(bool b) { | 2427 void setEmptyState(bool b) { |
2428 setUnique(); | 2428 setUnique(); |
2429 m_nonInheritedData.m_emptyState = b; | 2429 m_emptyState = b; |
2430 } | 2430 } |
2431 | 2431 |
2432 bool hasInlineTransform() const { | 2432 bool hasInlineTransform() const { |
2433 return m_rareNonInheritedData->m_hasInlineTransform; | 2433 return m_rareNonInheritedData->m_hasInlineTransform; |
2434 } | 2434 } |
2435 void setHasInlineTransform(bool b) { | 2435 void setHasInlineTransform(bool b) { |
2436 SET_VAR(m_rareNonInheritedData, m_hasInlineTransform, b); | 2436 SET_VAR(m_rareNonInheritedData, m_hasInlineTransform, b); |
2437 } | 2437 } |
2438 | 2438 |
2439 bool hasCompositorProxy() const { | 2439 bool hasCompositorProxy() const { |
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3795 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId); | 3795 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId); |
3796 } | 3796 } |
3797 | 3797 |
3798 inline bool ComputedStyle::hasPseudoElementStyle() const { | 3798 inline bool ComputedStyle::hasPseudoElementStyle() const { |
3799 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 3799 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
3800 } | 3800 } |
3801 | 3801 |
3802 } // namespace blink | 3802 } // namespace blink |
3803 | 3803 |
3804 #endif // ComputedStyle_h | 3804 #endif // ComputedStyle_h |
OLD | NEW |