| 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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 return InstanceCounters::counterValue(InstanceCounters::DocumentCounter); | 1582 return InstanceCounters::counterValue(InstanceCounters::DocumentCounter); |
| 1584 } | 1583 } |
| 1585 | 1584 |
| 1586 String Internals::dumpRefCountedInstanceCounts() const | 1585 String Internals::dumpRefCountedInstanceCounts() const |
| 1587 { | 1586 { |
| 1588 return WTF::dumpRefCountedInstanceCounts(); | 1587 return WTF::dumpRefCountedInstanceCounts(); |
| 1589 } | 1588 } |
| 1590 | 1589 |
| 1591 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const | 1590 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const |
| 1592 { | 1591 { |
| 1593 FrameHost* host = document->frameHost(); | 1592 if (!document->frame()) |
| 1594 if (!host) | |
| 1595 return Vector<String>(); | 1593 return Vector<String>(); |
| 1596 | 1594 |
| 1597 Vector<unsigned> counts = host->consoleMessageStorage().argumentCounts(); | 1595 MainThreadDebugger* debugger = MainThreadDebugger::instance(); |
| 1596 protocol::Vector<unsigned> counts = debugger->debugger()->consoleMessageArgu
mentCounts(debugger->contextGroupId(document->frame())); |
| 1598 Vector<String> result(counts.size()); | 1597 Vector<String> result(counts.size()); |
| 1599 for (size_t i = 0; i < counts.size(); i++) | 1598 for (size_t i = 0; i < counts.size(); i++) |
| 1600 result[i] = String::number(counts[i]); | 1599 result[i] = String::number(counts[i]); |
| 1601 return result; | 1600 return result; |
| 1602 } | 1601 } |
| 1603 | 1602 |
| 1604 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) |
| 1605 { | 1604 { |
| 1606 Vector<unsigned long> result; | 1605 Vector<unsigned long> result; |
| 1607 result.append(memoryCache()->minDeadCapacity()); | 1606 result.append(memoryCache()->minDeadCapacity()); |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2564 } | 2563 } |
| 2565 | 2564 |
| 2566 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2565 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2567 { | 2566 { |
| 2568 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2567 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2569 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2568 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2570 return String(); | 2569 return String(); |
| 2571 } | 2570 } |
| 2572 | 2571 |
| 2573 } // namespace blink | 2572 } // namespace blink |
| OLD | NEW |