| OLD | NEW |
| 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 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 unsigned Internals::numberOfLiveDocuments() const | 1593 unsigned Internals::numberOfLiveDocuments() const |
| 1594 { | 1594 { |
| 1595 return InstanceCounters::counterValue(InstanceCounters::DocumentCounter); | 1595 return InstanceCounters::counterValue(InstanceCounters::DocumentCounter); |
| 1596 } | 1596 } |
| 1597 | 1597 |
| 1598 String Internals::dumpRefCountedInstanceCounts() const | 1598 String Internals::dumpRefCountedInstanceCounts() const |
| 1599 { | 1599 { |
| 1600 return WTF::dumpRefCountedInstanceCounts(); | 1600 return WTF::dumpRefCountedInstanceCounts(); |
| 1601 } | 1601 } |
| 1602 | 1602 |
| 1603 unsigned Internals::numberOfConsoleMessages(Document* document) const | |
| 1604 { | |
| 1605 if (!document->frame()) | |
| 1606 return 0; | |
| 1607 | |
| 1608 MainThreadDebugger* debugger = MainThreadDebugger::instance(); | |
| 1609 unsigned total = 0; | |
| 1610 unsigned withArguments = 0; | |
| 1611 debugger->debugger()->consoleMessagesCount(debugger->contextGroupId(document
->frame()), &total, &withArguments); | |
| 1612 return total; | |
| 1613 } | |
| 1614 | |
| 1615 unsigned Internals::numberOfConsoleMessagesWithArguments(Document* document) con
st | |
| 1616 { | |
| 1617 if (!document->frame()) | |
| 1618 return 0; | |
| 1619 | |
| 1620 MainThreadDebugger* debugger = MainThreadDebugger::instance(); | |
| 1621 unsigned total = 0; | |
| 1622 unsigned withArguments = 0; | |
| 1623 debugger->debugger()->consoleMessagesCount(debugger->contextGroupId(document
->frame()), &total, &withArguments); | |
| 1624 return withArguments; | |
| 1625 } | |
| 1626 | |
| 1627 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) | 1603 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) |
| 1628 { | 1604 { |
| 1629 Vector<unsigned long> result; | 1605 Vector<unsigned long> result; |
| 1630 result.append(memoryCache()->minDeadCapacity()); | 1606 result.append(memoryCache()->minDeadCapacity()); |
| 1631 result.append(memoryCache()->maxDeadCapacity()); | 1607 result.append(memoryCache()->maxDeadCapacity()); |
| 1632 result.append(memoryCache()->capacity()); | 1608 result.append(memoryCache()->capacity()); |
| 1633 memoryCache()->setCapacities(minDeadBytes, maxDeadBytes, totalBytes); | 1609 memoryCache()->setCapacities(minDeadBytes, maxDeadBytes, totalBytes); |
| 1634 return result; | 1610 return result; |
| 1635 } | 1611 } |
| 1636 | 1612 |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2635 } | 2611 } |
| 2636 | 2612 |
| 2637 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2613 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2638 { | 2614 { |
| 2639 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2615 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2640 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2616 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2641 return String(); | 2617 return String(); |
| 2642 } | 2618 } |
| 2643 | 2619 |
| 2644 } // namespace blink | 2620 } // namespace blink |
| OLD | NEW |