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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h

Issue 2957733002: Only call TextChanged on existing AXObjects. This avoids triggering the code which calls UpdateDist… (Closed)
Patch Set: Created 3 years, 5 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) 2014, Google Inc. All rights reserved. 2 * Copyright (C) 2014, Google 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 HeapVector<std::pair<Member<AXObjectImpl>, AXNotification>> 247 HeapVector<std::pair<Member<AXObjectImpl>, AXNotification>>
248 notifications_to_post_; 248 notifications_to_post_;
249 void NotificationPostTimerFired(TimerBase*); 249 void NotificationPostTimerFired(TimerBase*);
250 250
251 AXObjectImpl* FocusedImageMapUIElement(HTMLAreaElement*); 251 AXObjectImpl* FocusedImageMapUIElement(HTMLAreaElement*);
252 252
253 AXID GetOrCreateAXID(AXObjectImpl*); 253 AXID GetOrCreateAXID(AXObjectImpl*);
254 254
255 void TextChanged(Node*); 255 void TextChanged(Node*);
256 bool NodeIsTextControl(const Node*); 256 bool NodeIsTextControl(const Node*);
257 AXObjectImpl* NearestExistingAncestor(Node*);
257 258
258 Settings* GetSettings(); 259 Settings* GetSettings();
259 }; 260 };
260 261
261 // This is the only subclass of AXObjectCache. 262 // This is the only subclass of AXObjectCache.
262 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); 263 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true);
263 264
264 bool NodeHasRole(Node*, const String& role); 265 bool NodeHasRole(Node*, const String& role);
265 // This will let you know if aria-hidden was explicitly set to false. 266 // This will let you know if aria-hidden was explicitly set to false.
266 bool IsNodeAriaVisible(Node*); 267 bool IsNodeAriaVisible(Node*);
267 268
268 } // namespace blink 269 } // namespace blink
269 270
270 #endif 271 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698