Commit 4b0a55f4 authored by tonyg@chromium.org's avatar tonyg@chromium.org

2011-05-10 Tony Gentilcore <tonyg@chromium.org>

        Reviewed by Darin Adler.

        Perform some forward declarations suggested by include-what-you-use
        https://bugs.webkit.org/show_bug.cgi?id=60545

        * accessibility/AccessibilityObject.cpp:
        * accessibility/AccessibilityRenderObject.cpp:
        * accessibility/mac/AccessibilityObjectWrapper.mm:
        * dom/DocumentMarkerController.cpp:
        * dom/Position.cpp:
        * dom/PositionIterator.cpp:
        * dom/Range.cpp:
        * editing/ApplyBlockElementCommand.cpp:
        * editing/ApplyStyleCommand.cpp:
        * editing/Editor.cpp:
        * editing/EditorCommand.cpp:
        * editing/FrameSelection.cpp:
        * editing/HTMLInterchange.cpp:
        * editing/IndentOutdentCommand.cpp:
        * editing/ReplaceSelectionCommand.cpp:
        * editing/SpellChecker.h:
        * editing/SpellingCorrectionCommand.cpp:
        * editing/SpellingCorrectionController.h:
        * editing/TextCheckingHelper.cpp:
        * editing/TextIterator.h:
        * editing/htmlediting.h:
        * editing/markup.cpp:
        * editing/visible_units.cpp:
        * editing/visible_units.h:
        * fileapi/DOMFileSystem.cpp:
        * fileapi/DirectoryReaderSync.cpp:
        * fileapi/DirectoryReaderSync.h:
        * fileapi/FileEntry.h:
        * fileapi/FileWriter.h:
        * fileapi/FileWriterBase.h:
        * fileapi/FileWriterSync.h:
        * history/CachedFrame.cpp:
        * history/CachedPage.cpp:
        * history/HistoryItem.cpp:
        * history/HistoryItem.h:
        * history/PageCache.h:
        * loader/HistoryController.h:
        * loader/PingLoader.h:
        * loader/ResourceLoader.h:
        * loader/appcache/DOMApplicationCache.h:
        * loader/cache/CachedCSSStyleSheet.h:
        * loader/cache/CachedFont.cpp:
        * loader/cache/CachedFont.h:
        * loader/cache/CachedResourceRequest.cpp:
        * loader/cache/CachedResourceRequest.h:
        * loader/cache/MemoryCache.h:
        * notifications/Notification.cpp:
        * notifications/Notification.h:
        * notifications/NotificationCenter.cpp:
        * notifications/NotificationCenter.h:
        * page/Chrome.cpp:
        * page/Chrome.h:
        * page/DOMSelection.cpp:
        * page/DOMTimer.h:
        * page/DOMWindow.cpp:
        * page/EventHandler.cpp:
        * page/FocusController.h:
        * page/Geolocation.cpp:
        * page/Geolocation.h:
        * page/History.cpp:
        * rendering/RenderListBox.cpp:
        * workers/WorkerContext.cpp:
2011-05-10  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Darin Adler.

        Perform some forward declarations suggested by include-what-you-use
        https://bugs.webkit.org/show_bug.cgi?id=60545

        * src/WebHistoryItem.cpp:
        * src/WebNotification.cpp:
        * src/WebTextCheckingCompletionImpl.cpp:
        * src/mac/WebSubstringUtil.mm:
2011-05-10  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Darin Adler.

        Perform some forward declarations suggested by include-what-you-use
        https://bugs.webkit.org/show_bug.cgi?id=60545

        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
        * WebView/WebFrame.mm:
2011-05-10  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Darin Adler.

        Perform some forward declarations suggested by include-what-you-use
        https://bugs.webkit.org/show_bug.cgi?id=60545

        * WebProcess/WebPage/mac/WebPageMac.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 99639868
