b=253332, Implement Page Style > None; patch from fantasai, r=dbaron,a=ben
git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@161354 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2093,7 +2093,7 @@ nsDocShell::AddChild(nsIDocShellTreeItem * aChild)
|
||||
if (!childAsDocShell)
|
||||
return NS_OK;
|
||||
|
||||
// charset and zoom will be inherited in SetupNewViewer()
|
||||
// charset, style-disabling, and zoom will be inherited in SetupNewViewer()
|
||||
|
||||
// Now take this document's charset and set the parentCharset field of the
|
||||
// child's DocumentCharsetInfo to it. We'll later use that field, in the
|
||||
@@ -4705,6 +4705,7 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
|
||||
PRInt32 hintCharsetSource;
|
||||
nsCAutoString prevDocCharset;
|
||||
float textZoom;
|
||||
PRBool styleDisabled;
|
||||
// |newMUDV| also serves as a flag to set the data from the above vars
|
||||
nsCOMPtr<nsIMarkupDocumentViewer> newMUDV;
|
||||
|
||||
@@ -4743,6 +4744,9 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
|
||||
NS_ENSURE_SUCCESS(oldMUDV->
|
||||
GetTextZoom(&textZoom),
|
||||
NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(oldMUDV->
|
||||
GetAuthorStyleDisabled(&styleDisabled),
|
||||
NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(oldMUDV->
|
||||
GetPrevDocCharacterSet(prevDocCharset),
|
||||
NS_ERROR_FAILURE);
|
||||
@@ -4874,6 +4878,8 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
|
||||
NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(newMUDV->SetTextZoom(textZoom),
|
||||
NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(newMUDV->SetAuthorStyleDisabled(styleDisabled),
|
||||
NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
// End copying block (Don't mess with the old content/document viewer
|
||||
|
||||
Reference in New Issue
Block a user