Active accessibility fixes. Bug 118633 - null frame checks, bug 118761 - support STATE_SYSTEM_INVISIBLE, bug 118759 - support statusbar, bug 114109 - support dropmarker, bug 118858 and bug 118020 - text nodes shouldn't get focusable state. r's=jgaunt, sr's=hewitt, waterson
git-svn-id: svn://10.0.0.236/trunk@111654 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -338,8 +338,8 @@ NS_IMETHODIMP nsHTMLTextFieldAccessible::GetAccState(PRUint32 *_retval)
|
||||
nsCOMPtr<nsIPresContext> context;
|
||||
shell->GetPresContext(getter_AddRefs(context));
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
||||
nsIFrame *frame;
|
||||
if (content && NS_SUCCEEDED(shell->GetPrimaryFrameFor(content, &frame))) {
|
||||
nsIFrame *frame = nsnull;
|
||||
if (content && NS_SUCCEEDED(shell->GetPrimaryFrameFor(content, &frame)) && frame) {
|
||||
nsCOMPtr<nsISelectionController> selCon;
|
||||
frame->GetSelectionController(context,getter_AddRefs(selCon));
|
||||
if (selCon) {
|
||||
|
||||
Reference in New Issue
Block a user