Commit aa1d3883 authored by tonyg@chromium.org's avatar tonyg@chromium.org

2010-12-30 Tony Gentilcore <tonyg@chromium.org>

        Reviewed by Darin Adler.

        Remove Document.h include from some headers where it isn't necessary
        https://bugs.webkit.org/show_bug.cgi?id=51730

        No new tests because no new functionality.

        * editing/EditingStyle.cpp:
        * editing/EditingStyle.h:
        * editing/SelectionController.h:
        * editing/visible_units.h:
        * html/HTMLAudioElement.h:
        * html/HTMLBodyElement.h:
        * inspector/InspectorCSSAgent.h:
        * inspector/InspectorDOMAgent.h:
        * inspector/InspectorInstrumentation.h:
        * xml/DOMParser.cpp:
        * xml/DOMParser.h:
        (WebCore::DOMParser::create):
        (WebCore::DOMParser::DOMParser):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 05c22c3a
2010-12-30 Tony Gentilcore <tonyg@chromium.org>
Reviewed by Darin Adler.
Remove Document.h include from some headers where it isn't necessary
https://bugs.webkit.org/show_bug.cgi?id=51730
No new tests because no new functionality.
* editing/EditingStyle.cpp:
* editing/EditingStyle.h:
* editing/SelectionController.h:
* editing/visible_units.h:
* html/HTMLAudioElement.h:
* html/HTMLBodyElement.h:
* inspector/InspectorCSSAgent.h:
* inspector/InspectorDOMAgent.h:
* inspector/InspectorInstrumentation.h:
* xml/DOMParser.cpp:
* xml/DOMParser.h:
(WebCore::DOMParser::create):
(WebCore::DOMParser::DOMParser):
2010-12-30 Benjamin C Meyer <bmeyer@rim.com>
Reviewed by Darin Adler.
......
......@@ -32,6 +32,8 @@
#include "CSSMutableStyleDeclaration.h"
#include "CSSValueKeywords.h"
#include "Frame.h"
#include "Node.h"
#include "Position.h"
#include "RenderStyle.h"
#include "SelectionController.h"
......
......@@ -31,15 +31,18 @@
#ifndef EditingStyle_h
#define EditingStyle_h
#include "Document.h"
#include "Position.h"
#include "WritingDirection.h"
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
namespace WebCore {
class CSSStyleDeclaration;
class CSSComputedStyleDeclaration;
class CSSMutableStyleDeclaration;
class Node;
class Position;
class RenderStyle;
class EditingStyle : public RefCounted<EditingStyle> {
public:
......
......@@ -36,6 +36,7 @@
namespace WebCore {
class CharacterData;
class CSSMutableStyleDeclaration;
class Frame;
class GraphicsContext;
......
......@@ -26,7 +26,6 @@
#ifndef visible_units_h
#define visible_units_h
#include "Document.h"
#include "EditingBoundary.h"
#include "Position.h"
#include "TextAffinity.h"
......
......@@ -29,11 +29,12 @@
#if ENABLE(VIDEO)
#include "Document.h"
#include "HTMLMediaElement.h"
namespace WebCore {
class Document;
class HTMLAudioElement : public HTMLMediaElement {
public:
static PassRefPtr<HTMLAudioElement> create(const QualifiedName&, Document*);
......
......@@ -25,10 +25,11 @@
#define HTMLBodyElement_h
#include "HTMLElement.h"
#include "Document.h"
namespace WebCore {
class Document;
class HTMLBodyElement : public HTMLElement {
public:
static PassRefPtr<HTMLBodyElement> create(Document*);
......
......@@ -25,7 +25,6 @@
#ifndef InspectorCSSAgent_h
#define InspectorCSSAgent_h
#include "Document.h"
#include "InspectorDOMAgent.h"
#include "InspectorStyleSheet.h"
#include "InspectorValues.h"
......@@ -42,6 +41,7 @@ class CSSRuleList;
class CSSStyleDeclaration;
class CSSStyleRule;
class CSSStyleSheet;
class Document;
class Element;
class InspectorFrontend;
class NameNodeMap;
......
......@@ -30,7 +30,6 @@
#ifndef InspectorDOMAgent_h
#define InspectorDOMAgent_h
#include "Document.h"
#include "EventListener.h"
#include "EventTarget.h"
#include "InspectorValues.h"
......@@ -53,6 +52,7 @@ namespace WebCore {
class CSSStyleRule;
class CSSStyleSheet;
class CharacterData;
class Document;
class Element;
class Event;
class InspectorDOMAgent;
......
......@@ -31,7 +31,6 @@
#ifndef InspectorInstrumentation_h
#define InspectorInstrumentation_h
#include "Document.h"
#include "Frame.h"
#include "Page.h"
#include "ScriptExecutionContext.h"
......@@ -39,6 +38,7 @@
namespace WebCore {
class CharacterData;
class Document;
class Element;
class EventContext;
class InspectorController;
......
......@@ -29,6 +29,7 @@
#define Frame_h
#include "AnimationController.h"
#include "Document.h"
#include "DragImage.h"
#include "Editor.h"
#include "EventHandler.h"
......@@ -60,6 +61,7 @@ typedef struct HBITMAP__* HBITMAP;
namespace WebCore {
class FrameView;
class HTMLTableCellElement;
class RegularExpression;
class RenderPart;
......
......@@ -20,6 +20,7 @@
#include "DOMParser.h"
#include "DOMImplementation.h"
#include "Document.h"
#include "PlatformString.h"
namespace WebCore {
......
......@@ -21,19 +21,21 @@
#include <wtf/Forward.h>
#include <wtf/RefCounted.h>
#include "Document.h"
#include <wtf/RefPtr.h>
namespace WebCore {
class DOMParser : public RefCounted<DOMParser> {
public:
static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); }
PassRefPtr<Document> parseFromString(const String& str, const String& contentType);
private:
DOMParser() { }
};
class Document;
class DOMParser : public RefCounted<DOMParser> {
public:
static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); }
PassRefPtr<Document> parseFromString(const String&, const String& contentType);
private:
DOMParser() { }
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment