Commit 647be15c authored by darin's avatar darin

Reviewed by Geoff.

        - more preparation for splitting up Frame into sub-pieces
        - removed unnecessary includes from Frame.h

        * page/Frame.h: Removed unneeded includes and forward declarations.
        Added additional forward declarations. Removed the constant
        NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
        Created sections of functions to be moved into Chrome, Editor,
        EventHandler, FrameLoader, SelectionController, and the Platform
        directory, as well as marking one function for deletion.

        * page/FramePrivate.h: Removed the definition of the constructor and
        destructor and removed unnecessary includes.

        * page/FrameView.h: Removed unneeded forward declarations and friend
        declarations. Created a section of functions and data to be moved into
        EventHandler.

        * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
        Created sections of functions and data to be moved into Chrome,
        Editor, EventHandler, FrameLoader, and the Platform directory.

        * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
        Removed unused methods areScrollbarsVisible,
        nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.

        * page/Frame.cpp:
        (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
        to include KURL.h just for the KURL default constructor.
        (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
        (WebCore::FramePrivate::~FramePrivate): Ditto.

        * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
        booleans, scrollbarMoved and cleared funcitons.
        (WebCore::FrameView::clear): Moved the code from the cleared
        function in here.
        (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.

        * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
        for changes to header.

        * editing/SelectionController.cpp:
        (WebCore::SelectionController::setSelection):
        (WebCore::SelectionController::xPosForVerticalArrowNavigation):
        Moved NoXPosForVerticalArrowNavigation into this file.

        * bindings/js/kjs_events.cpp:
        * bindings/js/kjs_html.cpp:
        * bindings/js/kjs_window.cpp:
        * bridge/mac/WebCoreAXObject.mm:
        * bridge/mac/WebCoreFrameBridge.mm:
        * css/cssstyleselector.cpp:
        * dom/Document.cpp:
        * dom/Element.cpp:
        * dom/EventTargetNode.cpp:
        * dom/MouseRelatedEvent.cpp:
        * dom/XMLTokenizer.cpp:
        * html/HTMLBaseElement.cpp:
        * html/HTMLDocument.cpp:
        * html/HTMLEmbedElement.cpp:
        * html/HTMLFrameElementBase.cpp:
        * html/HTMLGenericFormElement.cpp:
        * html/HTMLObjectElement.cpp:
        * html/HTMLTokenizer.cpp:
        * loader/mac/FrameLoaderMac.mm:
        * page/PageState.cpp:
        * rendering/RenderApplet.cpp:
        * rendering/RenderBlock.cpp:
        * rendering/RenderLayer.cpp:
        * rendering/RenderObject.cpp:
        * rendering/RenderPartObject.cpp:
        * rendering/RenderTreeAsText.cpp:
        * xml/XSLTProcessor.cpp:
        Added includes as needed to keep compiling, since there are fewer
        includes in Frame.h.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5ec33463
2006-11-05 Darin Adler <darin@apple.com>
Reviewed by Geoff.
- more preparation for splitting up Frame into sub-pieces
- removed unnecessary includes from Frame.h
* page/Frame.h: Removed unneeded includes and forward declarations.
Added additional forward declarations. Removed the constant
NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
Created sections of functions to be moved into Chrome, Editor,
EventHandler, FrameLoader, SelectionController, and the Platform
directory, as well as marking one function for deletion.
* page/FramePrivate.h: Removed the definition of the constructor and
destructor and removed unnecessary includes.
* page/FrameView.h: Removed unneeded forward declarations and friend
declarations. Created a section of functions and data to be moved into
EventHandler.
* bridge/mac/FrameMac.h: Removed unneeded forward declarations.
Created sections of functions and data to be moved into Chrome,
Editor, EventHandler, FrameLoader, and the Platform directory.
* bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
Removed unused methods areScrollbarsVisible,
nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
* page/Frame.cpp:
(WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
to include KURL.h just for the KURL default constructor.
(WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
(WebCore::FramePrivate::~FramePrivate): Ditto.
* page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
booleans, scrollbarMoved and cleared funcitons.
(WebCore::FrameView::clear): Moved the code from the cleared
function in here.
(WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
* bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
for changes to header.
* editing/SelectionController.cpp:
(WebCore::SelectionController::setSelection):
(WebCore::SelectionController::xPosForVerticalArrowNavigation):
Moved NoXPosForVerticalArrowNavigation into this file.
* bindings/js/kjs_events.cpp:
* bindings/js/kjs_html.cpp:
* bindings/js/kjs_window.cpp:
* bridge/mac/WebCoreAXObject.mm:
* bridge/mac/WebCoreFrameBridge.mm:
* css/cssstyleselector.cpp:
* dom/Document.cpp:
* dom/Element.cpp:
* dom/EventTargetNode.cpp:
* dom/MouseRelatedEvent.cpp:
* dom/XMLTokenizer.cpp:
* html/HTMLBaseElement.cpp:
* html/HTMLDocument.cpp:
* html/HTMLEmbedElement.cpp:
* html/HTMLFrameElementBase.cpp:
* html/HTMLGenericFormElement.cpp:
* html/HTMLObjectElement.cpp:
* html/HTMLTokenizer.cpp:
* loader/mac/FrameLoaderMac.mm:
* page/PageState.cpp:
* rendering/RenderApplet.cpp:
* rendering/RenderBlock.cpp:
* rendering/RenderLayer.cpp:
* rendering/RenderObject.cpp:
* rendering/RenderPartObject.cpp:
* rendering/RenderTreeAsText.cpp:
* xml/XSLTProcessor.cpp:
Added includes as needed to keep compiling, since there are fewer
includes in Frame.h.
2006-11-05 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Dave Harrison.
......@@ -21,9 +21,9 @@
#include "config.h"
#include "kjs_events.h"
#include "CString.h"
#include "Clipboard.h"
#include "ClipboardEvent.h"
#include "CString.h"
#include "Document.h"
#include "Event.h"
#include "EventNames.h"
......@@ -36,6 +36,7 @@
#include "JSMutationEvent.h"
#include "JSOverflowEvent.h"
#include "JSWheelEvent.h"
#include "KURL.h"
#include "KeyboardEvent.h"
#include "MouseEvent.h"
#include "MutationEvent.h"
......
......@@ -25,6 +25,7 @@
#include "DocLoader.h"
#include "EventNames.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLAppletElement.h"
#include "HTMLAreaElement.h"
#include "HTMLBRElement.h"
......
......@@ -34,6 +34,7 @@
#include "FrameLoadRequest.h"
#include "FrameLoader.h"
#include "FrameTree.h"
#include "FrameView.h"
#include "HTMLDocument.h"
#include "JSCSSRule.h"
#include "JSCSSValue.h"
......
This diff is collapsed.
......@@ -37,6 +37,8 @@
#import "Cursor.h"
#import "DOMInternal.h"
#import "DocumentLoader.h"
#import "EditCommand.h"
#import "EditorClient.h"
#import "Event.h"
#import "EventNames.h"
#import "FloatRect.h"
......@@ -47,6 +49,7 @@
#import "FrameLoaderClient.h"
#import "FrameLoaderTypes.h"
#import "FramePrivate.h"
#import "FrameView.h"
#import "GraphicsContext.h"
#import "HTMLDocument.h"
#import "HTMLFormElement.h"
......@@ -83,6 +86,7 @@
#import "WebScriptObjectPrivate.h"
#import "csshelper.h"
#import "htmlediting.h"
#import "kjs_proxy.h"
#import "kjs_window.h"
#import "visible_units.h"
#import <Carbon/Carbon.h>
......@@ -160,13 +164,13 @@ static SEL selectorForKeyEvent(const PlatformKeyboardEvent* event)
FrameMac::FrameMac(Page* page, Element* ownerElement, PassRefPtr<EditorClient> client)
: Frame(page, ownerElement, client)
, _bridge(nil)
, _bindingRoot(0)
, _windowScriptObject(0)
, _windowScriptNPObject(0)
, _mouseDownView(nil)
, _sendingEventToSubview(false)
, _mouseDownMayStartSelect(false)
, _activationEventNumber(0)
, _bindingRoot(0)
, _windowScriptObject(0)
, _windowScriptNPObject(0)
{
if (!sharedDragInfo)
sharedDragInfo = new FrameMacDragInfo;
......
......@@ -31,16 +31,16 @@
#import "EventNames.h"
#import "FontData.h"
#import "FrameMac.h"
#import "FrameView.h"
#import "HTMLAreaElement.h"
#import "HTMLCollection.h"
#import "HTMLTextAreaElement.h"
#import "htmlediting.h"
#import "HTMLFrameElement.h"
#import "HTMLInputElement.h"
#import "HTMLLabelElement.h"
#import "HTMLMapElement.h"
#import "HTMLNames.h"
#import "HTMLSelectElement.h"
#import "HTMLTextAreaElement.h"
#import "HitTestRequest.h"
#import "HitTestResult.h"
#import "RenderImage.h"
......@@ -55,6 +55,7 @@
#import "WebCoreFrameBridge.h"
#import "WebCoreFrameView.h"
#import "WebCoreViewFactory.h"
#import "htmlediting.h"
#import "kjs_html.h"
#import "visible_units.h"
#include <mach-o/dyld.h>
......
......@@ -370,9 +370,6 @@ typedef enum {
// The WebCoreFrameBridge protocol contains methods for use by the WebCore side of the bridge.
// In NSArray objects for post data, NSData objects represent literal data, and NSString objects represent encoded files.
// The encoding is the standard form encoding for uploading files.
@protocol WebCoreFrameBridge
- (NSView *)documentView;
......@@ -384,16 +381,15 @@ typedef enum {
- (WebCoreFrameBridge *)createChildFrameNamed:(NSString *)frameName withURL:(NSURL *)URL referrer:(const WebCore::String&)referrer ownerElement:(WebCoreElement *)ownerElement allowsScrolling:(BOOL)allowsScrolling marginWidth:(int)width marginHeight:(int)height;
- (BOOL)areToolbarsVisible;
- (NSWindow *)window;
- (void)setToolbarsVisible:(BOOL)visible;
- (BOOL)isStatusbarVisible;
- (void)setStatusbarVisible:(BOOL)visible;
- (BOOL)areScrollbarsVisible;
- (void)setScrollbarsVisible:(BOOL)visible;
- (NSWindow *)window;
- (void)setWindowIsResizable:(BOOL)resizable;
- (BOOL)windowIsResizable;
- (BOOL)areToolbarsVisible;
- (BOOL)isStatusbarVisible;
- (NSResponder *)firstResponder;
- (void)makeFirstResponder:(NSResponder *)responder;
......@@ -419,7 +415,6 @@ typedef enum {
- (void)formControlIsResigningFirstResponder:(NSView *)formControl;
- (NSView *)nextKeyViewOutsideWebFrameViews;
- (NSView *)nextValidKeyViewOutsideWebFrameViews;
- (NSView *)previousKeyViewOutsideWebFrameViews;
- (void)saveDocumentState:(NSArray *)documentState;
......@@ -467,8 +462,6 @@ typedef enum {
- (void)setHasBorder:(BOOL)hasBorder;
- (NSFileWrapper *)fileWrapperForURL:(NSURL *)URL;
- (void)print;
- (jobject)getAppletInView:(NSView *)view;
......@@ -508,7 +501,6 @@ typedef enum {
- (NSString*)imageTitleForFilename:(NSString*)filename size:(NSSize)size;
@end
// This interface definition allows those who hold a WebCoreFrameBridge * to call all the methods
......@@ -518,9 +510,8 @@ typedef enum {
@interface WebCoreFrameBridge (SubclassResponsibility) <WebCoreFrameBridge>
@end
// Protocols that make up part of the interaces above.
// Protocols that make up part of the interfaces above.
@protocol WebCoreRenderTreeCopier <NSObject>
- (NSObject *)nodeWithName:(NSString *)name position:(NSPoint)p rect:(NSRect)rect view:(NSView *)view children:(NSArray *)children;
@end
......@@ -44,6 +44,7 @@
#import "FrameLoaderClient.h"
#import "FrameMac.h"
#import "FrameTree.h"
#import "FrameView.h"
#import "GraphicsContext.h"
#import "HTMLDocument.h"
#import "HTMLFormElement.h"
......
......@@ -44,6 +44,7 @@
#include "FontFamilyValue.h"
#include "FontValue.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLDocument.h"
#include "HTMLElement.h"
#include "HTMLInputElement.h"
......
......@@ -42,10 +42,9 @@
#include "EventNames.h"
#include "ExceptionCode.h"
#include "Frame.h"
#if PLATFORM(MAC)
#include "FrameLoader.h"
#endif
#include "FrameTree.h"
#include "FrameView.h"
#include "HTMLBodyElement.h"
#include "HTMLDocument.h"
#include "HTMLElementFactory.h"
......
......@@ -22,6 +22,7 @@
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "Element.h"
......@@ -29,6 +30,7 @@
#include "Document.h"
#include "ExceptionCode.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLNames.h"
#include "NamedAttrMap.h"
#include "RenderBlock.h"
......
......@@ -32,6 +32,7 @@
#include "EventListener.h"
#include "EventNames.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLNames.h"
#include "TextStream.h"
#include "KeyboardEvent.h"
......
......@@ -28,6 +28,7 @@
#include "DOMWindow.h"
#include "Document.h"
#include "Frame.h"
#include "FrameView.h"
#include "Node.h"
#include "RenderLayer.h"
#include "RenderObject.h"
......
......@@ -35,6 +35,7 @@
#include "DocumentType.h"
#include "EventNames.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLNames.h"
#include "HTMLScriptElement.h"
#include "HTMLTableSectionElement.h"
......
......@@ -33,6 +33,7 @@
#include "EventNames.h"
#include "Frame.h"
#include "FrameTree.h"
#include "FrameView.h"
#include "GraphicsContext.h"
#include "HTMLInputElement.h"
#include "HTMLNames.h"
......@@ -51,6 +52,8 @@ namespace WebCore {
using namespace EventNames;
using namespace HTMLNames;
const int NoXPosForVerticalArrowNavigation = INT_MIN;
SelectionController::SelectionController(Frame* frame, bool isDragCaretController)
: m_needsLayout(true)
, m_modifyBiasSet(false)
......@@ -124,7 +127,7 @@ void SelectionController::setSelection(const Selection& s, bool closeTyping, boo
m_frame->selectionLayoutChanged();
// Always clear the x position used for vertical arrow navigation.
// It will be restored by the vertical arrow navigation code if necessary.
m_frame->setXPosForVerticalArrowNavigation(Frame::NoXPosForVerticalArrowNavigation);
m_frame->setXPosForVerticalArrowNavigation(NoXPosForVerticalArrowNavigation);
selectFrameElementInParentIfFullySelected();
m_frame->notifyRendererOfSelectionChange(userTriggered);
m_frame->respondToChangedSelection(oldSelection, closeTyping);
......@@ -644,7 +647,7 @@ int SelectionController::xPosForVerticalArrowNavigation(EPositionType type, bool
if (!frame)
return x;
if (recalc || frame->xPosForVerticalArrowNavigation() == Frame::NoXPosForVerticalArrowNavigation) {
if (recalc || frame->xPosForVerticalArrowNavigation() == NoXPosForVerticalArrowNavigation) {
pos = VisiblePosition(pos, m_sel.affinity()).deepEquivalent();
x = pos.node()->renderer()->caretRect(pos.offset(), m_sel.affinity()).x();
frame->setXPosForVerticalArrowNavigation(x);
......
......@@ -21,12 +21,14 @@
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "HTMLBaseElement.h"
#include "Document.h"
#include "Frame.h"
#include "HTMLNames.h"
#include "KURL.h"
#include "csshelper.h"
namespace WebCore {
......
......@@ -65,6 +65,7 @@
#include "HTMLElementFactory.h"
#include "HTMLNames.h"
#include "HTMLTokenizer.h"
#include "KURL.h"
#include "cssstyleselector.h"
#include "DocTypeStrings.cpp"
......
......@@ -26,6 +26,7 @@
#include "CSSPropertyNames.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLDocument.h"
#include "HTMLNames.h"
#include "csshelper.h"
......
......@@ -33,6 +33,7 @@
#include "FrameView.h"
#include "HTMLNames.h"
#include "HTMLFrameSetElement.h"
#include "KURL.h"
#include "Page.h"
#include "RenderFrame.h"
......
......@@ -30,9 +30,10 @@
#include "EventNames.h"
#include "Frame.h"
#include "HTMLFormElement.h"
#include "HTMLNames.h"
#include "RenderTheme.h"
#include "RenderWidget.h"
#include "HTMLNames.h"
#include "Widget.h"
namespace WebCore {
......
......@@ -27,6 +27,7 @@
#include "EventNames.h"
#include "ExceptionCode.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLFormElement.h"
#include "HTMLDocument.h"
#include "HTMLImageLoader.h"
......
......@@ -34,6 +34,7 @@
#include "DocumentFragment.h"
#include "EventNames.h"
#include "Frame.h"
#include "FrameView.h"
#include "HTMLViewSourceDocument.h"
#include "HTMLElement.h"
#include "SystemTime.h"
......
......@@ -53,6 +53,7 @@
#import "ResourceResponse.h"
#import "ResourceResponseMac.h"
#import "SubresourceLoader.h"
#import "TextResourceDecoder.h"
#import "WebCoreFrameBridge.h"
#import "WebCoreIconDatabaseBridge.h"
#import "WebCorePageBridge.h"
......
......@@ -36,14 +36,18 @@
#include "Cache.h"
#include "CachedCSSStyleSheet.h"
#include "DOMImplementation.h"
#include "DOMWindow.h"
#include "DocLoader.h"
#include "DocumentType.h"
#include "EditingText.h"
#include "EditorClient.h"
#include "Event.h"
#include "EventNames.h"
#include "FloatRect.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "FrameLoadRequest.h"
#include "FrameView.h"
#include "GraphicsContext.h"
#include "HTMLFormElement.h"
#include "HTMLFrameElement.h"
......@@ -80,6 +84,7 @@
#include "XMLTokenizer.h"
#include "cssstyleselector.h"
#include "htmlediting.h"
#include "kjs_proxy.h"
#include "kjs_window.h"
#include "markup.h"
#include "visible_units.h"
......@@ -845,6 +850,11 @@ const String& Frame::responseMIMEType() const
return d->m_responseMIMEType;
}
void Frame::begin()
{
begin(KURL());
}
void Frame::begin(const KURL& url)
{
if (d->m_workingURL.isEmpty())
......@@ -3553,4 +3563,69 @@ void Frame::setProhibitsScrolling(const bool prohibit)
d->m_prohibitsScrolling = prohibit;
}
FramePrivate::FramePrivate(Page* page, Frame* parent, Frame* thisFrame, Element* ownerElement, PassRefPtr<EditorClient> client)
: m_page(page)
, m_treeNode(thisFrame, parent)
, m_ownerElement(ownerElement)
, m_jscript(0)
, m_runningScripts(0)
, m_bJScriptEnabled(true)
, m_bJavaEnabled(true)
, m_bPluginsEnabled(true)
, m_settings(0)
, m_bComplete(true)
, m_bLoadingMainResource(false)
, m_bLoadEventEmitted(true)
, m_bUnloadEventEmitted(true)
, m_haveEncoding(false)
, m_bHTTPRefresh(false)
, m_redirectLockHistory(false)
, m_redirectUserGesture(false)
, m_cachePolicy(CachePolicyVerify)
, m_redirectionTimer(thisFrame, &Frame::redirectionTimerFired)
, m_scheduledRedirection(noRedirectionScheduled)
, m_delayRedirect(0)
, m_zoomFactor(parent ? parent->d->m_zoomFactor : 100)
, m_submitForm(0)
, m_bMousePressed(false)
, m_beganSelectingText(false)
, m_selectionController(thisFrame)
, m_caretBlinkTimer(thisFrame, &Frame::caretBlinkTimerFired)
, m_editor(thisFrame, client)
, m_command(thisFrame)
, m_caretVisible(false)
, m_caretPaint(true)
, m_bFirstData(true)
, m_bCleared(true)
, m_isActive(false)
, m_opener(0)
, m_openedByJS(false)
, m_bPendingChildRedirection(false)
, m_executingJavaScriptFormAction(false)
, m_cancelWithLoadInProgress(false)
, m_lifeSupportTimer(thisFrame, &Frame::lifeSupportTimerFired)
, m_loader(new FrameLoader(thisFrame))
, m_userStyleSheetLoader(0)
, m_iconLoader(0)
, m_autoscrollTimer(thisFrame, &Frame::autoscrollTimerFired)
, m_autoscrollRenderer(0)
, m_mouseDownMayStartAutoscroll(false)
, m_mouseDownMayStartDrag(false)
, m_paintRestriction(PaintRestrictionNone)
, m_markedTextUsesUnderlines(false)
, m_highlightTextMatches(false)
, m_windowHasFocus(false)
, m_inViewSourceMode(false)
, frameCount(0)
, m_prohibitsScrolling(false)
{
}
FramePrivate::~FramePrivate()
{
delete m_jscript;
delete m_loader;
delete m_iconLoader;
}
} // namespace WebCore
This diff is collapsed.
......@@ -27,27 +27,18 @@
#ifndef FramePrivate_h
#define FramePrivate_h
#include "CSSMutableStyleDeclaration.h"
#include "CachePolicy.h"
#include "CommandByName.h"
#include "DOMWindow.h"
#include "TextResourceDecoder.h"
#include "EditCommand.h"
#include "Editor.h"
#include "EditorClient.h"
#include "FormData.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "FrameTree.h"
#include "IconLoader.h"
#include "KURL.h"
#include "SelectionController.h"
#include "StringHash.h"
#include "Timer.h"
#include "kjs_proxy.h"
#include <wtf/HashMap.h>
namespace WebCore {
class IconLoader;
class TextResourceDecoder;
class UserStyleSheetLoader;
......@@ -61,70 +52,8 @@ namespace WebCore {
class FramePrivate {
public:
FramePrivate(Page* page, Frame* parent, Frame* thisFrame, Element* ownerElement, PassRefPtr<EditorClient> client)
: m_page(page)
, m_treeNode(thisFrame, parent)
, m_ownerElement(ownerElement)
, m_jscript(0)
, m_runningScripts(0)
, m_bJScriptEnabled(true)
, m_bJavaEnabled(true)
, m_bPluginsEnabled(true)
, m_settings(0)
, m_bComplete(true)
, m_bLoadingMainResource(false)
, m_bLoadEventEmitted(true)
, m_bUnloadEventEmitted(true)
, m_haveEncoding(false)
, m_bHTTPRefresh(false)
, m_redirectLockHistory(false)
, m_redirectUserGesture(false)
, m_cachePolicy(CachePolicyVerify)
, m_redirectionTimer(thisFrame, &Frame::redirectionTimerFired)
, m_scheduledRedirection(noRedirectionScheduled)
, m_delayRedirect(0)
, m_zoomFactor(parent ? parent->d->m_zoomFactor : 100)
, m_submitForm(0)
, m_bMousePressed(false)
, m_beganSelectingText(false)
, m_selectionController(thisFrame)
, m_caretBlinkTimer(thisFrame, &Frame::caretBlinkTimerFired)
, m_editor(thisFrame, client)
, m_command(thisFrame)
, m_caretVisible(false)
, m_caretPaint(true)
, m_bFirstData(true)
, m_bCleared(true)
, m_isActive(false)
, m_opener(0)
, m_openedByJS(false)
, m_bPendingChildRedirection(false)
, m_executingJavaScriptFormAction(false)
, m_cancelWithLoadInProgress(false)
, m_lifeSupportTimer(thisFrame, &Frame::lifeSupportTimerFired)
, m_loader(new FrameLoader(thisFrame))
, m_userStyleSheetLoader(0)
, m_iconLoader(0)
, m_autoscrollTimer(thisFrame, &Frame::autoscrollTimerFired)
, m_autoscrollRenderer(0)
, m_mouseDownMayStartAutoscroll(false)
, m_mouseDownMayStartDrag(false)
, m_paintRestriction(PaintRestrictionNone)
, m_markedTextUsesUnderlines(false)
, m_highlightTextMatches(false)
, m_windowHasFocus(false)
, m_inViewSourceMode(false)
, frameCount(0)
, m_prohibitsScrolling(false)
{
}
~FramePrivate()
{
delete m_jscript;
delete m_loader;
delete m_iconLoader;