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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user