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

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

Issue 1675163002: Rename ComposedTree to FlatTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 10 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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 925
926 Node* node = m_private->node(); 926 Node* node = m_private->node();
927 if (!node) 927 if (!node)
928 return; 928 return;
929 929
930 Element* element = nullptr; 930 Element* element = nullptr;
931 if (node->isElementNode()) { 931 if (node->isElementNode()) {
932 element = toElement(node); 932 element = toElement(node);
933 } else { 933 } else {
934 node->updateDistribution(); 934 node->updateDistribution();
935 ContainerNode* parent = ComposedTreeTraversal::parent(*node); 935 ContainerNode* parent = FlatTreeTraversal::parent(*node);
936 ASSERT_WITH_SECURITY_IMPLICATION(parent->isElementNode()); 936 ASSERT_WITH_SECURITY_IMPLICATION(parent->isElementNode());
937 element = toElement(parent); 937 element = toElement(parent);
938 } 938 }
939 939
940 if (!element) 940 if (!element)
941 return; 941 return;
942 942
943 LocalFrame* frame = element->document().frame(); 943 LocalFrame* frame = element->document().frame();
944 if (!frame) 944 if (!frame)
945 return; 945 return;
(...skipping 562 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

Powered by Google App Engine
This is Rietveld 408576698