Checkin makes scrolling to anchors faster by attempting to scroll to the named element from the content sink's timer routine rather than waiting until page loading completes. b=58661 r=heikki@netscape.com sr=jst@netscape.com a=asa@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@104653 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
locka%iol.ie
2001-10-05 10:39:01 +00:00
parent bfe89e9089
commit 59b39390f6
3 changed files with 37 additions and 7 deletions

View File

@@ -3905,8 +3905,9 @@ PresShell::GoToAnchor(const nsString& aAnchorName)
nsCOMPtr<nsIPref> prefs(do_GetService(kPrefServiceCID,&rv));
if (NS_SUCCEEDED(rv) && prefs) {
PRBool selectAnchor;
rv = prefs->GetBoolPref("layout.selectanchor",&selectAnchor);
if (NS_SUCCEEDED(rv) && selectAnchor) {
nsresult rvPref;
rvPref = prefs->GetBoolPref("layout.selectanchor",&selectAnchor);
if (NS_SUCCEEDED(rvPref) && selectAnchor) {
rv = SelectContent(content);
}
}