Bug 867950 - Refactor HTMLInputElement::{Clone,RestoreState,SaveState}() to use GetValueMode() instead of mType. r=smaug