Backed out changeset c97ffb4d1b95 (bug 1714524) for causing mochitest failures in test_focusrings.xhtml

CLOSED TREE
This commit is contained in:
Alexandru Michis 2021-06-08 04:34:29 +03:00
Родитель 0a9065018a
Коммит 1d2f036537
4 изменённых файлов: 1 добавлений и 20 удалений

Просмотреть файл

@ -1,7 +0,0 @@
<!doctype html>
<style>
input {
outline: 1px solid green;
}
</style>
<input>

Просмотреть файл

@ -1,8 +0,0 @@
<!doctype html>
<style>
input:focus {
outline: 1px solid green;
caret-color: transparent;
}
</style>
<input autofocus>

Просмотреть файл

@ -13,7 +13,6 @@ skip-if(nativeThemePref) == outline-auto-002.html outline-auto-002-ref.html
pref(layout.css.outline-style-auto.enabled,false) == outline-auto-001.html outline-auto-001-solid-ref.html
skip-if(nativeThemePref) != outline-auto-follows-border-radius-non-native.html outline-auto-follows-border-radius-non-native-notref.html
skip-if(nativeThemePref) == outline-auto-follows-border-radius-non-native-02.html outline-auto-follows-border-radius-non-native.html
needs-focus skip-if(nativeThemePref) == outline-auto-suppressed-native-widget.html outline-auto-suppressed-native-widget-ref.html
== outline-initial-1a.html outline-initial-1-ref.html
== outline-initial-1b.html outline-initial-1-ref.html
== outline-on-table.html outline-on-table-ref.html

Просмотреть файл

@ -1812,10 +1812,7 @@ bool nsNativeBasicTheme::DoDrawWidgetBackground(PaintBackendData& aPaintData,
}
}
// Don't paint the outline if we're asked not to draw overflow, or if the
// author has specified another kind of outline on focus.
if (aDrawOverflow == DrawOverflow::No ||
!aFrame->StyleOutline()->mOutlineStyle.IsAuto()) {
if (aDrawOverflow == DrawOverflow::No) {
eventState &= ~NS_EVENT_STATE_FOCUSRING;
}