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

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

Issue 12703031: Revert 146726 "AXObjectCache gets recreated during document tear..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | Source/WebCore/dom/ContainerNode.cpp » ('j') | 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) 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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 } 839 }
840 840
841 void AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates() 841 void AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates()
842 { 842 {
843 if (!m_computedObjectAttributeCache) 843 if (!m_computedObjectAttributeCache)
844 m_computedObjectAttributeCache = AXComputedObjectAttributeCache::create( ); 844 m_computedObjectAttributeCache = AXComputedObjectAttributeCache::create( );
845 } 845 }
846 846
847 void AXObjectCache::stopCachingComputedObjectAttributes() 847 void AXObjectCache::stopCachingComputedObjectAttributes()
848 { 848 {
849 if (m_computedObjectAttributeCache) 849 m_computedObjectAttributeCache.clear();
850 m_computedObjectAttributeCache.clear();
851 } 850 }
852 851
853 VisiblePosition AXObjectCache::visiblePositionForTextMarkerData(TextMarkerData& textMarkerData) 852 VisiblePosition AXObjectCache::visiblePositionForTextMarkerData(TextMarkerData& textMarkerData)
854 { 853 {
855 if (!isNodeInUse(textMarkerData.node)) 854 if (!isNodeInUse(textMarkerData.node))
856 return VisiblePosition(); 855 return VisiblePosition();
857 856
858 // FIXME: Accessability should make it clear these are DOM-compliant offsets or store Position objects. 857 // FIXME: Accessability should make it clear these are DOM-compliant offsets or store Position objects.
859 VisiblePosition visiblePos = VisiblePosition(createLegacyEditingPosition(tex tMarkerData.node, textMarkerData.offset), textMarkerData.affinity); 858 VisiblePosition visiblePos = VisiblePosition(createLegacyEditingPosition(tex tMarkerData.node, textMarkerData.offset), textMarkerData.affinity);
860 Position deepPos = visiblePos.deepEquivalent(); 859 Position deepPos = visiblePos.deepEquivalent();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 936
938 if (!node->isElementNode()) 937 if (!node->isElementNode())
939 return false; 938 return false;
940 939
941 return equalIgnoringCase(toElement(node)->getAttribute(aria_hiddenAttr), "fa lse"); 940 return equalIgnoringCase(toElement(node)->getAttribute(aria_hiddenAttr), "fa lse");
942 } 941 }
943 942
944 } // namespace WebCore 943 } // namespace WebCore
945 944
946 #endif // HAVE(ACCESSIBILITY) 945 #endif // HAVE(ACCESSIBILITY)
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698