| 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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1409 return InspectorCounters::counterValue(InspectorCounters::DocumentCounter); | 1410 return InspectorCounters::counterValue(InspectorCounters::DocumentCounter); |
| 1410 } | 1411 } |
| 1411 | 1412 |
| 1412 String Internals::dumpRefCountedInstanceCounts() const | 1413 String Internals::dumpRefCountedInstanceCounts() const |
| 1413 { | 1414 { |
| 1414 return WTF::dumpRefCountedInstanceCounts(); | 1415 return WTF::dumpRefCountedInstanceCounts(); |
| 1415 } | 1416 } |
| 1416 | 1417 |
| 1417 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const | 1418 Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const |
| 1418 { | 1419 { |
| 1419 InstrumentingAgents* instrumentingAgents = instrumentationForPage(document->
page()); | 1420 LocalFrame* frame = document->frame(); |
| 1420 if (!instrumentingAgents) | 1421 if (!frame) |
| 1421 return Vector<String>(); | 1422 return Vector<String>(); |
| 1422 InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorConsoleA
gent(); | 1423 |
| 1423 if (!consoleAgent) | 1424 Vector<unsigned> counts = frame->console().messageStorage()->argumentCounts(
); |
| 1424 return Vector<String>(); | |
| 1425 Vector<unsigned> counts = consoleAgent->consoleMessageArgumentCounts(); | |
| 1426 Vector<String> result(counts.size()); | 1425 Vector<String> result(counts.size()); |
| 1427 for (size_t i = 0; i < counts.size(); i++) | 1426 for (size_t i = 0; i < counts.size(); i++) |
| 1428 result[i] = String::number(counts[i]); | 1427 result[i] = String::number(counts[i]); |
| 1429 return result; | 1428 return result; |
| 1430 } | 1429 } |
| 1431 | 1430 |
| 1432 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) | 1431 Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadB
ytes, unsigned long maxDeadBytes, unsigned long totalBytes) |
| 1433 { | 1432 { |
| 1434 Vector<unsigned long> result; | 1433 Vector<unsigned long> result; |
| 1435 result.append(memoryCache()->minDeadCapacity()); | 1434 result.append(memoryCache()->minDeadCapacity()); |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2219 } | 2218 } |
| 2220 if (!element->isPluginElement()) { | 2219 if (!element->isPluginElement()) { |
| 2221 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2220 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
| 2222 return; | 2221 return; |
| 2223 } | 2222 } |
| 2224 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); | 2223 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); |
| 2225 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); | 2224 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); |
| 2226 } | 2225 } |
| 2227 | 2226 |
| 2228 } // namespace blink | 2227 } // namespace blink |
| OLD | NEW |