| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual void getMediaQueries(ErrorString*, RefPtr<TypeBuilder::Array<TypeBui
lder::CSS::CSSMedia> >& medias) override; | 143 virtual void getMediaQueries(ErrorString*, RefPtr<TypeBuilder::Array<TypeBui
lder::CSS::CSSMedia> >& medias) override; |
| 144 bool collectMediaQueriesFromRule(CSSRule*, TypeBuilder::Array<TypeBuilder::C
SS::CSSMedia>* mediaArray); | 144 bool collectMediaQueriesFromRule(CSSRule*, TypeBuilder::Array<TypeBuilder::C
SS::CSSMedia>* mediaArray); |
| 145 bool collectMediaQueriesFromStyleSheet(CSSStyleSheet*, TypeBuilder::Array<Ty
peBuilder::CSS::CSSMedia>* mediaArray); | 145 bool collectMediaQueriesFromStyleSheet(CSSStyleSheet*, TypeBuilder::Array<Ty
peBuilder::CSS::CSSMedia>* mediaArray); |
| 146 PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, Me
diaListSource, const String&, CSSStyleSheet*); | 146 PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, Me
diaListSource, const String&, CSSStyleSheet*); |
| 147 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListCh
ain(CSSRule*); | 147 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListCh
ain(CSSRule*); |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 class StyleSheetAction; | 150 class StyleSheetAction; |
| 151 class SetStyleSheetTextAction; | 151 class SetStyleSheetTextAction; |
| 152 class SetPropertyTextAction; | 152 class SetPropertyTextAction; |
| 153 class SetRuleSelectorAction; | 153 class SetRuleSelectorOrMediaAction; |
| 154 class SetMediaTextAction; | |
| 155 class AddRuleAction; | 154 class AddRuleAction; |
| 156 class InspectorResourceContentLoaderCallback; | 155 class InspectorResourceContentLoaderCallback; |
| 157 | 156 |
| 158 static void collectStyleSheets(CSSStyleSheet*, WillBeHeapVector<RawPtrWillBe
Member<CSSStyleSheet> >&); | 157 static void collectStyleSheets(CSSStyleSheet*, WillBeHeapVector<RawPtrWillBe
Member<CSSStyleSheet> >&); |
| 159 | 158 |
| 160 InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResource
Agent*); | 159 InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResource
Agent*); |
| 161 | 160 |
| 162 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheet> >
IdToInspectorStyleSheet; | 161 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheet> >
IdToInspectorStyleSheet; |
| 163 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheetForI
nlineStyle> > IdToInspectorStyleSheetForInlineStyle; | 162 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheetForI
nlineStyle> > IdToInspectorStyleSheetForInlineStyle; |
| 164 typedef WillBeHeapHashMap<RawPtrWillBeMember<Node>, RefPtrWillBeMember<Inspe
ctorStyleSheetForInlineStyle> > NodeToInspectorStyleSheet; // bogus "stylesheets
" with elements' inline styles | 163 typedef WillBeHeapHashMap<RawPtrWillBeMember<Node>, RefPtrWillBeMember<Inspe
ctorStyleSheetForInlineStyle> > NodeToInspectorStyleSheet; // bogus "stylesheets
" with elements' inline styles |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 bool m_isSettingStyleSheetText; | 223 bool m_isSettingStyleSheetText; |
| 225 | 224 |
| 226 friend class InspectorResourceContentLoaderCallback; | 225 friend class InspectorResourceContentLoaderCallback; |
| 227 friend class StyleSheetBinder; | 226 friend class StyleSheetBinder; |
| 228 }; | 227 }; |
| 229 | 228 |
| 230 | 229 |
| 231 } // namespace blink | 230 } // namespace blink |
| 232 | 231 |
| 233 #endif // !defined(InspectorCSSAgent_h) | 232 #endif // !defined(InspectorCSSAgent_h) |
| OLD | NEW |