mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Fixing issue raised in bug 215981.
This commit is contained in:
parent
ee8d0c427a
commit
1e7af0b25f
@ -74,7 +74,7 @@ CompressWhitespace(nsIContent* aContent)
|
||||
PRUint32 numKids = aContent->GetChildCount();
|
||||
for (PRUint32 kid = 0; kid < numKids; kid++) {
|
||||
nsCOMPtr<nsITextContent> tc(do_QueryInterface(aContent->GetChildAt(kid)));
|
||||
if (tc) {
|
||||
if (tc && tc->IsContentOfType(nsIContent::eTEXT)) {
|
||||
nsAutoString text;
|
||||
tc->CopyText(text);
|
||||
text.CompressWhitespace();
|
||||
|
Loading…
Reference in New Issue
Block a user