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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 void willMutateRules(); | 99 void willMutateRules(); |
100 void didMutateRules(); | 100 void didMutateRules(); |
101 void didMutate(); | 101 void didMutate(); |
102 | 102 |
103 void clearChildRuleCSSOMWrappers(); | 103 void clearChildRuleCSSOMWrappers(); |
104 void reattachChildRuleCSSOMWrappers(); | 104 void reattachChildRuleCSSOMWrappers(); |
105 | 105 |
106 StyleSheetContents* contents() const { return m_contents.get(); } | 106 StyleSheetContents* contents() const { return m_contents.get(); } |
107 | 107 |
108 void reportMemoryUsage(MemoryObjectInfo*) const; | |
109 | |
110 private: | 108 private: |
111 CSSStyleSheet(PassRefPtr<StyleSheetContents>, CSSImportRule* ownerRule); | 109 CSSStyleSheet(PassRefPtr<StyleSheetContents>, CSSImportRule* ownerRule); |
112 CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode, bool isInline
Stylesheet); | 110 CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode, bool isInline
Stylesheet); |
113 | 111 |
114 virtual bool isCSSStyleSheet() const { return true; } | 112 virtual bool isCSSStyleSheet() const { return true; } |
115 virtual String type() const { return "text/css"; } | 113 virtual String type() const { return "text/css"; } |
116 | 114 |
117 bool canAccessRules() const; | 115 bool canAccessRules() const; |
118 | 116 |
119 RefPtr<StyleSheetContents> m_contents; | 117 RefPtr<StyleSheetContents> m_contents; |
(...skipping 26 matching lines...) Expand all Loading... |
146 | 144 |
147 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() | 145 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() |
148 { | 146 { |
149 if (m_styleSheet) | 147 if (m_styleSheet) |
150 m_styleSheet->didMutateRules(); | 148 m_styleSheet->didMutateRules(); |
151 } | 149 } |
152 | 150 |
153 } // namespace | 151 } // namespace |
154 | 152 |
155 #endif | 153 #endif |
OLD | NEW |