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

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

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 years, 8 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) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 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 * 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 *relatedObjects = localRelatedObjects; 851 *relatedObjects = localRelatedObjects;
852 return accumulatedText.toString(); 852 return accumulatedText.toString();
853 } 853 }
854 854
855 void AXObject::tokenVectorFromAttribute(Vector<String>& tokens, const QualifiedN ame& attribute) const 855 void AXObject::tokenVectorFromAttribute(Vector<String>& tokens, const QualifiedN ame& attribute) const
856 { 856 {
857 Node* node = this->getNode(); 857 Node* node = this->getNode();
858 if (!node || !node->isElementNode()) 858 if (!node || !node->isElementNode())
859 return; 859 return;
860 860
861 String attributeValue = getAttribute(attribute).string(); 861 String attributeValue = getAttribute(attribute).getString();
862 if (attributeValue.isEmpty()) 862 if (attributeValue.isEmpty())
863 return; 863 return;
864 864
865 attributeValue.simplifyWhiteSpace(); 865 attributeValue.simplifyWhiteSpace();
866 attributeValue.split(' ', tokens); 866 attributeValue.split(' ', tokens);
867 } 867 }
868 868
869 void AXObject::elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element >>& elements, const QualifiedName& attribute) const 869 void AXObject::elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element >>& elements, const QualifiedName& attribute) const
870 { 870 {
871 Vector<String> ids; 871 Vector<String> ids;
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 1685
1686 DEFINE_TRACE(AXObject) 1686 DEFINE_TRACE(AXObject)
1687 { 1687 {
1688 visitor->trace(m_children); 1688 visitor->trace(m_children);
1689 visitor->trace(m_parent); 1689 visitor->trace(m_parent);
1690 visitor->trace(m_cachedLiveRegionRoot); 1690 visitor->trace(m_cachedLiveRegionRoot);
1691 visitor->trace(m_axObjectCache); 1691 visitor->trace(m_axObjectCache);
1692 } 1692 }
1693 1693
1694 } // namespace blink 1694 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698