Bug 454790 - Allow programmatic selection of -moz-user-select: none frames. r=roc

This commit is contained in:
Josh Matthews 2012-01-12 15:59:19 -05:00
parent 35274f19bf
commit eda4983660

View File

@ -5923,15 +5923,6 @@ nsTextFrame::SetSelectedRange(PRUint32 aStart, PRUint32 aEnd, bool aSelected,
if (aStart == aEnd) if (aStart == aEnd)
return; return;
if (aType == nsISelectionController::SELECTION_NORMAL) {
// check whether style allows selection
bool selectable;
IsSelectable(&selectable, nsnull);
if (!selectable) {
return;
}
}
nsTextFrame* f = this; nsTextFrame* f = this;
while (f && f->GetContentEnd() <= PRInt32(aStart)) { while (f && f->GetContentEnd() <= PRInt32(aStart)) {
f = static_cast<nsTextFrame*>(f->GetNextContinuation()); f = static_cast<nsTextFrame*>(f->GetNextContinuation());