Bug 1049010, layout should use composed doc, not current doc in many cases, r=wchen
This commit is contained in:
@@ -632,7 +632,7 @@ void nsTextControlFrame::SetFocus(bool aOn, bool aRepaint)
|
||||
if (!isFocusedRightNow) {
|
||||
// Don't scroll the current selection if we've been focused using the mouse.
|
||||
uint32_t lastFocusMethod = 0;
|
||||
nsIDocument* doc = GetContent()->GetCurrentDoc();
|
||||
nsIDocument* doc = GetContent()->GetComposedDoc();
|
||||
if (doc) {
|
||||
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
|
||||
if (fm) {
|
||||
|
||||
Reference in New Issue
Block a user