Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXMenuList.cpp

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 return; 65 return;
66 66
67 // There's no reason to clear our AXMenuListPopup child. If we get a 67 // There's no reason to clear our AXMenuListPopup child. If we get a
68 // call to clearChildren, it's because the options might have changed, 68 // call to clearChildren, it's because the options might have changed,
69 // so call it on our popup. 69 // so call it on our popup.
70 DCHECK(children_.size() == 1); 70 DCHECK(children_.size() == 1);
71 children_[0]->ClearChildren(); 71 children_[0]->ClearChildren();
72 children_dirty_ = false; 72 children_dirty_ = false;
73 } 73 }
74 74
75 bool AXMenuList::NameFromContents() const {
76 return false;
77 }
78
79 void AXMenuList::AddChildren() { 75 void AXMenuList::AddChildren() {
80 DCHECK(!IsDetached()); 76 DCHECK(!IsDetached());
81 have_children_ = true; 77 have_children_ = true;
82 78
83 AXObjectCacheImpl& cache = AxObjectCache(); 79 AXObjectCacheImpl& cache = AxObjectCache();
84 80
85 AXObjectImpl* list = cache.GetOrCreate(kMenuListPopupRole); 81 AXObjectImpl* list = cache.GetOrCreate(kMenuListPopupRole);
86 if (!list) 82 if (!list)
87 return; 83 return;
88 84
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 146
151 AXMenuListPopup* popup = ToAXMenuListPopup(Children()[0].Get()); 147 AXMenuListPopup* popup = ToAXMenuListPopup(Children()[0].Get());
152 popup->DidHide(); 148 popup->DidHide();
153 149
154 if (GetNode() && GetNode()->IsFocused()) 150 if (GetNode() && GetNode()->IsFocused())
155 AxObjectCache().PostNotification( 151 AxObjectCache().PostNotification(
156 this, AXObjectCacheImpl::kAXFocusedUIElementChanged); 152 this, AXObjectCacheImpl::kAXFocusedUIElementChanged);
157 } 153 }
158 154
159 } // namespace blink 155 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698