OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 private: | 146 private: |
147 class StyleSheetAction; | 147 class StyleSheetAction; |
148 class SetStyleSheetTextAction; | 148 class SetStyleSheetTextAction; |
149 class SetPropertyTextAction; | 149 class SetPropertyTextAction; |
150 class SetRuleSelectorAction; | 150 class SetRuleSelectorAction; |
151 class AddRuleAction; | 151 class AddRuleAction; |
152 class EnableResourceClient; | 152 class EnableResourceClient; |
153 | 153 |
154 InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResource
Agent*); | 154 InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResource
Agent*); |
155 | 155 |
156 typedef HashMap<String, RefPtr<InspectorStyleSheet> > IdToInspectorStyleShee
t; | 156 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheet> >
IdToInspectorStyleSheet; |
157 typedef HashMap<String, RefPtr<InspectorStyleSheetForInlineStyle> > IdToInsp
ectorStyleSheetForInlineStyle; | 157 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheetForI
nlineStyle> > IdToInspectorStyleSheetForInlineStyle; |
158 typedef HashMap<Node*, RefPtr<InspectorStyleSheetForInlineStyle> > NodeToIns
pectorStyleSheet; // bogus "stylesheets" with elements' inline styles | 158 typedef WillBeHeapHashMap<Node*, RefPtrWillBeMember<InspectorStyleSheetForIn
lineStyle> > NodeToInspectorStyleSheet; // bogus "stylesheets" with elements' in
line styles |
159 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; | 159 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; |
160 | 160 |
161 void wasEnabled(PassRefPtr<EnableCallback>); | 161 void wasEnabled(PassRefPtr<EnableCallback>); |
162 void resetNonPersistentData(); | 162 void resetNonPersistentData(); |
163 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); | 163 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); |
164 Element* elementForId(ErrorString*, int nodeId); | 164 Element* elementForId(ErrorString*, int nodeId); |
165 void collectAllStyleSheets(Vector<InspectorStyleSheet*>&); | 165 void collectAllStyleSheets(Vector<InspectorStyleSheet*>&); |
166 void collectAllDocumentStyleSheets(Document*, Vector<CSSStyleSheet*>&); | 166 void collectAllDocumentStyleSheets(Document*, Vector<CSSStyleSheet*>&); |
167 void collectStyleSheets(CSSStyleSheet*, Vector<CSSStyleSheet*>&); | 167 void collectStyleSheets(CSSStyleSheet*, Vector<CSSStyleSheet*>&); |
168 | 168 |
(...skipping 26 matching lines...) Expand all Loading... |
195 | 195 |
196 void resetPseudoStates(); | 196 void resetPseudoStates(); |
197 | 197 |
198 InspectorFrontend::CSS* m_frontend; | 198 InspectorFrontend::CSS* m_frontend; |
199 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 199 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
200 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 200 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
201 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 201 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
202 | 202 |
203 IdToInspectorStyleSheet m_idToInspectorStyleSheet; | 203 IdToInspectorStyleSheet m_idToInspectorStyleSheet; |
204 IdToInspectorStyleSheetForInlineStyle m_idToInspectorStyleSheetForInlineStyl
e; | 204 IdToInspectorStyleSheetForInlineStyle m_idToInspectorStyleSheetForInlineStyl
e; |
205 HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > m_cssStyleSheetToInspe
ctorStyleSheet; | 205 WillBeHeapHashMap<CSSStyleSheet*, RefPtrWillBeMember<InspectorStyleSheet> >
m_cssStyleSheetToInspectorStyleSheet; |
206 typedef HashMap<Document*, OwnPtr<HashSet<CSSStyleSheet*> > > DocumentStyleS
heets; | 206 typedef HashMap<Document*, OwnPtr<HashSet<CSSStyleSheet*> > > DocumentStyleS
heets; |
207 DocumentStyleSheets m_documentToCSSStyleSheets; | 207 DocumentStyleSheets m_documentToCSSStyleSheets; |
208 HashSet<Document*> m_invalidatedDocuments; | 208 HashSet<Document*> m_invalidatedDocuments; |
209 | 209 |
210 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; | 210 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; |
211 WillBeHeapHashMap<RefPtrWillBeMember<Document>, RefPtr<InspectorStyleSheet>
> m_documentToViaInspectorStyleSheet; // "via inspector" stylesheets | 211 WillBeHeapHashMap<RefPtrWillBeMember<Document>, RefPtrWillBeMember<Inspector
StyleSheet> > m_documentToViaInspectorStyleSheet; // "via inspector" stylesheets |
212 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; | 212 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; |
213 | 213 |
214 RefPtrWillBeMember<CSSStyleSheet> m_inspectorUserAgentStyleSheet; | 214 RefPtrWillBeMember<CSSStyleSheet> m_inspectorUserAgentStyleSheet; |
215 | 215 |
216 int m_lastStyleSheetId; | 216 int m_lastStyleSheetId; |
217 int m_styleSheetsPendingMutation; | 217 int m_styleSheetsPendingMutation; |
218 bool m_styleDeclarationPendingMutation; | 218 bool m_styleDeclarationPendingMutation; |
219 bool m_creatingViaInspectorStyleSheet; | 219 bool m_creatingViaInspectorStyleSheet; |
220 bool m_isSettingStyleSheetText; | 220 bool m_isSettingStyleSheetText; |
221 | 221 |
222 friend class EnableResourceClient; | 222 friend class EnableResourceClient; |
223 friend class StyleSheetBinder; | 223 friend class StyleSheetBinder; |
224 }; | 224 }; |
225 | 225 |
226 | 226 |
227 } // namespace WebCore | 227 } // namespace WebCore |
228 | 228 |
229 #endif // !defined(InspectorCSSAgent_h) | 229 #endif // !defined(InspectorCSSAgent_h) |
OLD | NEW |