| 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 14 matching lines...) Expand all Loading... |
| 25 #ifndef InspectorCSSAgent_h | 25 #ifndef InspectorCSSAgent_h |
| 26 #define InspectorCSSAgent_h | 26 #define InspectorCSSAgent_h |
| 27 | 27 |
| 28 #include "core/css/CSSSelector.h" | 28 #include "core/css/CSSSelector.h" |
| 29 #include "core/dom/SecurityContext.h" | 29 #include "core/dom/SecurityContext.h" |
| 30 #include "core/inspector/InspectorBaseAgent.h" | 30 #include "core/inspector/InspectorBaseAgent.h" |
| 31 #include "core/inspector/InspectorDOMAgent.h" | 31 #include "core/inspector/InspectorDOMAgent.h" |
| 32 #include "core/inspector/InspectorStyleSheet.h" | 32 #include "core/inspector/InspectorStyleSheet.h" |
| 33 #include "core/frame/ContentSecurityPolicy.h" | 33 #include "core/frame/ContentSecurityPolicy.h" |
| 34 #include "platform/JSONValues.h" | 34 #include "platform/JSONValues.h" |
| 35 #include "wtf/HashCountedSet.h" |
| 35 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
| 36 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
| 37 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 39 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 40 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 41 | 42 |
| 42 namespace WebCore { | 43 namespace WebCore { |
| 43 | 44 |
| 44 class ChangeRegionOversetTask; | 45 class ChangeRegionOversetTask; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; | 168 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; |
| 168 | 169 |
| 169 void wasEnabled(PassRefPtr<EnableCallback>); | 170 void wasEnabled(PassRefPtr<EnableCallback>); |
| 170 void resetNonPersistentData(); | 171 void resetNonPersistentData(); |
| 171 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); | 172 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); |
| 172 Element* elementForId(ErrorString*, int nodeId); | 173 Element* elementForId(ErrorString*, int nodeId); |
| 173 int documentNodeWithRequestedFlowsId(Document*); | 174 int documentNodeWithRequestedFlowsId(Document*); |
| 174 void collectAllStyleSheets(Vector<InspectorStyleSheet*>&); | 175 void collectAllStyleSheets(Vector<InspectorStyleSheet*>&); |
| 175 void collectStyleSheets(CSSStyleSheet*, Vector<InspectorStyleSheet*>&); | 176 void collectStyleSheets(CSSStyleSheet*, Vector<InspectorStyleSheet*>&); |
| 176 | 177 |
| 177 void collectPlatformFontsForRenderer(RenderText*, HashMap<String, int>*); | 178 void collectPlatformFontsForRenderer(RenderText*, HashCountedSet<String>*); |
| 178 | 179 |
| 179 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); | 180 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); |
| 180 String unbindStyleSheet(InspectorStyleSheet*); | 181 String unbindStyleSheet(InspectorStyleSheet*); |
| 181 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); | 182 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); |
| 182 InspectorStyleSheet* assertStyleSheetForId(ErrorString*, const String&); | 183 InspectorStyleSheet* assertStyleSheetForId(ErrorString*, const String&); |
| 183 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty
leSheet, Document* ownerDocument); | 184 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty
leSheet, Document* ownerDocument); |
| 184 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation
|| m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; } | 185 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation
|| m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; } |
| 185 | 186 |
| 186 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*, Styl
eResolver*); | 187 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*, Styl
eResolver*); |
| 187 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > buildArrayForRule
List(CSSRuleList*, StyleResolver*); | 188 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > buildArrayForRule
List(CSSRuleList*, StyleResolver*); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 friend class ChangeRegionOversetTask; | 226 friend class ChangeRegionOversetTask; |
| 226 friend class EnableResourceClient; | 227 friend class EnableResourceClient; |
| 227 friend class StyleSheetBinder; | 228 friend class StyleSheetBinder; |
| 228 friend class UpdateRegionLayoutTask; | 229 friend class UpdateRegionLayoutTask; |
| 229 }; | 230 }; |
| 230 | 231 |
| 231 | 232 |
| 232 } // namespace WebCore | 233 } // namespace WebCore |
| 233 | 234 |
| 234 #endif // !defined(InspectorCSSAgent_h) | 235 #endif // !defined(InspectorCSSAgent_h) |
| OLD | NEW |