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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 return 0; 2254 return 0;
2255 2255
2256 return axObjectCacheOwner().m_axObjectCache.get(); 2256 return axObjectCacheOwner().m_axObjectCache.get();
2257 } 2257 }
2258 2258
2259 AXObjectCache* Document::axObjectCache() const 2259 AXObjectCache* Document::axObjectCache() const
2260 { 2260 {
2261 Settings* settings = this->settings(); 2261 Settings* settings = this->settings();
2262 if (!settings || !settings->accessibilityEnabled()) 2262 if (!settings || !settings->accessibilityEnabled())
2263 return 0; 2263 return 0;
2264 return alwaysCreateAxObjectCache();
2265 }
2264 2266
2267 AXObjectCache* Document::alwaysCreateAxObjectCache() const
2268 {
2265 // The only document that actually has a AXObjectCache is the top-level 2269 // The only document that actually has a AXObjectCache is the top-level
2266 // document. This is because we need to be able to get from any WebCoreAXOb ject 2270 // document. This is because we need to be able to get from any WebCoreAXOb ject
2267 // to any other WebCoreAXObject on the same page. Using a single cache allo ws 2271 // to any other WebCoreAXObject on the same page. Using a single cache allo ws
2268 // lookups across nested webareas (i.e. multiple documents). 2272 // lookups across nested webareas (i.e. multiple documents).
2269 Document& cacheOwner = this->axObjectCacheOwner(); 2273 Document& cacheOwner = this->axObjectCacheOwner();
2270 2274
2271 // If the document has already been detached, do not make a new axObjectCach e. 2275 // If the document has already been detached, do not make a new axObjectCach e.
2272 if (!cacheOwner.renderView()) 2276 if (!cacheOwner.renderView())
2273 return 0; 2277 return 0;
2274 2278
(...skipping 3542 matching lines...) Expand 10 before | Expand all | Expand 10 after
5817 #ifndef NDEBUG 5821 #ifndef NDEBUG
5818 using namespace blink; 5822 using namespace blink;
5819 void showLiveDocumentInstances() 5823 void showLiveDocumentInstances()
5820 { 5824 {
5821 WeakDocumentSet& set = liveDocumentSet(); 5825 WeakDocumentSet& set = liveDocumentSet();
5822 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5826 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5823 for (Document* document : set) 5827 for (Document* document : set)
5824 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5828 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5825 } 5829 }
5826 #endif 5830 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Node.h » ('j') | Source/core/dom/Node.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698