| Index: Source/core/inspector/InspectorCSSAgent.h
|
| diff --git a/Source/core/inspector/InspectorCSSAgent.h b/Source/core/inspector/InspectorCSSAgent.h
|
| index 19cbd5bfe378c687ca16c7a4a3536fc47f45ddda..4a35902d4393354c99fdbda6603fd31bc85028a2 100644
|
| --- a/Source/core/inspector/InspectorCSSAgent.h
|
| +++ b/Source/core/inspector/InspectorCSSAgent.h
|
| @@ -31,6 +31,7 @@
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| #include "core/inspector/InspectorBaseAgent.h"
|
| #include "core/inspector/InspectorDOMAgent.h"
|
| +#include "core/inspector/InspectorOverlay.h"
|
| #include "core/inspector/InspectorStyleSheet.h"
|
| #include "platform/JSONValues.h"
|
| #include "wtf/HashCountedSet.h"
|
| @@ -59,7 +60,8 @@ class CORE_EXPORT InspectorCSSAgent final
|
| : public InspectorBaseAgent<InspectorCSSAgent, InspectorFrontend::CSS>
|
| , public InspectorDOMAgent::DOMListener
|
| , public InspectorBackendDispatcher::CSSCommandHandler
|
| - , public InspectorStyleSheetBase::Listener {
|
| + , public InspectorStyleSheetBase::Listener
|
| + , public InspectorOverlay::CSSListener {
|
| WTF_MAKE_NONCOPYABLE(InspectorCSSAgent);
|
| WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorCSSAgent);
|
| public:
|
| @@ -95,9 +97,9 @@ public:
|
| static CSSStyleRule* asCSSStyleRule(CSSRule*);
|
| static CSSMediaRule* asCSSMediaRule(CSSRule*);
|
|
|
| - static PassOwnPtrWillBeRawPtr<InspectorCSSAgent> create(InspectorDOMAgent* domAgent, InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent)
|
| + static PassOwnPtrWillBeRawPtr<InspectorCSSAgent> create(InspectorDOMAgent* domAgent, InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent, InspectorOverlay* overlay)
|
| {
|
| - return adoptPtrWillBeNoop(new InspectorCSSAgent(domAgent, pageAgent, resourceAgent));
|
| + return adoptPtrWillBeNoop(new InspectorCSSAgent(domAgent, pageAgent, resourceAgent, overlay));
|
| }
|
|
|
| static void collectAllDocumentStyleSheets(Document*, WillBeHeapVector<RawPtrWillBeMember<CSSStyleSheet> >&);
|
| @@ -146,6 +148,8 @@ public:
|
| PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, MediaListSource, const String&, CSSStyleSheet*);
|
| PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListChain(CSSRule*);
|
|
|
| + void updateCSSProperty(Node* node, long newValue) override;
|
| +
|
| private:
|
| class StyleSheetAction;
|
| class SetStyleSheetTextAction;
|
| @@ -157,7 +161,7 @@ private:
|
|
|
| static void collectStyleSheets(CSSStyleSheet*, WillBeHeapVector<RawPtrWillBeMember<CSSStyleSheet> >&);
|
|
|
| - InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResourceAgent*);
|
| + InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResourceAgent*, InspectorOverlay*);
|
|
|
| typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheet> > IdToInspectorStyleSheet;
|
| typedef WillBeHeapHashMap<String, RefPtrWillBeMember<InspectorStyleSheetForInlineStyle> > IdToInspectorStyleSheetForInlineStyle;
|
| @@ -222,6 +226,7 @@ private:
|
| bool m_styleDeclarationPendingMutation;
|
| bool m_creatingViaInspectorStyleSheet;
|
| bool m_isSettingStyleSheetText;
|
| + RawPtrWillBeMember<InspectorOverlay> m_overlay;
|
|
|
| friend class InspectorResourceContentLoaderCallback;
|
| friend class StyleSheetBinder;
|
|
|