| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 551 |
| 552 return AXObjectCache::focusedUIElementForPage(page); | 552 return AXObjectCache::focusedUIElementForPage(page); |
| 553 } | 553 } |
| 554 | 554 |
| 555 Document* AccessibilityObject::document() const | 555 Document* AccessibilityObject::document() const |
| 556 { | 556 { |
| 557 FrameView* frameView = documentFrameView(); | 557 FrameView* frameView = documentFrameView(); |
| 558 if (!frameView) | 558 if (!frameView) |
| 559 return 0; | 559 return 0; |
| 560 | 560 |
| 561 return frameView->frame()->document(); | 561 return frameView->frame().document(); |
| 562 } | 562 } |
| 563 | 563 |
| 564 FrameView* AccessibilityObject::documentFrameView() const | 564 FrameView* AccessibilityObject::documentFrameView() const |
| 565 { | 565 { |
| 566 const AccessibilityObject* object = this; | 566 const AccessibilityObject* object = this; |
| 567 while (object && !object->isAccessibilityRenderObject()) | 567 while (object && !object->isAccessibilityRenderObject()) |
| 568 object = object->parentObject(); | 568 object = object->parentObject(); |
| 569 | 569 |
| 570 if (!object) | 570 if (!object) |
| 571 return 0; | 571 return 0; |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 | 982 |
| 983 for (AccessibilityObject* object = parentObject(); object; object = object->
parentObject()) { | 983 for (AccessibilityObject* object = parentObject(); object; object = object->
parentObject()) { |
| 984 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true")) | 984 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true")) |
| 985 return true; | 985 return true; |
| 986 } | 986 } |
| 987 | 987 |
| 988 return false; | 988 return false; |
| 989 } | 989 } |
| 990 | 990 |
| 991 } // namespace WebCore | 991 } // namespace WebCore |
| OLD | NEW |