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> 2011-05-12 Yuta Kitamura <yutak@chromium.org>
Unreviewed, another attempt of build fix. Unreviewed, another attempt of build fix.
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "Frame.h" #include "Frame.h"
#include "FrameLoader.h" #include "FrameLoader.h"
#include "FrameSelection.h" #include "FrameSelection.h"
#include "HTMLNames.h"
#include "LocalizedStrings.h" #include "LocalizedStrings.h"
#include "NodeList.h" #include "NodeList.h"
#include "NotImplemented.h" #include "NotImplemented.h"
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include "HTMLInputElement.h" #include "HTMLInputElement.h"
#include "HTMLLabelElement.h" #include "HTMLLabelElement.h"
#include "HTMLMapElement.h" #include "HTMLMapElement.h"
#include "HTMLNames.h"
#include "HTMLOptGroupElement.h" #include "HTMLOptGroupElement.h"
#include "HTMLOptionElement.h" #include "HTMLOptionElement.h"
#include "HTMLOptionsCollection.h" #include "HTMLOptionsCollection.h"
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include "AccessibilityObject.h" #include "AccessibilityObject.h"
#include "AccessibilityObjectWrapperAtk.h" #include "AccessibilityObjectWrapperAtk.h"
#include "Document.h"
#include "Element.h"
#include "GOwnPtr.h" #include "GOwnPtr.h"
#include "Range.h" #include "Range.h"
#include "SelectElement.h" #include "SelectElement.h"
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#import "HTMLFrameOwnerElement.h" #import "HTMLFrameOwnerElement.h"
#import "HTMLImageElement.h" #import "HTMLImageElement.h"
#import "HTMLInputElement.h" #import "HTMLInputElement.h"
#import "HTMLNames.h"
#import "HTMLTextAreaElement.h" #import "HTMLTextAreaElement.h"
#import "LocalizedStrings.h" #import "LocalizedStrings.h"
#import "RenderTextControl.h" #import "RenderTextControl.h"
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "Node.h" #include "Node.h"
#include "Range.h" #include "Range.h"
#include "RenderObject.h"
#include "RenderedDocumentMarker.h" #include "RenderedDocumentMarker.h"
#include "TextIterator.h" #include "TextIterator.h"
......
...@@ -27,9 +27,12 @@ ...@@ -27,9 +27,12 @@
#include "Position.h" #include "Position.h"
#include "CSSComputedStyleDeclaration.h" #include "CSSComputedStyleDeclaration.h"
#include "HTMLNames.h"
#include "InlineTextBox.h"
#include "Logging.h" #include "Logging.h"
#include "PositionIterator.h" #include "PositionIterator.h"
#include "RenderBlock.h" #include "RenderBlock.h"
#include "RenderText.h"
#include "Text.h" #include "Text.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "VisiblePosition.h" #include "VisiblePosition.h"
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "config.h" #include "config.h"
#include "PositionIterator.h" #include "PositionIterator.h"
#include "HTMLNames.h"
#include "Node.h" #include "Node.h"
#include "RenderBlock.h" #include "RenderBlock.h"
#include "htmlediting.h" #include "htmlediting.h"
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include "HTMLElement.h" #include "HTMLElement.h"
#include "NodeWithIndex.h" #include "NodeWithIndex.h"
#include "ProcessingInstruction.h" #include "ProcessingInstruction.h"
#include "RenderBoxModelObject.h"
#include "RenderText.h"
#include "Text.h" #include "Text.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "VisiblePosition.h" #include "VisiblePosition.h"
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "HTMLElement.h" #include "HTMLElement.h"
#include "HTMLNames.h" #include "HTMLNames.h"
#include "RenderObject.h"
#include "RenderStyle.h"
#include "Text.h" #include "Text.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "VisiblePosition.h" #include "VisiblePosition.h"
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include "NodeList.h" #include "NodeList.h"
#include "Range.h" #include "Range.h"
#include "RenderObject.h" #include "RenderObject.h"
#include "RenderText.h"
#include "Text.h" #include "Text.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "htmlediting.h" #include "htmlediting.h"
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#include "GraphicsContext.h" #include "GraphicsContext.h"
#include "HTMLFrameOwnerElement.h" #include "HTMLFrameOwnerElement.h"
#include "HTMLInputElement.h" #include "HTMLInputElement.h"
#include "HTMLNames.h"
#include "HTMLTextAreaElement.h" #include "HTMLTextAreaElement.h"
#include "HitTestResult.h" #include "HitTestResult.h"
#include "IndentOutdentCommand.h" #include "IndentOutdentCommand.h"
...@@ -76,6 +77,7 @@ ...@@ -76,6 +77,7 @@
#include "SpellChecker.h" #include "SpellChecker.h"
#include "SpellingCorrectionCommand.h" #include "SpellingCorrectionCommand.h"
#include "Text.h" #include "Text.h"
#include "TextCheckerClient.h"
#include "TextEvent.h" #include "TextEvent.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "TypingCommand.h" #include "TypingCommand.h"
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include "HTMLFontElement.h" #include "HTMLFontElement.h"
#include "HTMLHRElement.h" #include "HTMLHRElement.h"
#include "HTMLImageElement.h" #include "HTMLImageElement.h"
#include "HTMLNames.h"
#include "IndentOutdentCommand.h" #include "IndentOutdentCommand.h"
#include "InsertListCommand.h" #include "InsertListCommand.h"
#include "KillRing.h" #include "KillRing.h"
......
...@@ -47,15 +47,18 @@ ...@@ -47,15 +47,18 @@
#include "HTMLNames.h" #include "HTMLNames.h"
#include "HitTestRequest.h" #include "HitTestRequest.h"
#include "HitTestResult.h" #include "HitTestResult.h"
#include "InlineTextBox.h"
#include "Page.h" #include "Page.h"
#include "Range.h" #include "Range.h"
#include "RenderLayer.h" #include "RenderLayer.h"
#include "RenderText.h"
#include "RenderTextControl.h" #include "RenderTextControl.h"
#include "RenderTheme.h" #include "RenderTheme.h"
#include "RenderView.h" #include "RenderView.h"
#include "RenderWidget.h" #include "RenderWidget.h"
#include "SecureTextInput.h" #include "SecureTextInput.h"
#include "Settings.h" #include "Settings.h"
#include "SpatialNavigation.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "TypingCommand.h" #include "TypingCommand.h"
#include "htmlediting.h" #include "htmlediting.h"
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "config.h" #include "config.h"
#include "HTMLInterchange.h" #include "HTMLInterchange.h"
#include "RenderObject.h"
#include "Text.h" #include "Text.h"
#include "TextIterator.h" #include "TextIterator.h"
#include <wtf/StdLibExtras.h> #include <wtf/StdLibExtras.h>
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "InsertLineBreakCommand.h" #include "InsertLineBreakCommand.h"
#include "InsertListCommand.h" #include "InsertListCommand.h"
#include "Range.h" #include "Range.h"
#include "RenderObject.h"
#include "SplitElementCommand.h" #include "SplitElementCommand.h"
#include "Text.h" #include "Text.h"
#include "TextIterator.h" #include "TextIterator.h"
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include "HTMLInterchange.h" #include "HTMLInterchange.h"
#include "HTMLNames.h" #include "HTMLNames.h"
#include "NodeList.h" #include "NodeList.h"
#include "RenderObject.h"
#include "SmartReplace.h" #include "SmartReplace.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "htmlediting.h" #include "htmlediting.h"
......
...@@ -26,15 +26,18 @@ ...@@ -26,15 +26,18 @@
#ifndef SpellChecker_h #ifndef SpellChecker_h
#define SpellChecker_h #define SpellChecker_h
#include "DocumentMarker.h" #include "PlatformString.h"
#include "TextCheckerClient.h" #include "TextChecking.h"
#include <wtf/RefPtr.h>
#include <wtf/Noncopyable.h> #include <wtf/Noncopyable.h>
#include <wtf/Vector.h>
namespace WebCore { namespace WebCore {
class TextCheckerClient;
class Frame; class Frame;
class Node; class Node;
class TextCheckerClient;
struct TextCheckingResult;
class SpellChecker { class SpellChecker {
WTF_MAKE_NONCOPYABLE(SpellChecker); WTF_MAKE_NONCOPYABLE(SpellChecker);
......
...@@ -26,11 +26,12 @@ ...@@ -26,11 +26,12 @@
#include "config.h" #include "config.h"
#include "SpellingCorrectionCommand.h" #include "SpellingCorrectionCommand.h"
#include "SpellingCorrectionController.h" #include "Document.h"
#include "DocumentFragment.h" #include "DocumentFragment.h"
#include "Frame.h" #include "Frame.h"
#include "ReplaceSelectionCommand.h" #include "ReplaceSelectionCommand.h"
#include "SetSelectionCommand.h" #include "SetSelectionCommand.h"
#include "SpellingCorrectionController.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "markup.h" #include "markup.h"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "TextCheckerClient.h" #include "TextCheckerClient.h"
#include "TextCheckingHelper.h" #include "TextCheckingHelper.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "VisibleSelection.h"
#include "htmlediting.h" #include "htmlediting.h"
#include "markup.h" #include "markup.h"
#include "visible_units.h" #include "visible_units.h"
......
...@@ -38,19 +38,16 @@ ...@@ -38,19 +38,16 @@
#endif // #if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) #endif // #if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
#include "DocumentMarker.h" #include "DocumentMarker.h"
#include "EditCommand.h"
#include "FloatRect.h"
#include "Range.h" #include "Range.h"
#include "Timer.h" #include "Timer.h"
#include "VisibleSelection.h"
#include <wtf/Noncopyable.h> #include <wtf/Noncopyable.h>
#include <wtf/UnusedParam.h> #include <wtf/UnusedParam.h>
namespace WebCore { namespace WebCore {
class EditorClient; class EditCommand;
class Range; class Frame;
class TextCheckerClient;
class VisibleSelection;
struct CorrectionPanelInfo { struct CorrectionPanelInfo {
enum PanelType { enum PanelType {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "config.h" #include "config.h"
#include "TextCheckingHelper.h" #include "TextCheckingHelper.h"
#include "Document.h"
#include "DocumentMarkerController.h" #include "DocumentMarkerController.h"
#include "Range.h" #include "Range.h"
#include "TextCheckerClient.h" #include "TextCheckerClient.h"
......
...@@ -27,12 +27,12 @@ ...@@ -27,12 +27,12 @@
#define TextIterator_h #define TextIterator_h
#include "FindOptions.h" #include "FindOptions.h"
#include "InlineTextBox.h"
#include "Range.h" #include "Range.h"
#include <wtf/Vector.h> #include <wtf/Vector.h>
namespace WebCore { namespace WebCore {
class InlineTextBox;
class RenderText; class RenderText;
class RenderTextFragment; class RenderTextFragment;
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#define htmlediting_h #define htmlediting_h
#include "EditingBoundary.h" #include "EditingBoundary.h"
#include "ExceptionCode.h"
#include "HTMLNames.h"
#include "Position.h" #include "Position.h"
#include "TextDirection.h" #include "TextDirection.h"
#include <wtf/Forward.h> #include <wtf/Forward.h>
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include "KURL.h" #include "KURL.h"
#include "MarkupAccumulator.h" #include "MarkupAccumulator.h"
#include "Range.h" #include "Range.h"
#include "RenderObject.h"
#include "TextIterator.h" #include "TextIterator.h"
#include "VisibleSelection.h" #include "VisibleSelection.h"
#include "XMLNSNames.h" #include "XMLNSNames.h"
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "Document.h" #include "Document.h"
#include "Element.h" #include "Element.h"
#include "HTMLNames.h" #include "HTMLNames.h"
#include "InlineTextBox.h"
#include "Position.h" #include "Position.h"
#include "RenderBlock.h" #include "RenderBlock.h"
#include "RenderLayer.h" #include "RenderLayer.h"
......
...@@ -27,12 +27,11 @@ ...@@ -27,12 +27,11 @@
#define visible_units_h #define visible_units_h
#include "EditingBoundary.h" #include "EditingBoundary.h"
#include "Position.h" #include "TextDirection.h"
#include "TextAffinity.h"
namespace WebCore { namespace WebCore {
class RootInlineBox; class Node;
class VisiblePosition; class VisiblePosition;
enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true };
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "DirectoryEntry.h" #include "DirectoryEntry.h"
#include "ErrorCallback.h" #include "ErrorCallback.h"
#include "File.h" #include "File.h"
#include "FileCallback.h"
#include "FileEntry.h" #include "FileEntry.h"
#include "FileMetadata.h" #include "FileMetadata.h"
#include "FileSystemCallbacks.h" #include "FileSystemCallbacks.h"
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "DirectoryEntrySync.h" #include "DirectoryEntrySync.h"
#include "EntryArraySync.h" #include "EntryArraySync.h"
#include "EntrySync.h" #include "EntrySync.h"
#include "ExceptionCode.h"
#include "FileEntrySync.h" #include "FileEntrySync.h"
#include "FileException.h" #include "FileException.h"
#include "SyncCallbackHelper.h" #include "SyncCallbackHelper.h"
......
...@@ -34,13 +34,15 @@ ...@@ -34,13 +34,15 @@
#if ENABLE(FILE_SYSTEM) #if ENABLE(FILE_SYSTEM)
#include "DirectoryReaderBase.h" #include "DirectoryReaderBase.h"
#include "EntryArraySync.h" #include "ExceptionCode.h"
#include "PlatformString.h" #include "PlatformString.h"
#include <wtf/PassRefPtr.h> #include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h> #include <wtf/RefCounted.h>
namespace WebCore { namespace WebCore {
class EntryArraySync;
class DirectoryReaderSync : public DirectoryReaderBase { class DirectoryReaderSync : public DirectoryReaderBase {
public: public:
static PassRefPtr<DirectoryReaderSync> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath) static PassRefPtr<DirectoryReaderSync> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
......
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
#if ENABLE(FILE_SYSTEM) #if ENABLE(FILE_SYSTEM)
#include "Entry.h" #include "Entry.h"
#include "FileCallback.h"
#include "FileWriterCallback.h"
namespace WebCore { namespace WebCore {
class DOMFileSystemBase; class DOMFileSystemBase;
class FileCallback;
class FileWriterCallback;
class FileEntry : public Entry { class FileEntry : public Entry {
public: public:
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#if ENABLE(FILE_SYSTEM) #if ENABLE(FILE_SYSTEM)
#include "ActiveDOMObject.h" #include "ActiveDOMObject.h"
#include "AsyncFileWriterClient.h"
#include "EventTarget.h"