Title: [99933] trunk/Source/WebCore
Revision
99933
Author
[email protected]
Date
2011-11-11 00:37:35 -0800 (Fri, 11 Nov 2011)

Log Message

Web Inspector: provide an id to the root inspector element for third party UA styling.
https://bugs.webkit.org/show_bug.cgi?id=72094

Reviewed by Yury Semikhatsky.

* inspector/front-end/inspector.html:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (99932 => 99933)


--- trunk/Source/WebCore/ChangeLog	2011-11-11 08:11:15 UTC (rev 99932)
+++ trunk/Source/WebCore/ChangeLog	2011-11-11 08:37:35 UTC (rev 99933)
@@ -1,3 +1,12 @@
+2011-11-10  Pavel Feldman  <[email protected]>
+
+        Web Inspector: provide an id to the root inspector element for third party UA styling.
+        https://bugs.webkit.org/show_bug.cgi?id=72094
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/front-end/inspector.html:
+
 2011-11-10  Andy Estes  <[email protected]>
 
         WebKitCSSShaderValue.h is not a member of the WebCore target

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">
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to