form control content attribute changes (not all) reflected in layout; fixed scrolling on <iframe>, <frame>;

added nsImageControlFrame to handle <input type=image>.
This commit is contained in:
karnaze@netscape.com
1998-11-09 23:30:16 +00:00
parent 3f4192938a
commit 3c901a8811
40 changed files with 1623 additions and 455 deletions

View File

@@ -163,6 +163,8 @@ public:
NS_IMETHOD SetMarginWidth (PRInt32 aWidth);
NS_IMETHOD GetMarginHeight(PRInt32& aWidth);
NS_IMETHOD SetMarginHeight(PRInt32 aHeight);
NS_IMETHOD GetScrolling(PRInt32& aScrolling);
NS_IMETHOD SetScrolling(PRInt32 aScrolling);
// Document load api's
NS_IMETHOD GetDocumentLoader(nsIDocumentLoader*& aResult);
@@ -295,6 +297,7 @@ protected:
nsScrollPreference mScrollPref;
PRInt32 mMarginWidth;
PRInt32 mMarginHeight;
PRInt32 mScrolling;
nsVoidArray mRefreshments;
void ReleaseChildren();
@@ -400,6 +403,7 @@ nsWebShell::nsWebShell()
mScriptContext = nsnull;
mMarginWidth = -1;
mMarginHeight = -1;
mScrolling = -1;
}
nsWebShell::~nsWebShell()
@@ -609,7 +613,7 @@ nsWebShell::Init(nsNativeWidget aNativeParent,
CreatePluginHost(aAllowPlugins);
mScrollPref = aScrolling;
//mScrollPref = aScrolling;
WEB_TRACE(WEB_TRACE_CALLS,
("nsWebShell::Init: this=%p", this));
@@ -1042,6 +1046,19 @@ nsWebShell::SetMarginHeight(PRInt32 aHeight)
return NS_OK;
}
NS_IMETHODIMP
nsWebShell::GetScrolling(PRInt32& aScrolling)
{
aScrolling = mScrolling;
return NS_OK;
}
NS_IMETHODIMP
nsWebShell::SetScrolling(PRInt32 aScrolling)
{
mScrolling = aScrolling;
return NS_OK;
}
/**
* Document Load methods
*/