Bug 1449404 part 3. Get rid of nsIContent::AppendTextTo. r=mccr8
This commit is contained in:
@@ -247,9 +247,8 @@ HTMLOptionElement::GetText(nsAString& aText)
|
||||
|
||||
nsIContent* child = nsINode::GetFirstChild();
|
||||
while (child) {
|
||||
if (child->NodeType() == TEXT_NODE ||
|
||||
child->NodeType() == CDATA_SECTION_NODE) {
|
||||
child->AppendTextTo(text);
|
||||
if (Text* textChild = child->GetAsText()) {
|
||||
textChild->AppendTextTo(text);
|
||||
}
|
||||
if (child->IsHTMLElement(nsGkAtoms::script) ||
|
||||
child->IsSVGElement(nsGkAtoms::script)) {
|
||||
|
||||
Reference in New Issue
Block a user