Issue #1356 - Remove -moz-user-input disabled to improve event handling.

This commit is contained in:
athenian200
2020-01-16 14:07:04 -06:00
committed by wolfbeast
parent 7e59ac9036
commit 563dc95cdb
23 changed files with 43 additions and 78 deletions
+1 -7
View File
@@ -150,15 +150,9 @@ nsImageControlFrame::HandleEvent(nsPresContext* aPresContext,
return NS_OK;
}
// do we have user-input style?
const nsStyleUserInterface* uiStyle = StyleUserInterface();
if (uiStyle->mUserInput == StyleUserInput::None ||
uiStyle->mUserInput == StyleUserInput::Disabled) {
if (IsContentDisabled()) {
return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}
if (mContent->HasAttr(kNameSpaceID_None, nsGkAtoms::disabled)) { // XXX cache disabled
return NS_OK;
}
*aEventStatus = nsEventStatus_eIgnore;