summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/html/HTMLDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLDocument.cpp')
-rw-r--r--Source/WebCore/html/HTMLDocument.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/WebCore/html/HTMLDocument.cpp b/Source/WebCore/html/HTMLDocument.cpp
index 84ad706..dd41514 100644
--- a/Source/WebCore/html/HTMLDocument.cpp
+++ b/Source/WebCore/html/HTMLDocument.cpp
@@ -69,7 +69,7 @@
#include "HTMLBodyElement.h"
#include "HTMLElementFactory.h"
#include "HTMLNames.h"
-#include "InspectorController.h"
+#include "InspectorInstrumentation.h"
#include "KURL.h"
#include "Page.h"
#include "Settings.h"
@@ -79,8 +79,8 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLDocument::HTMLDocument(Frame* frame, const KURL& url, const KURL& baseURL)
- : Document(frame, url, false, true, baseURL)
+HTMLDocument::HTMLDocument(Frame* frame, const KURL& url)
+ : Document(frame, url, false, true)
{
clearXMLVersion();
}
@@ -277,11 +277,7 @@ void HTMLDocument::releaseEvents()
PassRefPtr<DocumentParser> HTMLDocument::createParser()
{
- bool reportErrors = false;
-#if ENABLE(INSPECTOR)
- if (Page* page = this->page())
- reportErrors = page->inspectorController()->hasFrontend();
-#endif
+ bool reportErrors = InspectorInstrumentation::hasFrontend(this->page());
return HTMLDocumentParser::create(this, reportErrors);
}