Skip to content

Commit 759875a

Browse files
committed
Bug 1530193 - followup: Fix default type and value of browser.display.focus_ring_style.
It warns on debug builds.
1 parent 10b02eb commit 759875a

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

layout/base/nsPresContext.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ nsPresContext::nsPresContext(dom::Document* aDocument, nsPresContextType aType)
171171
mPendingInterruptFromTest(false),
172172
mInterruptsEnabled(false),
173173
mSendAfterPaintToContent(false),
174-
mUseFocusColors(false),
175174
mDrawImageBackground(true), // always draw the background
176175
mDrawColorBackground(true),
177176
// mNeverAnimate is initialised below, in constructor body

layout/base/nsPresContext.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,9 +1220,6 @@ class nsPresContext : public nsISupports,
12201220
unsigned mPendingInterruptFromTest : 1;
12211221
unsigned mInterruptsEnabled : 1;
12221222
unsigned mSendAfterPaintToContent : 1;
1223-
unsigned mUseFocusColors : 1;
1224-
unsigned mFocusRingOnAnything : 1;
1225-
unsigned mFocusRingStyle : 1;
12261223
unsigned mDrawImageBackground : 1;
12271224
unsigned mDrawColorBackground : 1;
12281225
unsigned mNeverAnimate : 1;

layout/style/PreferenceSheet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct PreferenceSheet {
3737
bool mUnderlineLinks = true;
3838
bool mUseFocusColors = false;
3939
uint8_t mFocusRingWidth = 1;
40-
bool mFocusRingStyle = false;
40+
uint8_t mFocusRingStyle = 1;
4141
bool mFocusRingOnAnything = false;
4242

4343
void Load(bool aIsChrome);

modules/libpref/init/StaticPrefList.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,11 @@ VARCACHE_PREF(
575575
uint32_t, 1
576576
)
577577

578+
// 0=solid, 1=dotted
578579
VARCACHE_PREF(
579580
"browser.display.focus_ring_style",
580581
browser_display_focus_ring_style,
581-
bool, false
582+
uint32_t, 1
582583
)
583584

584585
VARCACHE_PREF(

0 commit comments

Comments
 (0)