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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 1181613002: Added check for leaking AXObjects Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 unsigned Internals::numberOfLiveNodes() const 1454 unsigned Internals::numberOfLiveNodes() const
1455 { 1455 {
1456 return InspectorCounters::counterValue(InspectorCounters::NodeCounter); 1456 return InspectorCounters::counterValue(InspectorCounters::NodeCounter);
1457 } 1457 }
1458 1458
1459 unsigned Internals::numberOfLiveDocuments() const 1459 unsigned Internals::numberOfLiveDocuments() const
1460 { 1460 {
1461 return InspectorCounters::counterValue(InspectorCounters::DocumentCounter); 1461 return InspectorCounters::counterValue(InspectorCounters::DocumentCounter);
1462 } 1462 }
1463 1463
1464 unsigned Internals::numberOfLiveAXObjects() const
1465 {
1466 return AXObjectCache::numberOfLiveAXObjects();
1467 }
1468
1464 String Internals::dumpRefCountedInstanceCounts() const 1469 String Internals::dumpRefCountedInstanceCounts() const
1465 { 1470 {
1466 return WTF::dumpRefCountedInstanceCounts(); 1471 return WTF::dumpRefCountedInstanceCounts();
1467 } 1472 }
1468 1473
1469 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const 1474 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const
1470 { 1475 {
1471 FrameHost* host = document->frameHost(); 1476 FrameHost* host = document->frameHost();
1472 if (!host) 1477 if (!host)
1473 return Vector<String>(); 1478 return Vector<String>();
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 2369
2365 ClientRectList* Internals::focusRingRects(Element* element) 2370 ClientRectList* Internals::focusRingRects(Element* element)
2366 { 2371 {
2367 Vector<LayoutRect> rects; 2372 Vector<LayoutRect> rects;
2368 if (element && element->layoutObject()) 2373 if (element && element->layoutObject())
2369 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); 2374 element->layoutObject()->addFocusRingRects(rects, LayoutPoint());
2370 return ClientRectList::create(rects); 2375 return ClientRectList::create(rects);
2371 } 2376 }
2372 2377
2373 } // namespace blink 2378 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698