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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 ~RuleMutationScope(); | 101 ~RuleMutationScope(); |
102 | 102 |
103 private: | 103 private: |
104 RawPtrWillBeMember<CSSStyleSheet> m_styleSheet; | 104 RawPtrWillBeMember<CSSStyleSheet> m_styleSheet; |
105 }; | 105 }; |
106 | 106 |
107 void willMutateRules(); | 107 void willMutateRules(); |
108 void didMutateRules(); | 108 void didMutateRules(); |
109 void didMutate(StyleSheetUpdateType = PartialRuleUpdate); | 109 void didMutate(StyleSheetUpdateType = PartialRuleUpdate); |
110 | 110 |
111 void clearChildRuleCSSOMWrappers(); | |
112 | |
113 StyleSheetContents* contents() const { return m_contents.get(); } | 111 StyleSheetContents* contents() const { return m_contents.get(); } |
114 | 112 |
115 bool isInline() const { return m_isInlineStylesheet; } | 113 bool isInline() const { return m_isInlineStylesheet; } |
116 TextPosition startPositionInSource() const { return m_startPosition; } | 114 TextPosition startPositionInSource() const { return m_startPosition; } |
117 | 115 |
118 bool sheetLoaded(); | 116 bool sheetLoaded(); |
119 bool loadCompleted() const { return m_loadCompleted; } | 117 bool loadCompleted() const { return m_loadCompleted; } |
120 void startLoadingDynamicSheet(); | 118 void startLoadingDynamicSheet(); |
| 119 void setText(const String&); |
121 | 120 |
122 DECLARE_VIRTUAL_TRACE(); | 121 DECLARE_VIRTUAL_TRACE(); |
123 | 122 |
124 private: | 123 private: |
125 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own
erRule); | 124 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own
erRule); |
126 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b
ool isInlineStylesheet, const TextPosition& startPosition); | 125 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b
ool isInlineStylesheet, const TextPosition& startPosition); |
127 | 126 |
128 bool isCSSStyleSheet() const override { return true; } | 127 bool isCSSStyleSheet() const override { return true; } |
129 String type() const override { return "text/css"; } | 128 String type() const override { return "text/css"; } |
130 | 129 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 { | 169 { |
171 if (m_styleSheet) | 170 if (m_styleSheet) |
172 m_styleSheet->didMutateRules(); | 171 m_styleSheet->didMutateRules(); |
173 } | 172 } |
174 | 173 |
175 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 174 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
176 | 175 |
177 } // namespace blink | 176 } // namespace blink |
178 | 177 |
179 #endif | 178 #endif |
OLD | NEW |