summaryrefslogtreecommitdiffstats
path: root/layout/base
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-01-16 14:07:04 -0600
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:16:31 +0200
commit563dc95cdbdd94496360f14fc277c4b8fc79bbab (patch)
tree8c0dd0fb0fc73264d0a513f06497155071c598d1 /layout/base
parent7e59ac9036ae2cbb91ff216e50eac75b9588557a (diff)
downloadUXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.gz
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.lz
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.xz
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.zip
Issue #1356 - Remove -moz-user-input disabled to improve event handling.
Diffstat (limited to 'layout/base')
-rw-r--r--layout/base/nsCaret.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/layout/base/nsCaret.cpp b/layout/base/nsCaret.cpp
index eca22f3ba..8396726c6 100644
--- a/layout/base/nsCaret.cpp
+++ b/layout/base/nsCaret.cpp
@@ -511,7 +511,7 @@ nsCaret::GetPaintGeometry(nsRect* aRect)
CheckSelectionLanguageChange();
int32_t frameOffset;
- nsIFrame *frame = GetFrameAndOffset(GetSelectionInternal(),
+ nsIFrame* frame = GetFrameAndOffset(GetSelectionInternal(),
mOverrideContent, mOverrideOffset, &frameOffset);
if (!frame) {
return nullptr;
@@ -521,8 +521,7 @@ nsCaret::GetPaintGeometry(nsRect* aRect)
const nsStyleUserInterface* userinterface = frame->StyleUserInterface();
if ((!mIgnoreUserModify &&
userinterface->mUserModify == StyleUserModify::ReadOnly) ||
- userinterface->mUserInput == StyleUserInput::None ||
- userinterface->mUserInput == StyleUserInput::Disabled) {
+ frame->IsContentDisabled()){
return nullptr;
}