mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 454790 - Allow programmatic selection of -moz-user-select: none frames. r=roc
This commit is contained in:
parent
35274f19bf
commit
eda4983660
@ -5923,15 +5923,6 @@ nsTextFrame::SetSelectedRange(PRUint32 aStart, PRUint32 aEnd, bool aSelected,
|
||||
if (aStart == aEnd)
|
||||
return;
|
||||
|
||||
if (aType == nsISelectionController::SELECTION_NORMAL) {
|
||||
// check whether style allows selection
|
||||
bool selectable;
|
||||
IsSelectable(&selectable, nsnull);
|
||||
if (!selectable) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
nsTextFrame* f = this;
|
||||
while (f && f->GetContentEnd() <= PRInt32(aStart)) {
|
||||
f = static_cast<nsTextFrame*>(f->GetNextContinuation());
|
||||
|
Loading…
Reference in New Issue
Block a user