2011-05-10 Tony Gentilcore <tonyg@chromium.org>
Reviewed by Darin Adler.
Perform some forward declarations suggested by include-what-you-use
https://bugs.webkit.org/show_bug.cgi?id=60545
* accessibility/AccessibilityObject.cpp:
* accessibility/AccessibilityRenderObject.cpp:
* accessibility/mac/AccessibilityObjectWrapper.mm:
* dom/DocumentMarkerController.cpp:
* dom/Position.cpp:
* dom/PositionIterator.cpp:
* dom/Range.cpp:
* editing/ApplyBlockElementCommand.cpp:
* editing/ApplyStyleCommand.cpp:
* editing/Editor.cpp:
* editing/EditorCommand.cpp:
* editing/FrameSelection.cpp:
* editing/HTMLInterchange.cpp:
* editing/IndentOutdentCommand.cpp:
* editing/ReplaceSelectionCommand.cpp:
* editing/SpellChecker.h:
* editing/SpellingCorrectionCommand.cpp:
* editing/SpellingCorrectionController.h:
* editing/TextCheckingHelper.cpp:
* editing/TextIterator.h:
* editing/htmlediting.h:
* editing/markup.cpp:
* editing/visible_units.cpp:
* editing/visible_units.h:
* fileapi/DOMFileSystem.cpp:
* fileapi/DirectoryReaderSync.cpp:
* fileapi/DirectoryReaderSync.h:
* fileapi/FileEntry.h:
* fileapi/FileWriter.h:
* fileapi/FileWriterBase.h:
* fileapi/FileWriterSync.h:
* history/CachedFrame.cpp:
* history/CachedPage.cpp:
* history/HistoryItem.cpp:
* history/HistoryItem.h:
* history/PageCache.h:
* loader/HistoryController.h:
* loader/PingLoader.h:
* loader/ResourceLoader.h:
* loader/appcache/DOMApplicationCache.h:
* loader/cache/CachedCSSStyleSheet.h:
* loader/cache/CachedFont.cpp:
* loader/cache/CachedFont.h:
* loader/cache/CachedResourceRequest.cpp:
* loader/cache/CachedResourceRequest.h:
* loader/cache/MemoryCache.h:
* notifications/Notification.cpp:
* notifications/Notification.h:
* notifications/NotificationCenter.cpp:
* notifications/NotificationCenter.h:
* page/Chrome.cpp:
* page/Chrome.h:
* page/DOMSelection.cpp:
* page/DOMTimer.h:
* page/DOMWindow.cpp:
* page/EventHandler.cpp:
* page/FocusController.h:
* page/Geolocation.cpp:
* page/Geolocation.h:
* page/History.cpp:
* rendering/RenderListBox.cpp:
* workers/WorkerContext.cpp:
2011-05-12 Yuta Kitamura <yutak@chromium.org>
Unreviewed, another attempt of build fix.
......@@ -36,6 +36,7 @@
#include "Frame.h"
#include "FrameLoader.h"
#include "FrameSelection.h"
#include "HTMLNames.h"
#include "LocalizedStrings.h"
#include "NodeList.h"
#include "NotImplemented.h"
......
......@@ -44,6 +44,7 @@
#include "HTMLInputElement.h"
#include "HTMLLabelElement.h"
#include "HTMLMapElement.h"
#include "HTMLNames.h"
#include "HTMLOptGroupElement.h"
#include "HTMLOptionElement.h"
#include "HTMLOptionsCollection.h"
......
......@@ -22,6 +22,8 @@
#include "AccessibilityObject.h"
#include "AccessibilityObjectWrapperAtk.h"
#include "Document.h"
#include "Element.h"
#include "GOwnPtr.h"
#include "Range.h"
#include "SelectElement.h"
......
......@@ -51,6 +51,7 @@
#import "HTMLFrameOwnerElement.h"
#import "HTMLImageElement.h"
#import "HTMLInputElement.h"
#import "HTMLNames.h"
#import "HTMLTextAreaElement.h"
#import "LocalizedStrings.h"
#import "RenderTextControl.h"
......
......@@ -29,6 +29,7 @@
#include "Node.h"
#include "Range.h"
#include "RenderObject.h"
#include "RenderedDocumentMarker.h"
#include "TextIterator.h"
......
......@@ -27,9 +27,12 @@
#include "Position.h"
#include "CSSComputedStyleDeclaration.h"
#include "HTMLNames.h"
#include "InlineTextBox.h"
#include "Logging.h"
#include "PositionIterator.h"
#include "RenderBlock.h"
#include "RenderText.h"
#include "Text.h"
#include "TextIterator.h"
#include "VisiblePosition.h"
......
......@@ -26,6 +26,7 @@
#include "config.h"
#include "PositionIterator.h"
#include "HTMLNames.h"
#include "Node.h"
#include "RenderBlock.h"
#include "htmlediting.h"
......
......@@ -33,6 +33,8 @@
#include "HTMLElement.h"
#include "NodeWithIndex.h"
#include "ProcessingInstruction.h"
#include "RenderBoxModelObject.h"
#include "RenderText.h"
#include "Text.h"
#include "TextIterator.h"
#include "VisiblePosition.h"
......
......@@ -29,6 +29,8 @@
#include "HTMLElement.h"
#include "HTMLNames.h"
#include "RenderObject.h"
#include "RenderStyle.h"
#include "Text.h"
#include "TextIterator.h"
#include "VisiblePosition.h"
......
......@@ -44,6 +44,7 @@
#include "NodeList.h"
#include "Range.h"
#include "RenderObject.h"
#include "RenderText.h"
#include "Text.h"
#include "TextIterator.h"
#include "htmlediting.h"
......
......@@ -55,6 +55,7 @@
#include "GraphicsContext.h"
#include "HTMLFrameOwnerElement.h"
#include "HTMLInputElement.h"
#include "HTMLNames.h"
#include "HTMLTextAreaElement.h"
#include "HitTestResult.h"
#include "IndentOutdentCommand.h"
......@@ -76,6 +77,7 @@
#include "SpellChecker.h"
#include "SpellingCorrectionCommand.h"
#include "Text.h"
#include "TextCheckerClient.h"
#include "TextEvent.h"
#include "TextIterator.h"
#include "TypingCommand.h"
......
......@@ -45,6 +45,7 @@
#include "HTMLFontElement.h"
#include "HTMLHRElement.h"
#include "HTMLImageElement.h"
#include "HTMLNames.h"
#include "IndentOutdentCommand.h"
#include "InsertListCommand.h"
#include "KillRing.h"
......
......@@ -47,15 +47,18 @@
#include "HTMLNames.h"
#include "HitTestRequest.h"
#include "HitTestResult.h"
#include "InlineTextBox.h"
#include "Page.h"
#include "Range.h"
#include "RenderLayer.h"
#include "RenderText.h"
#include "RenderTextControl.h"
#include "RenderTheme.h"
#include "RenderView.h"
#include "RenderWidget.h"
#include "SecureTextInput.h"
#include "Settings.h"
#include "SpatialNavigation.h"
#include "TextIterator.h"
#include "TypingCommand.h"
#include "htmlediting.h"
......
......@@ -26,6 +26,7 @@
#include "config.h"
#include "HTMLInterchange.h"
#include "RenderObject.h"
#include "Text.h"
#include "TextIterator.h"
#include <wtf/StdLibExtras.h>
......
......@@ -33,6 +33,7 @@
#include "InsertLineBreakCommand.h"
#include "InsertListCommand.h"
#include "Range.h"
#include "RenderObject.h"
#include "SplitElementCommand.h"
#include "Text.h"
#include "TextIterator.h"
......
......@@ -45,6 +45,7 @@
#include "HTMLInterchange.h"
#include "HTMLNames.h"
#include "NodeList.h"
#include "RenderObject.h"
#include "SmartReplace.h"
#include "TextIterator.h"
#include "htmlediting.h"
......
......@@ -26,15 +26,18 @@
#ifndef SpellChecker_h
#define SpellChecker_h
#include "DocumentMarker.h"
#include "TextCheckerClient.h"
#include "PlatformString.h"
#include "TextChecking.h"
#include <wtf/RefPtr.h>
#include <wtf/Noncopyable.h>
#include <wtf/Vector.h>
namespace WebCore {
class TextCheckerClient;
class Frame;
class Node;
class TextCheckerClient;
struct TextCheckingResult;
class SpellChecker {
WTF_MAKE_NONCOPYABLE(SpellChecker);
......
......@@ -26,11 +26,12 @@
#include "config.h"
#include "SpellingCorrectionCommand.h"
#include "SpellingCorrectionController.h"
#include "Document.h"
#include "DocumentFragment.h"
#include "Frame.h"
#include "ReplaceSelectionCommand.h"
#include "SetSelectionCommand.h"
#include "SpellingCorrectionController.h"
#include "TextIterator.h"
#include "markup.h"
......
......@@ -36,6 +36,7 @@
#include "TextCheckerClient.h"
#include "TextCheckingHelper.h"
#include "TextIterator.h"
#include "VisibleSelection.h"
#include "htmlediting.h"
#include "markup.h"
#include "visible_units.h"
......
......@@ -38,19 +38,16 @@
#endif // #if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
#include "DocumentMarker.h"
#include "EditCommand.h"
#include "FloatRect.h"
#include "Range.h"
#include "Timer.h"
#include "VisibleSelection.h"
#include <wtf/Noncopyable.h>
#include <wtf/UnusedParam.h>
namespace WebCore {
class EditorClient;
class Range;
class TextCheckerClient;
class VisibleSelection;
class EditCommand;
class Frame;
struct CorrectionPanelInfo {
enum PanelType {
......
......@@ -27,6 +27,7 @@
#include "config.h"
#include "TextCheckingHelper.h"
#include "Document.h"
#include "DocumentMarkerController.h"
#include "Range.h"
#include "TextCheckerClient.h"
......
......@@ -27,12 +27,12 @@
#define TextIterator_h
#include "FindOptions.h"
#include "InlineTextBox.h"
#include "Range.h"
#include <wtf/Vector.h>
namespace WebCore {
class InlineTextBox;
class RenderText;
class RenderTextFragment;
......
......@@ -27,8 +27,6 @@
#define htmlediting_h
#include "EditingBoundary.h"
#include "ExceptionCode.h"
#include "HTMLNames.h"
#include "Position.h"
#include "TextDirection.h"
#include <wtf/Forward.h>
......
......@@ -51,6 +51,7 @@
#include "KURL.h"
#include "MarkupAccumulator.h"
#include "Range.h"
#include "RenderObject.h"
#include "TextIterator.h"
#include "VisibleSelection.h"
#include "XMLNSNames.h"
......
......@@ -29,6 +29,7 @@
#include "Document.h"
#include "Element.h"
#include "HTMLNames.h"
#include "InlineTextBox.h"
#include "Position.h"
#include "RenderBlock.h"
#include "RenderLayer.h"
......
......@@ -27,12 +27,11 @@
#define visible_units_h
#include "EditingBoundary.h"
#include "Position.h"
#include "TextAffinity.h"
#include "TextDirection.h"
namespace WebCore {
class RootInlineBox;
class Node;
class VisiblePosition;
enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true };
......
......@@ -38,6 +38,7 @@
#include "DirectoryEntry.h"
#include "ErrorCallback.h"
#include "File.h"
#include "FileCallback.h"
#include "FileEntry.h"
#include "FileMetadata.h"
#include "FileSystemCallbacks.h"
......
......@@ -37,7 +37,6 @@
#include "DirectoryEntrySync.h"
#include "EntryArraySync.h"
#include "EntrySync.h"
#include "ExceptionCode.h"
#include "FileEntrySync.h"
#include "FileException.h"
#include "SyncCallbackHelper.h"
......
......@@ -34,13 +34,15 @@
#if ENABLE(FILE_SYSTEM)
#include "DirectoryReaderBase.h"
#include "EntryArraySync.h"
#include "ExceptionCode.h"
#include "PlatformString.h"
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class EntryArraySync;
class DirectoryReaderSync : public DirectoryReaderBase {
public:
static PassRefPtr<DirectoryReaderSync> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
......
......@@ -34,12 +34,12 @@
#if ENABLE(FILE_SYSTEM)
#include "Entry.h"
#include "FileCallback.h"
#include "FileWriterCallback.h"
namespace WebCore {
class DOMFileSystemBase;
class FileCallback;
class FileWriterCallback;
class FileEntry : public Entry {
public:
......
......@@ -34,6 +34,7 @@
#if ENABLE(FILE_SYSTEM)
#include "ActiveDOMObject.h"
#include "AsyncFileWriterClient.h"
#include "EventTarget.h"
#include "FileWriterBase.h"
#include "ScriptExecutionContext.h"
......
......@@ -33,7 +33,6 @@
#if ENABLE(FILE_SYSTEM)
#include "AsyncFileWriterClient.h"
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
#include <wtf/RefCounted.h>
......@@ -41,7 +40,6 @@
namespace WebCore {
class AsyncFileWriter;
class Blob;
typedef int ExceptionCode;
......
......@@ -33,7 +33,7 @@
#if ENABLE(FILE_SYSTEM)
#include "ActiveDOMObject.h"
#include "AsyncFileWriterClient.h"
#include "FileError.h"
#include "FileWriterBase.h"
#include <wtf/PassRefPtr.h>
......
......@@ -27,6 +27,7 @@
#include "CachedPage.h"
#include "CachedFramePlatformData.h"
#include "Document.h"
#include "DocumentLoader.h"
#include "ExceptionCode.h"
#include "EventNames.h"
......@@ -37,6 +38,7 @@
#include "HistoryItem.h"
#include "Logging.h"
#include "PageTransitionEvent.h"
#include "SerializedScriptValue.h"
#include <wtf/text/CString.h>
#include <wtf/RefCountedLeakCounter.h>
......
......@@ -27,9 +27,12 @@
#include "CachedPage.h"
#include "CSSStyleSelector.h"
#include "Document.h"
#include "Element.h"
#include "FocusController.h"
#include "Frame.h"
#include "FrameView.h"
#include "Node.h"
#include "Page.h"
#include <wtf/CurrentTime.h>
#include <wtf/RefCountedLeakCounter.h>
......
......@@ -31,6 +31,7 @@
#include "IconDatabase.h"
#include "PageCache.h"
#include "ResourceRequest.h"
#include "SerializedScriptValue.h"
#include "SharedBuffer.h"
#include <stdio.h>
#include <wtf/CurrentTime.h>
......
......@@ -28,7 +28,6 @@
#include "IntPoint.h"
#include "PlatformString.h"
#include "SerializedScriptValue.h"
#include <wtf/HashMap.h>
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
......@@ -57,6 +56,7 @@ class HistoryItem;
class Image;
class KURL;
class ResourceRequest;
class SerializedScriptValue;
typedef Vector<RefPtr<HistoryItem> > HistoryItemVector;
......
......@@ -26,7 +26,6 @@
#ifndef PageCache_h
#define PageCache_h
#include "HistoryItem.h"
#include "Timer.h"
#include <wtf/Forward.h>
#include <wtf/HashSet.h>
......
......@@ -32,6 +32,7 @@
#include "FrameLoaderTypes.h"
#include "PlatformString.h"
#include "SerializedScriptValue.h"
#include <wtf/Noncopyable.h>
#include <wtf/RefPtr.h>
......
......@@ -32,7 +32,6 @@
#ifndef PingLoader_h
#define PingLoader_h
#include "FormData.h"
#include "ResourceHandleClient.h"
#include "Timer.h"
#include <wtf/Noncopyable.h>
......@@ -40,6 +39,7 @@
namespace WebCore {
class FormData;
class Frame;
class KURL;
class ResourceError;
......
......@@ -32,19 +32,17 @@
#include "ResourceHandleClient.h"
#include "ResourceRequest.h"
#include "ResourceResponse.h"
#include <wtf/RefCounted.h>
#include "AuthenticationChallenge.h"
#include "KURL.h"
#include <wtf/Forward.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class ApplicationCacheHost;
class AuthenticationChallenge;
class DocumentLoader;
class Frame;
class FrameLoader;
class ProtectionSpace;
class KURL;
class ResourceHandle;
class SharedBuffer;
......
......@@ -29,7 +29,6 @@
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#include "ApplicationCacheHost.h"
#include "EventListener.h"
#include "EventNames.h"
#include "EventTarget.h"
#include <wtf/Forward.h>
......
......@@ -27,12 +27,12 @@
#define CachedCSSStyleSheet_h
#include "CachedResource.h"
#include "TextEncoding.h"
#include <wtf/Vector.h>
namespace WebCore {
class CachedResourceLoader;
class CachedResourceClient;
class SharedBuffer;
class TextResourceDecoder;
class CachedCSSStyleSheet : public CachedResource {
......
......@@ -47,6 +47,7 @@
#if ENABLE(SVG_FONTS)
#include "NodeList.h"
#include "SVGDocument.h"
#include "SVGElement.h"
#include "SVGFontElement.h"
#include "SVGGElement.h"
......
......@@ -31,19 +31,16 @@
#include "FontRenderingMode.h"
#include "FontWidthVariant.h"
#include "TextOrientation.h"
#include <wtf/Vector.h>
#if ENABLE(SVG_FONTS)
#include "SVGElement.h"
#include "SVGDocument.h"
#endif
namespace WebCore {
class CachedResourceClient;
class CachedResourceLoader;
class MemoryCache;
class FontPlatformData;
class SVGDocument;
class SVGFontElement;
class SharedBuffer;
struct FontCustomPlatformData;
struct FontCustomPlatformData;
......
......@@ -37,6 +37,7 @@
#include "ResourceRequest.h"