Issue #2106 - Clean-up: Un-prefix -moz-user-select in Comments

This commit is contained in:
Andy 2025-07-07 10:46:13 -07:00 committed by roytam1
commit b11affbdf3
7 changed files with 15 additions and 15 deletions

View file

@ -123,7 +123,7 @@ public:
nsTArray<RangeData>* aOutput);
/**
* AddItem adds aRange to this Selection. If mUserInitiated is true,
* then aRange is first scanned for -moz-user-select:none nodes and split up
* then aRange is first scanned for user-select:none nodes and split up
* into multiple ranges to exclude those before adding the resulting ranges
* to this Selection.
*/
@ -425,7 +425,7 @@ private:
SelectionType mSelectionType;
/**
* True if the current selection operation was initiated by user action.
* It determines whether we exclude -moz-user-select:none nodes or not,
* It determines whether we exclude user-select:none nodes or not,
* as well as whether selectstart events will be fired.
*/
bool mUserInitiated;

View file

@ -3443,7 +3443,7 @@ nsFrame::HandlePress(nsPresContext* aPresContext,
{
// A single node is selected and we aren't extending an existing
// selection, which means the user clicked directly on an object (either
// -moz-user-select: all or a non-text node without children).
// user-select: all or a non-text node without children).
// Therefore, disable selection extension during mouse moves.
// XXX This is a bit hacky; shouldn't editor be able to deal with this?
fc->SetDragState(false);
@ -4251,7 +4251,7 @@ nsIFrame::ContentOffsets nsIFrame::GetContentOffsetsFromPoint(nsPoint aPoint,
adjustedFrame = AdjustFrameForSelectionStyles(this);
// -moz-user-select: all needs special handling, because clicking on it
// user-select: all needs special handling, because clicking on it
// should lead to the whole frame being selected
if (adjustedFrame && adjustedFrame->StyleUIReset()->mUserSelect ==
StyleUserSelect::All) {

View file

@ -14,7 +14,7 @@
}
*|*:read-only > :read-write {
/* override the above -moz-user-select: all rule. */
/* override the above user-select: all rule. */
user-select: -moz-text;
}