| 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, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2006, 2008, 2012 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool isViewportRule() const { return type() == Viewport; } | 69 bool isViewportRule() const { return type() == Viewport; } |
| 70 #endif | 70 #endif |
| 71 bool isImportRule() const { return type() == Import; } | 71 bool isImportRule() const { return type() == Import; } |
| 72 bool isHostRule() const { return type() == HostInternal; } | 72 bool isHostRule() const { return type() == HostInternal; } |
| 73 bool isFilterRule() const { return type() == Filter; } | 73 bool isFilterRule() const { return type() == Filter; } |
| 74 | 74 |
| 75 PassRefPtr<StyleRuleBase> copy() const; | 75 PassRefPtr<StyleRuleBase> copy() const; |
| 76 | 76 |
| 77 int sourceLine() const { return m_sourceLine; } | 77 int sourceLine() const { return m_sourceLine; } |
| 78 | 78 |
| 79 void ref() |
| 80 { |
| 81 refBase(); |
| 82 } |
| 83 |
| 79 void deref() | 84 void deref() |
| 80 { | 85 { |
| 81 if (derefBase()) | 86 if (derefBase()) |
| 82 destroy(); | 87 destroy(); |
| 83 } | 88 } |
| 84 | 89 |
| 85 // FIXME: There shouldn't be any need for the null parent version. | 90 // FIXME: There shouldn't be any need for the null parent version. |
| 86 PassRefPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet = 0) const
; | 91 PassRefPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet = 0) const
; |
| 87 PassRefPtr<CSSRule> createCSSOMWrapper(CSSRule* parentRule) const; | 92 PassRefPtr<CSSRule> createCSSOMWrapper(CSSRule* parentRule) const; |
| 88 | 93 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 StyleRuleFilter(const String&); | 337 StyleRuleFilter(const String&); |
| 333 StyleRuleFilter(const StyleRuleFilter&); | 338 StyleRuleFilter(const StyleRuleFilter&); |
| 334 | 339 |
| 335 String m_filterName; | 340 String m_filterName; |
| 336 RefPtr<StylePropertySet> m_properties; | 341 RefPtr<StylePropertySet> m_properties; |
| 337 }; | 342 }; |
| 338 | 343 |
| 339 } // namespace WebCore | 344 } // namespace WebCore |
| 340 | 345 |
| 341 #endif // StyleRule_h | 346 #endif // StyleRule_h |
| OLD | NEW |