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

Side by Side Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 if (visiblePos.isNull()) 889 if (visiblePos.isNull())
890 return; 890 return;
891 891
892 Position deepPos = visiblePos.deepEquivalent(); 892 Position deepPos = visiblePos.deepEquivalent();
893 Node* domNode = deepPos.deprecatedNode(); 893 Node* domNode = deepPos.deprecatedNode();
894 ASSERT(domNode); 894 ASSERT(domNode);
895 if (!domNode) 895 if (!domNode)
896 return; 896 return;
897 897
898 if (domNode->isHTMLElement()) { 898 if (domNode->isHTMLElement()) {
899 HTMLInputElement* inputElement = domNode->toInputElement(); 899 Handle<HTMLInputElement> inputElement = domNode->toInputElement();
900 if (inputElement && inputElement->isPasswordField()) 900 if (inputElement && inputElement->isPasswordField())
901 return; 901 return;
902 } 902 }
903 903
904 // find or create an accessibility object for this node 904 // find or create an accessibility object for this node
905 AXObjectCache* cache = domNode->document()->axObjectCache(); 905 AXObjectCache* cache = domNode->document()->axObjectCache();
906 RefPtr<AccessibilityObject> obj = cache->getOrCreate(domNode); 906 RefPtr<AccessibilityObject> obj = cache->getOrCreate(domNode);
907 907
908 textMarkerData.axID = obj.get()->axObjectID(); 908 textMarkerData.axID = obj.get()->axObjectID();
909 textMarkerData.node = domNode; 909 textMarkerData.node = domNode;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) 1037 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode)
1038 { 1038 {
1039 // The anchor node may not be accessible. Post the notification for the 1039 // The anchor node may not be accessible. Post the notification for the
1040 // first accessible object. 1040 // first accessible object.
1041 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode( anchorNode), AXScrolledToAnchor); 1041 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode( anchorNode), AXScrolledToAnchor);
1042 } 1042 }
1043 1043
1044 } // namespace WebCore 1044 } // namespace WebCore
1045 1045
1046 #endif // HAVE(ACCESSIBILITY) 1046 #endif // HAVE(ACCESSIBILITY)
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp ('k') | Source/core/accessibility/AccessibilityListBoxOption.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698