| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 PassRefPtr<CSSRuleList> rules(); | 66 PassRefPtr<CSSRuleList> rules(); |
| 67 int addRule(const String& selector, const String& style, int index, Exceptio
nCode&); | 67 int addRule(const String& selector, const String& style, int index, Exceptio
nCode&); |
| 68 int addRule(const String& selector, const String& style, ExceptionCode&); | 68 int addRule(const String& selector, const String& style, ExceptionCode&); |
| 69 void removeRule(unsigned index, ExceptionCode& ec) { deleteRule(index, ec);
} | 69 void removeRule(unsigned index, ExceptionCode& ec) { deleteRule(index, ec);
} |
| 70 | 70 |
| 71 // For CSSRuleList. | 71 // For CSSRuleList. |
| 72 unsigned length() const; | 72 unsigned length() const; |
| 73 CSSRule* item(unsigned index); | 73 CSSRule* item(unsigned index); |
| 74 | 74 |
| 75 virtual void clearOwnerNode() OVERRIDE { didMutate(); m_ownerNode = 0; } | 75 virtual void clearOwnerNode() OVERRIDE { didMutate(); m_ownerNode = 0; } |
| 76 virtual CSSImportRule* ownerRule() const OVERRIDE { return m_ownerRule; } | 76 virtual CSSRule* ownerRule() const OVERRIDE { return m_ownerRule; } |
| 77 virtual KURL baseURL() const OVERRIDE; | 77 virtual KURL baseURL() const OVERRIDE; |
| 78 virtual bool isLoading() const OVERRIDE; | 78 virtual bool isLoading() const OVERRIDE; |
| 79 | 79 |
| 80 void clearOwnerRule() { m_ownerRule = 0; } | 80 void clearOwnerRule() { m_ownerRule = 0; } |
| 81 Document* ownerDocument() const; | 81 Document* ownerDocument() const; |
| 82 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } | 82 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } |
| 83 void setMediaQueries(PassRefPtr<MediaQuerySet>); | 83 void setMediaQueries(PassRefPtr<MediaQuerySet>); |
| 84 void setTitle(const String& title) { m_title = title; } | 84 void setTitle(const String& title) { m_title = title; } |
| 85 | 85 |
| 86 class RuleMutationScope { | 86 class RuleMutationScope { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 117 | 117 |
| 118 bool canAccessRules() const; | 118 bool canAccessRules() const; |
| 119 | 119 |
| 120 RefPtr<StyleSheetContents> m_contents; | 120 RefPtr<StyleSheetContents> m_contents; |
| 121 bool m_isInlineStylesheet; | 121 bool m_isInlineStylesheet; |
| 122 bool m_isDisabled; | 122 bool m_isDisabled; |
| 123 String m_title; | 123 String m_title; |
| 124 RefPtr<MediaQuerySet> m_mediaQueries; | 124 RefPtr<MediaQuerySet> m_mediaQueries; |
| 125 | 125 |
| 126 Node* m_ownerNode; | 126 Node* m_ownerNode; |
| 127 CSSImportRule* m_ownerRule; | 127 CSSRule* m_ownerRule; |
| 128 | 128 |
| 129 TextPosition m_startPosition; | 129 TextPosition m_startPosition; |
| 130 | 130 |
| 131 mutable RefPtr<MediaList> m_mediaCSSOMWrapper; | 131 mutable RefPtr<MediaList> m_mediaCSSOMWrapper; |
| 132 mutable Vector<RefPtr<CSSRule> > m_childRuleCSSOMWrappers; | 132 mutable Vector<RefPtr<CSSRule> > m_childRuleCSSOMWrappers; |
| 133 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; | 133 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSStyleSheet* sheet) | 136 inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSStyleSheet* sheet) |
| 137 : m_styleSheet(sheet) | 137 : m_styleSheet(sheet) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 149 | 149 |
| 150 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() | 150 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() |
| 151 { | 151 { |
| 152 if (m_styleSheet) | 152 if (m_styleSheet) |
| 153 m_styleSheet->didMutateRules(); | 153 m_styleSheet->didMutateRules(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 } // namespace | 156 } // namespace |
| 157 | 157 |
| 158 #endif | 158 #endif |
| OLD | NEW |