<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[160753] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/160753">160753</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2013-12-17 22:27:44 -0800 (Tue, 17 Dec 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: Remove InspectorAgent::hasFrontend
https://bugs.webkit.org/show_bug.cgi?id=125907

Patch by Joseph Pecoraro &lt;pecoraro@apple.com&gt; on 2013-12-17
Reviewed by Timothy Hatcher.

Remove InspectorAgent::hasFrontend only used by
InspectorInstrumentation::collectingHTMLParseErrors. However,
following the single callers of that, the result is unused
in the HTMLDocumentParser and HTMLTreeBuilder. So remove
more stale / unused code.

* html/FTPDirectoryDocument.cpp:
(WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser):
* html/HTMLDocument.cpp:
(WebCore::HTMLDocument::createParser):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::HTMLDocumentParser):
* html/parser/HTMLDocumentParser.h:
(WebCore::HTMLDocumentParser::create):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
* html/parser/HTMLTreeBuilder.h:
(WebCore::HTMLTreeBuilder::create):
* html/parser/TextDocumentParser.cpp:
(WebCore::TextDocumentParser::TextDocumentParser):
* inspector/DOMPatchSupport.cpp:
(WebCore::DOMPatchSupport::patchDocument):
* inspector/InspectorAgent.h:
* inspector/InspectorInstrumentation.cpp:
* inspector/InspectorInstrumentation.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlFTPDirectoryDocumentcpp">trunk/Source/WebCore/html/FTPDirectoryDocument.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLDocumentcpp">trunk/Source/WebCore/html/HTMLDocument.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLDocumentParsercpp">trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLDocumentParserh">trunk/Source/WebCore/html/parser/HTMLDocumentParser.h</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLTreeBuildercpp">trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLTreeBuilderh">trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h</a></li>
<li><a href="#trunkSourceWebCorehtmlparserTextDocumentParsercpp">trunk/Source/WebCore/html/parser/TextDocumentParser.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorDOMPatchSupportcpp">trunk/Source/WebCore/inspector/DOMPatchSupport.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorAgenth">trunk/Source/WebCore/inspector/InspectorAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorInstrumentationcpp">trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorInstrumentationh">trunk/Source/WebCore/inspector/InspectorInstrumentation.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/ChangeLog        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -1,5 +1,38 @@
</span><span class="cx"> 2013-12-17  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Web Inspector: Remove InspectorAgent::hasFrontend
+        https://bugs.webkit.org/show_bug.cgi?id=125907
+
+        Reviewed by Timothy Hatcher.
+
+        Remove InspectorAgent::hasFrontend only used by
+        InspectorInstrumentation::collectingHTMLParseErrors. However,
+        following the single callers of that, the result is unused
+        in the HTMLDocumentParser and HTMLTreeBuilder. So remove
+        more stale / unused code.
+
+        * html/FTPDirectoryDocument.cpp:
+        (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser):
+        * html/HTMLDocument.cpp:
+        (WebCore::HTMLDocument::createParser):
+        * html/parser/HTMLDocumentParser.cpp:
+        (WebCore::HTMLDocumentParser::HTMLDocumentParser):
+        * html/parser/HTMLDocumentParser.h:
+        (WebCore::HTMLDocumentParser::create):
+        * html/parser/HTMLTreeBuilder.cpp:
+        (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
+        * html/parser/HTMLTreeBuilder.h:
+        (WebCore::HTMLTreeBuilder::create):
+        * html/parser/TextDocumentParser.cpp:
+        (WebCore::TextDocumentParser::TextDocumentParser):
+        * inspector/DOMPatchSupport.cpp:
+        (WebCore::DOMPatchSupport::patchDocument):
+        * inspector/InspectorAgent.h:
+        * inspector/InspectorInstrumentation.cpp:
+        * inspector/InspectorInstrumentation.h:
+
+2013-12-17  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
+
</ins><span class="cx">         Web Inspector: Some basic InjectedScriptHost cleanup
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=125902
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlFTPDirectoryDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/FTPDirectoryDocument.cpp (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> FTPDirectoryDocumentParser::FTPDirectoryDocumentParser(HTMLDocument&amp; document)
</span><del>-    : HTMLDocumentParser(document, false)
</del><ins>+    : HTMLDocumentParser(document)
</ins><span class="cx">     , m_skipLF(false)
</span><span class="cx">     , m_size(254)
</span><span class="cx">     , m_buffer(static_cast&lt;UChar*&gt;(fastMalloc(sizeof(UChar) * m_size)))
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLDocument.cpp (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLDocument.cpp        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/html/HTMLDocument.cpp        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -70,7 +70,6 @@
</span><span class="cx"> #include &quot;HTMLFrameOwnerElement.h&quot;
</span><span class="cx"> #include &quot;HTMLFrameSetElement.h&quot;
</span><span class="cx"> #include &quot;HTMLNames.h&quot;
</span><del>-#include &quot;InspectorInstrumentation.h&quot;
</del><span class="cx"> #include &quot;JSDOMBinding.h&quot;
</span><span class="cx"> #include &quot;Page.h&quot;
</span><span class="cx"> #include &quot;ScriptController.h&quot;
</span><span class="lines">@@ -249,8 +248,7 @@
</span><span class="cx"> 
</span><span class="cx"> PassRefPtr&lt;DocumentParser&gt; HTMLDocument::createParser()
</span><span class="cx"> {
</span><del>-    bool reportErrors = InspectorInstrumentation::collectingHTMLParseErrors(this-&gt;page());
-    return HTMLDocumentParser::create(*this, reportErrors);
</del><ins>+    return HTMLDocumentParser::create(*this);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // --------------------------------------------------------------------------
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLDocumentParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -69,13 +69,13 @@
</span><span class="cx">     return HTMLTokenizer::DataState;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-HTMLDocumentParser::HTMLDocumentParser(HTMLDocument&amp; document, bool reportErrors)
</del><ins>+HTMLDocumentParser::HTMLDocumentParser(HTMLDocument&amp; document)
</ins><span class="cx">     : ScriptableDocumentParser(document)
</span><span class="cx">     , m_options(document)
</span><span class="cx">     , m_token(m_options.useThreading ? nullptr : adoptPtr(new HTMLToken))
</span><span class="cx">     , m_tokenizer(m_options.useThreading ? nullptr : HTMLTokenizer::create(m_options))
</span><span class="cx">     , m_scriptRunner(HTMLScriptRunner::create(document, *this))
</span><del>-    , m_treeBuilder(HTMLTreeBuilder::create(*this, document, parserContentPolicy(), reportErrors, m_options))
</del><ins>+    , m_treeBuilder(HTMLTreeBuilder::create(*this, document, parserContentPolicy(), m_options))
</ins><span class="cx">     , m_parserScheduler(HTMLParserScheduler::create(*this))
</span><span class="cx">     , m_xssAuditorDelegate(document)
</span><span class="cx"> #if ENABLE(THREADED_HTML_PARSER)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLDocumentParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLDocumentParser.h (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLDocumentParser.h        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/html/parser/HTMLDocumentParser.h        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -66,9 +66,9 @@
</span><span class="cx"> class HTMLDocumentParser :  public ScriptableDocumentParser, HTMLScriptRunnerHost, CachedResourceClient {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;HTMLDocumentParser&gt; create(HTMLDocument&amp; document, bool reportErrors)
</del><ins>+    static PassRefPtr&lt;HTMLDocumentParser&gt; create(HTMLDocument&amp; document)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new HTMLDocumentParser(document, reportErrors));
</del><ins>+        return adoptRef(new HTMLDocumentParser(document));
</ins><span class="cx">     }
</span><span class="cx">     virtual ~HTMLDocumentParser();
</span><span class="cx"> 
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx">     virtual void append(PassRefPtr&lt;StringImpl&gt;) OVERRIDE;
</span><span class="cx">     virtual void finish() OVERRIDE;
</span><span class="cx"> 
</span><del>-    HTMLDocumentParser(HTMLDocument&amp;, bool reportErrors);
</del><ins>+    explicit HTMLDocumentParser(HTMLDocument&amp;);
</ins><span class="cx">     HTMLDocumentParser(DocumentFragment&amp;, Element* contextElement, ParserContentPolicy);
</span><span class="cx"> 
</span><span class="cx">     HTMLTreeBuilder* treeBuilder() const { return m_treeBuilder.get(); }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLTreeBuildercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -269,7 +269,7 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser&amp; parser, HTMLDocument&amp; document, ParserContentPolicy parserContentPolicy, bool, const HTMLParserOptions&amp; options)
</del><ins>+HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser&amp; parser, HTMLDocument&amp; document, ParserContentPolicy parserContentPolicy, const HTMLParserOptions&amp; options)
</ins><span class="cx">     : m_framesetOk(true)
</span><span class="cx"> #ifndef NDEBUG
</span><span class="cx">     , m_isAttached(true)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLTreeBuilderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -57,9 +57,9 @@
</span><span class="cx"> class HTMLTreeBuilder {
</span><span class="cx">     WTF_MAKE_NONCOPYABLE(HTMLTreeBuilder); WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;HTMLTreeBuilder&gt; create(HTMLDocumentParser&amp; parser, HTMLDocument&amp; document, ParserContentPolicy parserContentPolicy, bool reportErrors, const HTMLParserOptions&amp; options)
</del><ins>+    static OwnPtr&lt;HTMLTreeBuilder&gt; create(HTMLDocumentParser&amp; parser, HTMLDocument&amp; document, ParserContentPolicy parserContentPolicy, const HTMLParserOptions&amp; options)
</ins><span class="cx">     {
</span><del>-        return adoptPtr(new HTMLTreeBuilder(parser, document, parserContentPolicy, reportErrors, options));
</del><ins>+        return adoptPtr(new HTMLTreeBuilder(parser, document, parserContentPolicy, options));
</ins><span class="cx">     }
</span><span class="cx">     static OwnPtr&lt;HTMLTreeBuilder&gt; create(HTMLDocumentParser&amp; parser, DocumentFragment&amp; fragment, Element* contextElement, ParserContentPolicy parserContentPolicy, const HTMLParserOptions&amp; options)
</span><span class="cx">     {
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx">         AfterAfterFramesetMode,
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    HTMLTreeBuilder(HTMLDocumentParser&amp;, HTMLDocument&amp;, ParserContentPolicy, bool reportErrors, const HTMLParserOptions&amp;);
</del><ins>+    HTMLTreeBuilder(HTMLDocumentParser&amp;, HTMLDocument&amp;, ParserContentPolicy, const HTMLParserOptions&amp;);
</ins><span class="cx">     HTMLTreeBuilder(HTMLDocumentParser&amp;, DocumentFragment&amp;, Element* contextElement, ParserContentPolicy, const HTMLParserOptions&amp;);
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserTextDocumentParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/TextDocumentParser.cpp (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/TextDocumentParser.cpp        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/html/parser/TextDocumentParser.cpp        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx"> using namespace HTMLNames;
</span><span class="cx"> 
</span><span class="cx"> TextDocumentParser::TextDocumentParser(HTMLDocument&amp; document)
</span><del>-    : HTMLDocumentParser(document, false)
</del><ins>+    : HTMLDocumentParser(document)
</ins><span class="cx">     , m_haveInsertedFakePreElement(false)
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorDOMPatchSupportcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/DOMPatchSupport.cpp (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/DOMPatchSupport.cpp        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/inspector/DOMPatchSupport.cpp        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx">     ASSERT(newDocument);
</span><span class="cx">     RefPtr&lt;DocumentParser&gt; parser;
</span><span class="cx">     if (newDocument-&gt;isHTMLDocument())
</span><del>-        parser = HTMLDocumentParser::create(static_cast&lt;HTMLDocument&amp;&gt;(*newDocument), false);
</del><ins>+        parser = HTMLDocumentParser::create(static_cast&lt;HTMLDocument&amp;&gt;(*newDocument));
</ins><span class="cx">     else
</span><span class="cx">         parser = XMLDocumentParser::create(*newDocument, 0);
</span><span class="cx">     parser-&gt;insert(markup); // Use insert() so that the parser will not yield.
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorAgent.h (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorAgent.h        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/inspector/InspectorAgent.h        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -71,8 +71,6 @@
</span><span class="cx">     virtual void didCreateFrontendAndBackend(Inspector::InspectorFrontendChannel*, Inspector::InspectorBackendDispatcher*) OVERRIDE;
</span><span class="cx">     virtual void willDestroyFrontendAndBackend() OVERRIDE;
</span><span class="cx"> 
</span><del>-    bool hasFrontend() const { return !!m_frontendDispatcher; }
-
</del><span class="cx">     // Generic code called from custom implementations.
</span><span class="cx">     void evaluateForTestInFrontend(long testCallId, const String&amp; script);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorInstrumentationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -50,7 +50,6 @@
</span><span class="cx"> #include &quot;InspectorCSSAgent.h&quot;
</span><span class="cx"> #include &quot;InspectorCanvasAgent.h&quot;
</span><span class="cx"> #include &quot;InspectorConsoleAgent.h&quot;
</span><del>-#include &quot;InspectorController.h&quot;
</del><span class="cx"> #include &quot;InspectorDOMAgent.h&quot;
</span><span class="cx"> #include &quot;InspectorDOMDebuggerAgent.h&quot;
</span><span class="cx"> #include &quot;InspectorDOMStorageAgent.h&quot;
</span><span class="lines">@@ -76,7 +75,6 @@
</span><span class="cx"> #include &quot;StyleResolver.h&quot;
</span><span class="cx"> #include &quot;StyleRule.h&quot;
</span><span class="cx"> #include &quot;WorkerGlobalScope.h&quot;
</span><del>-#include &quot;WorkerInspectorController.h&quot;
</del><span class="cx"> #include &quot;WorkerRuntimeAgent.h&quot;
</span><span class="cx"> #include &quot;WorkerThread.h&quot;
</span><span class="cx"> #include &quot;XMLHttpRequest.h&quot;
</span><span class="lines">@@ -1209,13 +1207,6 @@
</span><span class="cx">         applicationCacheAgent-&gt;updateApplicationCacheStatus(frame);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool InspectorInstrumentation::collectingHTMLParseErrors(InstrumentingAgents* instrumentingAgents)
-{
-    if (InspectorAgent* inspectorAgent = instrumentingAgents-&gt;inspectorAgent())
-        return inspectorAgent-&gt;hasFrontend();
-    return false;
-}
-
</del><span class="cx"> bool InspectorInstrumentation::canvasAgentEnabled(ScriptExecutionContext* scriptExecutionContext)
</span><span class="cx"> {
</span><span class="cx">     InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext(scriptExecutionContext);
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorInstrumentationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorInstrumentation.h (160752 => 160753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorInstrumentation.h        2013-12-18 06:24:10 UTC (rev 160752)
+++ trunk/Source/WebCore/inspector/InspectorInstrumentation.h        2013-12-18 06:27:44 UTC (rev 160753)
</span><span class="lines">@@ -294,14 +294,12 @@
</span><span class="cx">     static bool canvasAgentEnabled(ScriptExecutionContext*);
</span><span class="cx">     static bool consoleAgentEnabled(ScriptExecutionContext*);
</span><span class="cx">     static bool timelineAgentEnabled(ScriptExecutionContext*);
</span><del>-    static bool collectingHTMLParseErrors(Page*);
</del><span class="cx"> #else
</span><span class="cx">     static bool hasFrontends() { return false; }
</span><span class="cx">     static bool canvasAgentEnabled(ScriptExecutionContext*) { return false; }
</span><span class="cx">     static bool consoleAgentEnabled(ScriptExecutionContext*) { return false; }
</span><span class="cx">     static bool runtimeAgentEnabled(Frame*) { return false; }
</span><span class="cx">     static bool timelineAgentEnabled(ScriptExecutionContext*) { return false; }
</span><del>-    static bool collectingHTMLParseErrors(Page*) { return false; }
</del><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(GEOLOCATION)
</span><span class="lines">@@ -491,7 +489,6 @@
</span><span class="cx">     static InstrumentingAgents* instrumentingAgentsForWorkerGlobalScope(WorkerGlobalScope*);
</span><span class="cx">     static InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ScriptExecutionContext*);
</span><span class="cx"> 
</span><del>-    static bool collectingHTMLParseErrors(InstrumentingAgents*);
</del><span class="cx">     static void pauseOnNativeEventIfNeeded(InstrumentingAgents*, bool isDOMEvent, const String&amp; eventName, bool synchronous);
</span><span class="cx">     static void cancelPauseOnNativeEvent(InstrumentingAgents*);
</span><span class="cx">     static InspectorTimelineAgent* retrieveTimelineAgent(const InspectorInstrumentationCookie&amp;);
</span><span class="lines">@@ -2075,14 +2072,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(INSPECTOR)
</span><del>-inline bool InspectorInstrumentation::collectingHTMLParseErrors(Page* page)
-{
-    FAST_RETURN_IF_NO_FRONTENDS(false);
-    if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(page))
-        return collectingHTMLParseErrors(instrumentingAgents);
-    return false;
-}
-
</del><span class="cx"> inline InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForContext(ScriptExecutionContext* context)
</span><span class="cx"> {
</span><span class="cx">     if (!context)
</span></span></pre>
</div>
</div>

</body>
</html>