Bug 972085 - Use clearUserPref in settings.js for APZC related settings. r=kats

This commit is contained in:
Vivien Nicolas 2014-02-15 01:45:44 +01:00
parent 11ba09a104
commit ab0b9606af

View File

@ -678,11 +678,11 @@ SettingsListener.observe('apz.force-enable', false, function(value) {
SettingsListener.observe('apz.displayport.heuristics', 'default', function(value) { SettingsListener.observe('apz.displayport.heuristics', 'default', function(value) {
// first reset everything to default // first reset everything to default
Services.prefs.setCharPref('apz.velocity_bias', '1.0'); Services.prefs.clearUserPref('apz.velocity_bias');
Services.prefs.setBoolPref('apz.use_paint_duration', true); Services.prefs.clearUserPref('apz.use_paint_duration');
Services.prefs.setCharPref('apz.x_skate_size_multiplier', '1.5'); Services.prefs.clearUserPref('apz.x_skate_size_multiplier');
Services.prefs.setCharPref('apz.y_skate_size_multiplier', '2.5'); Services.prefs.clearUserPref('apz.y_skate_size_multiplier');
Services.prefs.setBoolPref('apz.allow-checkerboarding', true); Services.prefs.clearUserPref('apz.allow-checkerboarding');
// and then set the things that we want to change // and then set the things that we want to change
switch (value) { switch (value) {
case 'default': case 'default':