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

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

Issue 2140733003: [Editing][CodeHealth] Make Node::rootEditableElement static (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/page/FocusController.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 bool AXObjectCacheImpl::inlineTextBoxAccessibilityEnabled() 1068 bool AXObjectCacheImpl::inlineTextBoxAccessibilityEnabled()
1069 { 1069 {
1070 Settings* settings = this->settings(); 1070 Settings* settings = this->settings();
1071 if (!settings) 1071 if (!settings)
1072 return false; 1072 return false;
1073 return settings->inlineTextBoxAccessibilityEnabled(); 1073 return settings->inlineTextBoxAccessibilityEnabled();
1074 } 1074 }
1075 1075
1076 const Element* AXObjectCacheImpl::rootAXEditableElement(const Node* node) 1076 const Element* AXObjectCacheImpl::rootAXEditableElement(const Node* node)
1077 { 1077 {
1078 const Element* result = node->rootEditableElement(); 1078 const Element* result = rootEditableElement(*node);
1079 const Element* element = node->isElementNode() ? toElement(node) : node->par entElement(); 1079 const Element* element = node->isElementNode() ? toElement(node) : node->par entElement();
1080 1080
1081 for (; element; element = element->parentElement()) { 1081 for (; element; element = element->parentElement()) {
1082 if (nodeIsTextControl(element)) 1082 if (nodeIsTextControl(element))
1083 result = element; 1083 result = element;
1084 } 1084 }
1085 1085
1086 return result; 1086 return result;
1087 } 1087 }
1088 1088
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 visitor->trace(m_document); 1278 visitor->trace(m_document);
1279 visitor->trace(m_nodeObjectMapping); 1279 visitor->trace(m_nodeObjectMapping);
1280 1280
1281 visitor->trace(m_objects); 1281 visitor->trace(m_objects);
1282 visitor->trace(m_notificationsToPost); 1282 visitor->trace(m_notificationsToPost);
1283 1283
1284 AXObjectCache::trace(visitor); 1284 AXObjectCache::trace(visitor);
1285 } 1285 }
1286 1286
1287 } // namespace blink 1287 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/FocusController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698