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) {
// first reset everything to default
Services.prefs.setCharPref('apz.velocity_bias', '1.0');
Services.prefs.setBoolPref('apz.use_paint_duration', true);
Services.prefs.setCharPref('apz.x_skate_size_multiplier', '1.5');
Services.prefs.setCharPref('apz.y_skate_size_multiplier', '2.5');
Services.prefs.setBoolPref('apz.allow-checkerboarding', true);
Services.prefs.clearUserPref('apz.velocity_bias');
Services.prefs.clearUserPref('apz.use_paint_duration');
Services.prefs.clearUserPref('apz.x_skate_size_multiplier');
Services.prefs.clearUserPref('apz.y_skate_size_multiplier');
Services.prefs.clearUserPref('apz.allow-checkerboarding');
// and then set the things that we want to change
switch (value) {
case 'default':