зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 3c67de8ae3fd (bug 1756210
) for causing failures at test_focusrings.xhtml. CLOSED TREE
This commit is contained in:
Родитель
7991ca6079
Коммит
a563f4db9f
|
@ -1,5 +0,0 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
input { caret-color: transparent }
|
||||
</style>
|
||||
<input autofocus>
|
|
@ -1,5 +0,0 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
input { outline-style: auto }
|
||||
</style>
|
||||
<input>
|
|
@ -14,7 +14,6 @@ pref(layout.css.outline-style-auto.enabled,false) == outline-auto-001.html outli
|
|||
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
|
||||
needs-focus skip-if(nativeThemePref) == outline-auto-explicit-native-widget.html outline-auto-explicit-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
|
||||
|
|
|
@ -1065,12 +1065,10 @@ bool Theme::DoDrawWidgetBackground(PaintBackendData& aPaintData,
|
|||
}
|
||||
}
|
||||
|
||||
// Paint the outline iff we're asked to draw overflow and we have
|
||||
// outline-style: auto.
|
||||
if (aDrawOverflow == DrawOverflow::Yes &&
|
||||
aFrame->StyleOutline()->mOutlineStyle.IsAuto()) {
|
||||
eventState |= NS_EVENT_STATE_FOCUSRING;
|
||||
} else {
|
||||
// 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()) {
|
||||
eventState &= ~NS_EVENT_STATE_FOCUSRING;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче