more robust frameset layout; <frame>, <iframe> borders; reenabled scrolling attr for <iframe>

This commit is contained in:
karnaze@netscape.com
1998-07-27 05:59:37 +00:00
parent 3f0401abf8
commit 73c151fd7a
15 changed files with 418 additions and 128 deletions

View File

@@ -175,6 +175,8 @@ protected:
nsString mOverURL;
nsString mOverTarget;
nsScrollPreference mScrollPref;
void ReleaseChildren();
};
@@ -208,7 +210,7 @@ nsWebShell::nsWebShell()
{
NS_INIT_REFCNT();
mHistoryIndex = -1;
mScrollPref = nsScrollPreference_kAuto;
mScriptGlobal = nsnull;
mScriptContext = nsnull;
}
@@ -327,7 +329,8 @@ nsWebShell::Embed(nsIContentViewer* aContentViewer,
bounds.x = bounds.y = 0;
rv = mContentViewer->Init(mWindow->GetNativeData(NS_NATIVE_WIDGET),
mDeviceContext,
bounds);
bounds,
mScrollPref);
if (NS_OK == rv) {
mContentViewer->Show();
}
@@ -343,6 +346,8 @@ nsWebShell::Init(nsNativeWidget aNativeParent,
const nsRect& aBounds,
nsScrollPreference aScrolling)
{
mScrollPref = aScrolling;
WEB_TRACE(WEB_TRACE_CALLS,
("nsWebShell::Init: this=%p", this));