Fixing mac bustage.

git-svn-id: svn://10.0.0.236/trunk@156109 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2004-05-07 21:40:22 +00:00
parent 09c93ae07d
commit 781f5d6a9f
2 changed files with 3 additions and 6 deletions

View File

@@ -751,12 +751,9 @@ nsAccessibilityService::CreateHTMLTextAccessible(nsISupports *aFrame, nsIAccessi
// If empty text string, don't include in accessible tree
// Items with length 0 are already gone, we also need to check for single NBSP's
// or newlines, both of which indicate an empty text object
PRInt32 textLength = 0;
textContent->GetTextLength(&textLength);
PRInt32 textLength = textContent->TextLength();
if (textLength == 1) {
const nsTextFragment *textFrag;
textContent->GetText(&textFrag);
PRUnichar theChar = textFrag->CharAt(0);
PRUnichar theChar = textContent->Text()->CharAt(0);
// Check for NBSP (160) or newline
if (theChar == 160 || theChar=='\n')
return NS_ERROR_FAILURE;

View File

@@ -998,7 +998,7 @@ NS_IMETHODIMP nsAccessible::AppendFlatStringFromContentNode(nsIContent *aContent
}
nsCOMPtr<nsITextContent> textContent(do_QueryInterface(aContent));
if (textContent) {
if (textContent) {
// If it's a text node, but node a comment node, append the text
nsCOMPtr<nsIDOMComment> commentNode(do_QueryInterface(aContent));
if (!commentNode) {