| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 AXObject* list = cache.getOrCreate(MenuListPopupRole); | 85 AXObject* list = cache.getOrCreate(MenuListPopupRole); |
| 86 if (!list) | 86 if (!list) |
| 87 return; | 87 return; |
| 88 | 88 |
| 89 toAXMockObject(list)->setParent(this); | 89 toAXMockObject(list)->setParent(this); |
| 90 if (list->accessibilityIsIgnored()) { | 90 if (list->accessibilityIsIgnored()) { |
| 91 cache.remove(list->axObjectID()); | 91 cache.remove(list->axObjectID()); |
| 92 return; | 92 return; |
| 93 } | 93 } |
| 94 | 94 |
| 95 m_children.append(list); | 95 m_children.push_back(list); |
| 96 | 96 |
| 97 list->addChildren(); | 97 list->addChildren(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool AXMenuList::isCollapsed() const { | 100 bool AXMenuList::isCollapsed() const { |
| 101 // Collapsed is the "default" state, so if the LayoutObject doesn't exist | 101 // Collapsed is the "default" state, so if the LayoutObject doesn't exist |
| 102 // this makes slightly more sense than returning false. | 102 // this makes slightly more sense than returning false. |
| 103 if (!m_layoutObject) | 103 if (!m_layoutObject) |
| 104 return true; | 104 return true; |
| 105 | 105 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 AXMenuListPopup* popup = toAXMenuListPopup(children()[0].get()); | 151 AXMenuListPopup* popup = toAXMenuListPopup(children()[0].get()); |
| 152 popup->didHide(); | 152 popup->didHide(); |
| 153 | 153 |
| 154 if (getNode() && getNode()->isFocused()) | 154 if (getNode() && getNode()->isFocused()) |
| 155 axObjectCache().postNotification( | 155 axObjectCache().postNotification( |
| 156 this, AXObjectCacheImpl::AXFocusedUIElementChanged); | 156 this, AXObjectCacheImpl::AXFocusedUIElementChanged); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |