Bug 1553378 - Devirtualize calls to GetText() / TextLength() when we know we have a Text node. r=smaug,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D32100
This commit is contained in:
@@ -890,8 +890,7 @@ nsresult nsTextControlFrame::SelectAllOrCollapseToEndOfText(bool aSelect) {
|
||||
child = child->GetPreviousSibling();
|
||||
if (child && child->IsText()) {
|
||||
rootNode = child;
|
||||
const nsTextFragment* fragment = child->GetText();
|
||||
numChildren = fragment ? fragment->GetLength() : 0;
|
||||
numChildren = child->AsText()->TextDataLength();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user