Bug 1878976 - Remove plugin-related code in EventStateManager; r=emilio
`nsIFrame::GetCursor()` can never return `Nothing()` after bug 1687239, which removes `nsPluginFrame`. Therefore `mLastFrameConsumedSetCursor` in `EventStateManager` can never be true. Differential Revision: https://phabricator.services.mozilla.com/D200890
This commit is contained in:
@@ -4368,7 +4368,7 @@ NS_IMPL_FRAMEARENA_HELPERS(nsContinuingTextFrame)
|
||||
|
||||
nsTextFrame::~nsTextFrame() = default;
|
||||
|
||||
Maybe<nsIFrame::Cursor> nsTextFrame::GetCursor(const nsPoint& aPoint) {
|
||||
nsIFrame::Cursor nsTextFrame::GetCursor(const nsPoint& aPoint) {
|
||||
StyleCursorKind kind = StyleUI()->Cursor().keyword;
|
||||
if (kind == StyleCursorKind::Auto) {
|
||||
if (!IsSelectable(nullptr)) {
|
||||
@@ -4378,7 +4378,7 @@ Maybe<nsIFrame::Cursor> nsTextFrame::GetCursor(const nsPoint& aPoint) {
|
||||
: StyleCursorKind::Text;
|
||||
}
|
||||
}
|
||||
return Some(Cursor{kind, AllowCustomCursorImage::Yes});
|
||||
return Cursor{kind, AllowCustomCursorImage::Yes};
|
||||
}
|
||||
|
||||
nsTextFrame* nsTextFrame::LastInFlow() const {
|
||||
|
||||
Reference in New Issue
Block a user