When `nsContentUtils::DispatchInputEvent()` dispatches `input` event, the editor's value was changed by somebody. In this case, it needs to update the valid state **and** notify to update the style. (Note that I'm not sure whether this is right approach.) Differential Revision: https://phabricator.services.mozilla.com/D25029