mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 399594. Description not exposed when on object with display:none, Patch by vasiliy.potapenko@gmail.com. r=aaronlev, r=surkov, r=ginn.chen, a=schrep
This commit is contained in:
parent
0d763e0583
commit
bcc923eced
@ -1549,9 +1549,13 @@ nsresult nsAccessible::AppendFlatStringFromContentNode(nsIContent *aContent, nsA
|
||||
}
|
||||
if (aContent->TextLength() > 0) {
|
||||
nsIFrame *frame = shell->GetPrimaryFrameFor(aContent);
|
||||
NS_ENSURE_TRUE(frame, NS_ERROR_FAILURE);
|
||||
nsresult rv = frame->GetRenderedText(aFlatString);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (frame) {
|
||||
nsresult rv = frame->GetRenderedText(aFlatString);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
} else {
|
||||
//if aContent is an object that is display: none, we have no a frame
|
||||
aContent->AppendTextTo(*aFlatString);
|
||||
}
|
||||
if (isHTMLBlock && !aFlatString->IsEmpty()) {
|
||||
aFlatString->Append(PRUnichar(' '));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user