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

git-svn-id: svn://10.0.0.236/trunk@6512 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
1998-07-27 05:59:37 +00:00
parent 97be0fee7f
commit 70d80c6f21
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));