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

Side by Side Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 1761633002: One accessibility tree per frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix is-richly-editable test Created 4 years, 9 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 if (isDetached()) 117 if (isDetached())
118 return -1; 118 return -1;
119 119
120 return m_private->axObjectID(); 120 return m_private->axObjectID();
121 } 121 }
122 122
123 bool WebAXObject::updateLayoutAndCheckValidity() 123 bool WebAXObject::updateLayoutAndCheckValidity()
124 { 124 {
125 if (!isDetached()) { 125 if (!isDetached()) {
126 Document* document = m_private->getDocument(); 126 Document* document = m_private->getDocument();
127 if (!document || !document->topDocument().view()) 127 if (!document || !document->view())
128 return false; 128 return false;
129 document->view()->updateAllLifecyclePhases(); 129 document->view()->updateAllLifecyclePhases();
130 } 130 }
131 131
132 // Doing a layout can cause this object to be invalid, so check again. 132 // Doing a layout can cause this object to be invalid, so check again.
133 return !isDetached(); 133 return !isDetached();
134 } 134 }
135 135
136 WebString WebAXObject::actionVerb() const 136 WebString WebAXObject::actionVerb() const
137 { 137 {
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 m_private = object; 1508 m_private = object;
1509 return *this; 1509 return *this;
1510 } 1510 }
1511 1511
1512 WebAXObject::operator AXObject*() const 1512 WebAXObject::operator AXObject*() const
1513 { 1513 {
1514 return m_private.get(); 1514 return m_private.get();
1515 } 1515 }
1516 1516
1517 } // namespace blink 1517 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp ('k') | ui/accessibility/ax_tree_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698