Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (99932 => 99933)
--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp 2011-11-11 08:11:15 UTC (rev 99932)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp 2011-11-11 08:37:35 UTC (rev 99933)
@@ -136,7 +136,7 @@
virtual ~MatchJob() { }
protected:
- MatchJob(Document* document, const String& query)
+ MatchJob(PassRefPtr<Document> document, const String& query)
: m_document(document)
, m_query(query) { }
@@ -167,7 +167,7 @@
class MatchExactIdJob : public WebCore::MatchJob {
public:
- MatchExactIdJob(Document* document, const String& query) : WebCore::MatchJob(document, query) { }
+ MatchExactIdJob(PassRefPtr<Document> document, const String& query) : WebCore::MatchJob(document, query) { }
virtual ~MatchExactIdJob() { }
protected:
@@ -184,7 +184,7 @@
class MatchExactClassNamesJob : public WebCore::MatchJob {
public:
- MatchExactClassNamesJob(Document* document, const String& query) : WebCore::MatchJob(document, query) { }
+ MatchExactClassNamesJob(PassRefPtr<Document> document, const String& query) : WebCore::MatchJob(document, query) { }
virtual ~MatchExactClassNamesJob() { }
virtual void match(ListHashSet<Node*>& resultCollector)
@@ -196,7 +196,7 @@
class MatchExactTagNamesJob : public WebCore::MatchJob {
public:
- MatchExactTagNamesJob(Document* document, const String& query) : WebCore::MatchJob(document, query) { }
+ MatchExactTagNamesJob(PassRefPtr<Document> document, const String& query) : WebCore::MatchJob(document, query) { }
virtual ~MatchExactTagNamesJob() { }
virtual void match(ListHashSet<Node*>& resultCollector)
@@ -208,7 +208,7 @@
class MatchQuerySelectorAllJob : public WebCore::MatchJob {
public:
- MatchQuerySelectorAllJob(Document* document, const String& query) : WebCore::MatchJob(document, query) { }
+ MatchQuerySelectorAllJob(PassRefPtr<Document> document, const String& query) : WebCore::MatchJob(document, query) { }
virtual ~MatchQuerySelectorAllJob() { }
virtual void match(ListHashSet<Node*>& resultCollector)
@@ -225,7 +225,7 @@
class MatchXPathJob : public WebCore::MatchJob {
public:
- MatchXPathJob(Document* document, const String& query) : WebCore::MatchJob(document, query) { }
+ MatchXPathJob(PassRefPtr<Document> document, const String& query) : WebCore::MatchJob(document, query) { }
virtual ~MatchXPathJob() { }
virtual void match(ListHashSet<Node*>& resultCollector)
@@ -253,7 +253,7 @@
class MatchPlainTextJob : public MatchXPathJob {
public:
- MatchPlainTextJob(Document* document, const String& query) : MatchXPathJob(document, query)
+ MatchPlainTextJob(PassRefPtr<Document> document, const String& query) : MatchXPathJob(document, query)
{
m_query = "//text()[contains(., '" + m_query + "')] | //comment()[contains(., '" + m_query + "')]";
}
@@ -1585,10 +1585,12 @@
ListHashSet<Node*> resultCollector;
MatchJob* job = m_pendingMatchJobs.takeFirst();
+fprintf(stderr, "before match job\n");
job->match(resultCollector);
+fprintf(stderr, "after match job\n");
delete job;
- reportNodesAsSearchResults(resultCollector);
+// reportNodesAsSearchResults(resultCollector);
m_matchJobsTimer.startOneShot(0.025);
}
Modified: trunk/Source/WebCore/inspector/front-end/inspector.html (99932 => 99933)
--- trunk/Source/WebCore/inspector/front-end/inspector.html 2011-11-11 08:11:15 UTC (rev 99932)
+++ trunk/Source/WebCore/inspector/front-end/inspector.html 2011-11-11 08:37:35 UTC (rev 99933)
@@ -184,7 +184,7 @@
<script type="text/_javascript_" src=""
<script type="text/_javascript_" src=""
</head>
-<body class="detached">
+<body class="detached" id="-webkit-web-inspector">
<div id="toolbar">
<div class="toolbar-item close-left"><button id="close-button-left"></button></div>
<div id="toolbar-controls">