Fixing mac bustage.
git-svn-id: svn://10.0.0.236/trunk@156109 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user