| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 class SetStyleSheetTextAction; | 151 class SetStyleSheetTextAction; |
| 152 class SetPropertyTextAction; | 152 class SetPropertyTextAction; |
| 153 class SetRuleSelectorAction; | 153 class SetRuleSelectorAction; |
| 154 class AddRuleAction; | 154 class AddRuleAction; |
| 155 class InspectorResourceContentLoaderCallback; | 155 class InspectorResourceContentLoaderCallback; |
| 156 | 156 |
| 157 static void collectStyleSheets(CSSStyleSheet*, WillBeHeapVector<RawPtrWillBe
Member<CSSStyleSheet> >&); | 157 static void collectStyleSheets(CSSStyleSheet*, WillBeHeapVector<RawPtrWillBe
Member<CSSStyleSheet> >&); |
| 158 | 158 |
| 159 InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResource
Agent*); | 159 InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResource
Agent*); |
| 160 | 160 |
| 161 typedef HashMap<String, RefPtr<InspectorStyleSheet> > IdToInspectorStyleShee
t; | 161 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheet> >
IdToInspectorStyleSheet; |
| 162 typedef HashMap<String, RefPtr<InspectorStyleSheetForInlineStyle> > IdToInsp
ectorStyleSheetForInlineStyle; | 162 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheetForI
nlineStyle> > IdToInspectorStyleSheetForInlineStyle; |
| 163 typedef HashMap<Node*, RefPtr<InspectorStyleSheetForInlineStyle> > NodeToIns
pectorStyleSheet; // bogus "stylesheets" with elements' inline styles | 163 typedef WillBeHeapHashMap<RawPtrWillBeMember<Node>, RefPtrWillBeMember<Inspe
ctorStyleSheetForInlineStyle> > NodeToInspectorStyleSheet; // bogus "stylesheets
" with elements' inline styles |
| 164 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; | 164 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; |
| 165 | 165 |
| 166 void wasEnabled(); | 166 void wasEnabled(); |
| 167 void resetNonPersistentData(); | 167 void resetNonPersistentData(); |
| 168 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); | 168 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); |
| 169 Element* elementForId(ErrorString*, int nodeId); | 169 Element* elementForId(ErrorString*, int nodeId); |
| 170 | 170 |
| 171 void updateActiveStyleSheets(Document*, StyleSheetsUpdateType); | 171 void updateActiveStyleSheets(Document*, StyleSheetsUpdateType); |
| 172 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb
er<CSSStyleSheet> >&, StyleSheetsUpdateType); | 172 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb
er<CSSStyleSheet> >&, StyleSheetsUpdateType); |
| 173 | 173 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 197 | 197 |
| 198 void resetPseudoStates(); | 198 void resetPseudoStates(); |
| 199 | 199 |
| 200 InspectorFrontend::CSS* m_frontend; | 200 InspectorFrontend::CSS* m_frontend; |
| 201 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 201 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 202 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 202 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 203 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 203 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
| 204 | 204 |
| 205 IdToInspectorStyleSheet m_idToInspectorStyleSheet; | 205 IdToInspectorStyleSheet m_idToInspectorStyleSheet; |
| 206 IdToInspectorStyleSheetForInlineStyle m_idToInspectorStyleSheetForInlineStyl
e; | 206 IdToInspectorStyleSheetForInlineStyle m_idToInspectorStyleSheetForInlineStyl
e; |
| 207 WillBeHeapHashMap<RawPtrWillBeMember<CSSStyleSheet>, RefPtr<InspectorStyleSh
eet> > m_cssStyleSheetToInspectorStyleSheet; | 207 WillBeHeapHashMap<RawPtrWillBeMember<CSSStyleSheet>, RefPtrWillBeMember<Insp
ectorStyleSheet> > m_cssStyleSheetToInspectorStyleSheet; |
| 208 typedef WillBeHeapHashMap<RawPtrWillBeMember<Document>, OwnPtrWillBeMember<W
illBeHeapHashSet<RawPtrWillBeMember<CSSStyleSheet> > > > DocumentStyleSheets; | 208 typedef WillBeHeapHashMap<RawPtrWillBeMember<Document>, OwnPtrWillBeMember<W
illBeHeapHashSet<RawPtrWillBeMember<CSSStyleSheet> > > > DocumentStyleSheets; |
| 209 DocumentStyleSheets m_documentToCSSStyleSheets; | 209 DocumentStyleSheets m_documentToCSSStyleSheets; |
| 210 WillBeHeapHashSet<RawPtrWillBeMember<Document> > m_invalidatedDocuments; | 210 WillBeHeapHashSet<RawPtrWillBeMember<Document> > m_invalidatedDocuments; |
| 211 | 211 |
| 212 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; | 212 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; |
| 213 WillBeHeapHashMap<RefPtrWillBeMember<Document>, RefPtr<InspectorStyleSheet>
> m_documentToViaInspectorStyleSheet; // "via inspector" stylesheets | 213 WillBeHeapHashMap<RefPtrWillBeMember<Document>, RefPtrWillBeMember<Inspector
StyleSheet> > m_documentToViaInspectorStyleSheet; // "via inspector" stylesheets |
| 214 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; | 214 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; |
| 215 | 215 |
| 216 RefPtrWillBeMember<CSSStyleSheet> m_inspectorUserAgentStyleSheet; | 216 RefPtrWillBeMember<CSSStyleSheet> m_inspectorUserAgentStyleSheet; |
| 217 | 217 |
| 218 int m_lastStyleSheetId; | 218 int m_lastStyleSheetId; |
| 219 int m_styleSheetsPendingMutation; | 219 int m_styleSheetsPendingMutation; |
| 220 bool m_styleDeclarationPendingMutation; | 220 bool m_styleDeclarationPendingMutation; |
| 221 bool m_creatingViaInspectorStyleSheet; | 221 bool m_creatingViaInspectorStyleSheet; |
| 222 bool m_isSettingStyleSheetText; | 222 bool m_isSettingStyleSheetText; |
| 223 | 223 |
| 224 friend class InspectorResourceContentLoaderCallback; | 224 friend class InspectorResourceContentLoaderCallback; |
| 225 friend class StyleSheetBinder; | 225 friend class StyleSheetBinder; |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 | 228 |
| 229 } // namespace blink | 229 } // namespace blink |
| 230 | 230 |
| 231 #endif // !defined(InspectorCSSAgent_h) | 231 #endif // !defined(InspectorCSSAgent_h) |
| OLD | NEW |