| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 #include "core/html/HTMLInputElement.h" | 87 #include "core/html/HTMLInputElement.h" |
| 88 #include "core/html/HTMLMediaElement.h" | 88 #include "core/html/HTMLMediaElement.h" |
| 89 #include "core/html/HTMLSelectElement.h" | 89 #include "core/html/HTMLSelectElement.h" |
| 90 #include "core/html/HTMLTextAreaElement.h" | 90 #include "core/html/HTMLTextAreaElement.h" |
| 91 #include "core/html/canvas/CanvasFontCache.h" | 91 #include "core/html/canvas/CanvasFontCache.h" |
| 92 #include "core/html/canvas/CanvasRenderingContext.h" | 92 #include "core/html/canvas/CanvasRenderingContext.h" |
| 93 #include "core/html/forms/FormController.h" | 93 #include "core/html/forms/FormController.h" |
| 94 #include "core/html/shadow/ShadowElementNames.h" | 94 #include "core/html/shadow/ShadowElementNames.h" |
| 95 #include "core/html/shadow/TextControlInnerElements.h" | 95 #include "core/html/shadow/TextControlInnerElements.h" |
| 96 #include "core/input/EventHandler.h" | 96 #include "core/input/EventHandler.h" |
| 97 #include "core/inspector/ConsoleMessageStorage.h" | |
| 98 #include "core/inspector/InspectorConsoleAgent.h" | |
| 99 #include "core/inspector/InspectorInstrumentation.h" | 97 #include "core/inspector/InspectorInstrumentation.h" |
| 100 #include "core/inspector/InstanceCounters.h" | 98 #include "core/inspector/InstanceCounters.h" |
| 99 #include "core/inspector/MainThreadDebugger.h" |
| 101 #include "core/layout/LayoutMenuList.h" | 100 #include "core/layout/LayoutMenuList.h" |
| 102 #include "core/layout/LayoutObject.h" | 101 #include "core/layout/LayoutObject.h" |
| 103 #include "core/layout/LayoutTreeAsText.h" | 102 #include "core/layout/LayoutTreeAsText.h" |
| 104 #include "core/layout/api/LayoutMenuListItem.h" | 103 #include "core/layout/api/LayoutMenuListItem.h" |
| 105 #include "core/layout/api/LayoutViewItem.h" | 104 #include "core/layout/api/LayoutViewItem.h" |
| 106 #include "core/layout/compositing/CompositedLayerMapping.h" | 105 #include "core/layout/compositing/CompositedLayerMapping.h" |
| 107 #include "core/layout/compositing/PaintLayerCompositor.h" | 106 #include "core/layout/compositing/PaintLayerCompositor.h" |
| 108 #include "core/loader/DocumentLoader.h" | 107 #include "core/loader/DocumentLoader.h" |
| 109 #include "core/loader/FrameLoader.h" | 108 #include "core/loader/FrameLoader.h" |
| 110 #include "core/loader/HistoryItem.h" | 109 #include "core/loader/HistoryItem.h" |
| (...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 unsigned Internals::numberOfLiveDocuments() const | 1581 unsigned Internals::numberOfLiveDocuments() const |
| 1583 { | 1582 { |
| 1584 return InstanceCounters::counterValue(InstanceCounters::DocumentCounter); | 1583 return InstanceCounters::counterValue(InstanceCounters::DocumentCounter); |
| 1585 } | 1584 } |
| 1586 | 1585 |
| 1587 String Internals::dumpRefCountedInstanceCounts() const | 1586 String Internals::dumpRefCountedInstanceCounts() const |
| 1588 { | 1587 { |
| 1589 return WTF::dumpRefCountedInstanceCounts(); | 1588 return WTF::dumpRefCountedInstanceCounts(); |
| 1590 } | 1589 } |
| 1591 | 1590 |
| 1592 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const | 1591 unsigned Internals::numberOfConsoleMessages(Document* document) const |
| 1593 { | 1592 { |
| 1594 FrameHost* host = document->frameHost(); | 1593 if (!document->frame()) |
| 1595 if (!host) | 1594 return 0; |
| 1596 return Vector<String>(); | |
| 1597 | 1595 |
| 1598 Vector<unsigned> counts = host->consoleMessageStorage().argumentCounts(); | 1596 MainThreadDebugger* debugger = MainThreadDebugger::instance(); |
| 1599 Vector<String> result(counts.size()); | 1597 unsigned total = 0; |
| 1600 for (size_t i = 0; i < counts.size(); i++) | 1598 unsigned withArguments = 0; |
| 1601 result[i] = String::number(counts[i]); | 1599 debugger->debugger()->consoleMessagesCount(debugger->contextGroupId(document
->frame()), &total, &withArguments); |
| 1602 return result; | 1600 return total; |
| 1601 } |
| 1602 |
| 1603 unsigned Internals::numberOfConsoleMessagesWithArguments(Document* document) con
st |
| 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 withArguments; |
| 1603 } | 1613 } |
| 1604 | 1614 |
| 1605 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) | 1615 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) |
| 1606 { | 1616 { |
| 1607 Vector<unsigned long> result; | 1617 Vector<unsigned long> result; |
| 1608 result.append(memoryCache()->minDeadCapacity()); | 1618 result.append(memoryCache()->minDeadCapacity()); |
| 1609 result.append(memoryCache()->maxDeadCapacity()); | 1619 result.append(memoryCache()->maxDeadCapacity()); |
| 1610 result.append(memoryCache()->capacity()); | 1620 result.append(memoryCache()->capacity()); |
| 1611 memoryCache()->setCapacities(minDeadBytes, maxDeadBytes, totalBytes); | 1621 memoryCache()->setCapacities(minDeadBytes, maxDeadBytes, totalBytes); |
| 1612 return result; | 1622 return result; |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2565 } | 2575 } |
| 2566 | 2576 |
| 2567 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2577 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2568 { | 2578 { |
| 2569 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2579 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2570 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2580 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2571 return String(); | 2581 return String(); |
| 2572 } | 2582 } |
| 2573 | 2583 |
| 2574 } // namespace blink | 2584 } // namespace blink |
| OLD | NEW |