Fix issue where iframe content wasn't included in the accessibility tree.

Have RenderWidget notify the accessibility object when its widget changes,
otherwise the AccessibilityRenderObject for the iframe might have a stale
reference to the previous widget. (This wouldn't crash, it'd just result in
an empty subtree until some other event triggered it to update.)

Also, remove a check that made isAttachment return false if an iframe
element had an ARIA role. I don't believe an ARIA role on an iframe should
ever have the effect of hiding its contents - it's unlikely that's what the web
author wanted, and if the web author really wants that they can use
aria-hidden.

This allows us to re-enable this test, that was previously
failing flakily because of this bug: loading-iframe-updates-axtree.html

BUG=242811
R=aboxhall@chromium.org

Review URL: https://codereview.chromium.org/15674002

git-svn-id: svn://svn.chromium.org/blink/trunk@151615 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed