mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 1263330, only initialize focus ring state for non-top-level windows, r=smaug
This commit is contained in:
parent
10d25a9f48
commit
fd43d35e0e
@ -10028,8 +10028,13 @@ nsGlobalWindow::GetFocusMethod()
|
||||
void
|
||||
nsGlobalWindow::InitializeShowFocusRings()
|
||||
{
|
||||
MOZ_ASSERT(IsInnerWindow());
|
||||
|
||||
// Initialize the focus ring state from the parent window. For root windows,
|
||||
// there is no need to do this as SetKeyboardIndicators will propogate any
|
||||
// non-default value to child windows.
|
||||
nsPIDOMWindowOuter* root = GetPrivateRoot();
|
||||
if (root) {
|
||||
if (root && GetOuterWindow() != root) {
|
||||
bool showAccelerators = false, showFocusRings = false;
|
||||
root->GetKeyboardIndicators(&showAccelerators, &showFocusRings);
|
||||
mShowFocusRings = showFocusRings;
|
||||
|
Loading…
Reference in New Issue
Block a user