| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "core/editing/Editor.h" | 62 #include "core/editing/Editor.h" |
| 63 #include "core/editing/PlainTextRange.h" | 63 #include "core/editing/PlainTextRange.h" |
| 64 #include "core/editing/SpellCheckRequester.h" | 64 #include "core/editing/SpellCheckRequester.h" |
| 65 #include "core/editing/SpellChecker.h" | 65 #include "core/editing/SpellChecker.h" |
| 66 #include "core/editing/SurroundingText.h" | 66 #include "core/editing/SurroundingText.h" |
| 67 #include "core/editing/TextIterator.h" | 67 #include "core/editing/TextIterator.h" |
| 68 #include "core/fetch/MemoryCache.h" | 68 #include "core/fetch/MemoryCache.h" |
| 69 #include "core/fetch/ResourceFetcher.h" | 69 #include "core/fetch/ResourceFetcher.h" |
| 70 #include "core/frame/LocalDOMWindow.h" | 70 #include "core/frame/LocalDOMWindow.h" |
| 71 #include "core/frame/EventHandlerRegistry.h" | 71 #include "core/frame/EventHandlerRegistry.h" |
| 72 #include "core/frame/FrameConsole.h" |
| 72 #include "core/frame/FrameView.h" | 73 #include "core/frame/FrameView.h" |
| 73 #include "core/frame/LocalFrame.h" | 74 #include "core/frame/LocalFrame.h" |
| 74 #include "core/frame/Settings.h" | 75 #include "core/frame/Settings.h" |
| 75 #include "core/frame/WebKitPoint.h" | 76 #include "core/frame/WebKitPoint.h" |
| 76 #include "core/html/HTMLContentElement.h" | 77 #include "core/html/HTMLContentElement.h" |
| 77 #include "core/html/HTMLIFrameElement.h" | 78 #include "core/html/HTMLIFrameElement.h" |
| 78 #include "core/html/HTMLInputElement.h" | 79 #include "core/html/HTMLInputElement.h" |
| 79 #include "core/html/HTMLMediaElement.h" | 80 #include "core/html/HTMLMediaElement.h" |
| 80 #include "core/html/HTMLPlugInElement.h" | 81 #include "core/html/HTMLPlugInElement.h" |
| 81 #include "core/html/HTMLSelectElement.h" | 82 #include "core/html/HTMLSelectElement.h" |
| (...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1419 return InspectorCounters::counterValue(InspectorCounters::DocumentCounter); | 1420 return InspectorCounters::counterValue(InspectorCounters::DocumentCounter); |
| 1420 } | 1421 } |
| 1421 | 1422 |
| 1422 String Internals::dumpRefCountedInstanceCounts() const | 1423 String Internals::dumpRefCountedInstanceCounts() const |
| 1423 { | 1424 { |
| 1424 return WTF::dumpRefCountedInstanceCounts(); | 1425 return WTF::dumpRefCountedInstanceCounts(); |
| 1425 } | 1426 } |
| 1426 | 1427 |
| 1427 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const | 1428 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const |
| 1428 { | 1429 { |
| 1429 InstrumentingAgents* instrumentingAgents = instrumentationForPage(document->
page()); | 1430 LocalFrame* frame = document->frame(); |
| 1430 if (!instrumentingAgents) | 1431 if (!frame) |
| 1431 return Vector<String>(); | 1432 return Vector<String>(); |
| 1432 InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorConsoleA
gent(); | 1433 |
| 1433 if (!consoleAgent) | 1434 Vector<unsigned> counts = frame->console().messageStorage()->argumentCounts(
); |
| 1434 return Vector<String>(); | |
| 1435 Vector<unsigned> counts = consoleAgent->consoleMessageArgumentCounts(); | |
| 1436 Vector<String> result(counts.size()); | 1435 Vector<String> result(counts.size()); |
| 1437 for (size_t i = 0; i < counts.size(); i++) | 1436 for (size_t i = 0; i < counts.size(); i++) |
| 1438 result[i] = String::number(counts[i]); | 1437 result[i] = String::number(counts[i]); |
| 1439 return result; | 1438 return result; |
| 1440 } | 1439 } |
| 1441 | 1440 |
| 1442 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) | 1441 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) |
| 1443 { | 1442 { |
| 1444 Vector<unsigned long> result; | 1443 Vector<unsigned long> result; |
| 1445 result.append(memoryCache()->minDeadCapacity()); | 1444 result.append(memoryCache()->minDeadCapacity()); |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2229 } | 2228 } |
| 2230 if (!element->isPluginElement()) { | 2229 if (!element->isPluginElement()) { |
| 2231 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2230 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
| 2232 return; | 2231 return; |
| 2233 } | 2232 } |
| 2234 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); | 2233 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); |
| 2235 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); | 2234 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); |
| 2236 } | 2235 } |
| 2237 | 2236 |
| 2238 } // namespace blink | 2237 } // namespace blink |
| OLD | NEW |