| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) | 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 bool hasCachedSelectorText() const { return m_hasCachedSelectorText; } | 102 bool hasCachedSelectorText() const { return m_hasCachedSelectorText; } |
| 103 void setHasCachedSelectorText(bool hasCachedSelectorText) const { m_hasCache
dSelectorText = hasCachedSelectorText; } | 103 void setHasCachedSelectorText(bool hasCachedSelectorText) const { m_hasCache
dSelectorText = hasCachedSelectorText; } |
| 104 | 104 |
| 105 const CSSParserContext& parserContext() const; | 105 const CSSParserContext& parserContext() const; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 mutable unsigned char m_hasCachedSelectorText : 1; | 108 mutable unsigned char m_hasCachedSelectorText : 1; |
| 109 unsigned char m_parentIsRule : 1; | 109 unsigned char m_parentIsRule : 1; |
| 110 | 110 |
| 111 // These should be Members, but no Members in unions. |
| 111 union { | 112 union { |
| 112 CSSRule* m_parentRule; // Should be Member, but no Members in unions. | 113 CSSRule* m_parentRule; |
| 113 CSSStyleSheet* m_parentStyleSheet; | 114 CSSStyleSheet* m_parentStyleSheet; |
| 114 }; | 115 }; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ | 118 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ |
| 118 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME,
rule.type() == CSSRule::TYPE_NAME) | 119 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME,
rule.type() == CSSRule::TYPE_NAME) |
| 119 | 120 |
| 120 } // namespace WebCore | 121 } // namespace WebCore |
| 121 | 122 |
| 122 #endif // CSSRule_h | 123 #endif // CSSRule_h |
| OLD | NEW |