Bug 1049010, layout should use composed doc, not current doc in many cases, r=wchen

This commit is contained in:
Olli Pettay
2014-08-06 02:23:54 +03:00
parent d65779731f
commit 25487f124e
5 changed files with 6 additions and 6 deletions

View File

@@ -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) {