summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/InspectorCSSAgent.h
diff options
context:
space:
mode:
authorRussell Brenner <russellbrenner@google.com>2010-11-18 17:33:13 -0800
committerRussell Brenner <russellbrenner@google.com>2010-12-02 13:47:21 -0800
commit6b70adc33054f8aee8c54d0f460458a9df11b8a5 (patch)
tree103a13998c33944d6ab3b8318c509a037e639460 /WebCore/inspector/InspectorCSSAgent.h
parentbdf4ebc8e70b2d221b6ee7a65660918ecb1d33aa (diff)
downloadexternal_webkit-6b70adc33054f8aee8c54d0f460458a9df11b8a5.zip
external_webkit-6b70adc33054f8aee8c54d0f460458a9df11b8a5.tar.gz
external_webkit-6b70adc33054f8aee8c54d0f460458a9df11b8a5.tar.bz2
Merge WebKit at r72274: Initial merge by git.
Change-Id: Ie51f0b4a16da82942bd516dce59cfb79ebbe25fb
Diffstat (limited to 'WebCore/inspector/InspectorCSSAgent.h')
-rw-r--r--WebCore/inspector/InspectorCSSAgent.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/WebCore/inspector/InspectorCSSAgent.h b/WebCore/inspector/InspectorCSSAgent.h
index 341d09a..71ca580 100644
--- a/WebCore/inspector/InspectorCSSAgent.h
+++ b/WebCore/inspector/InspectorCSSAgent.h
@@ -49,26 +49,20 @@ class Node;
#if ENABLE(INSPECTOR)
-class InspectorCSSAgent : public RefCounted<InspectorCSSAgent>, public InspectorDOMAgent::DOMListener {
+class InspectorCSSAgent : public InspectorDOMAgent::DOMListener {
public:
- static PassRefPtr<InspectorCSSAgent> create(InspectorDOMAgent* domAgent, InspectorFrontend* frontend)
- {
- return adoptRef(new InspectorCSSAgent(domAgent, frontend));
- }
-
static CSSStyleSheet* parentStyleSheet(StyleBase*);
static CSSStyleRule* asCSSStyleRule(StyleBase*);
- InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectorFrontend* frontend);
+ InspectorCSSAgent();
~InspectorCSSAgent();
+ void setDOMAgent(InspectorDOMAgent* domAgent);
+
void reset();
- void getMatchedRulesForNode2(long nodeId, RefPtr<InspectorArray>* rules);
- void getMatchedPseudoRulesForNode2(long nodeId, RefPtr<InspectorArray>* rules);
- void getAttributeStylesForNode2(long nodeId, RefPtr<InspectorValue>* styles);
+ void getStylesForNode2(long nodeId, RefPtr<InspectorValue>* result);
void getInlineStyleForNode2(long nodeId, RefPtr<InspectorValue>* style);
void getComputedStyleForNode2(long nodeId, RefPtr<InspectorValue>* style);
- void getInheritedStylesForNode2(long nodeId, RefPtr<InspectorArray>* result);
void getAllStyles2(RefPtr<InspectorArray>* styles);
void getStyleSheet2(const String& styleSheetId, RefPtr<InspectorValue>* result);
void setStyleSheetText2(const String& styleSheetId, const String& text);
@@ -77,6 +71,7 @@ public:
void setRuleSelector2(const String& ruleId, const String& selector, RefPtr<InspectorValue>* result);
void addRule2(const long contextNodeId, const String& selector, RefPtr<InspectorValue>* result);
void getSupportedCSSProperties(RefPtr<InspectorArray>* result);
+ void querySelectorAll(const long nodeId, const String& selector, RefPtr<InspectorArray>* result);
private:
typedef HashMap<String, RefPtr<InspectorStyleSheet> > IdToInspectorStyleSheet;
@@ -101,8 +96,7 @@ private:
virtual void didRemoveDocument(Document*);
virtual void didRemoveDOMNode(Node*);
- RefPtr<InspectorDOMAgent> m_domAgent;
- InspectorFrontend* m_frontend;
+ InspectorDOMAgent* m_domAgent;
IdToInspectorStyleSheet m_idToInspectorStyleSheet;
CSSStyleSheetToInspectorStyleSheet m_cssStyleSheetToInspectorStyleSheet;