| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/inspector/InspectorDOMAgent.h" | 32 #include "core/inspector/InspectorDOMAgent.h" |
| 33 | 33 |
| 34 #include "CSSPropertyNames.h" | |
| 35 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 36 #include "InspectorFrontend.h" | 35 #include "InspectorFrontend.h" |
| 37 #include "bindings/v8/ScriptEventListener.h" | 36 #include "bindings/v8/ScriptEventListener.h" |
| 38 #include "core/css/CSSComputedStyleDeclaration.h" | |
| 39 #include "core/css/CSSPropertySourceData.h" | |
| 40 #include "core/css/CSSRule.h" | |
| 41 #include "core/css/CSSRuleList.h" | |
| 42 #include "core/css/CSSStyleRule.h" | |
| 43 #include "core/css/CSSStyleSheet.h" | |
| 44 #include "core/css/StylePropertySet.h" | |
| 45 #include "core/css/StyleSheetList.h" | |
| 46 #include "core/css/resolver/StyleResolver.h" | |
| 47 #include "core/dom/Attr.h" | 37 #include "core/dom/Attr.h" |
| 48 #include "core/dom/CharacterData.h" | 38 #include "core/dom/CharacterData.h" |
| 49 #include "core/dom/ContainerNode.h" | 39 #include "core/dom/ContainerNode.h" |
| 50 #include "core/dom/Document.h" | 40 #include "core/dom/Document.h" |
| 51 #include "core/dom/DocumentFragment.h" | 41 #include "core/dom/DocumentFragment.h" |
| 52 #include "core/dom/DocumentType.h" | 42 #include "core/dom/DocumentType.h" |
| 53 #include "core/dom/Element.h" | 43 #include "core/dom/Element.h" |
| 54 #include "core/dom/Event.h" | |
| 55 #include "core/dom/EventContext.h" | |
| 56 #include "core/dom/EventListener.h" | 44 #include "core/dom/EventListener.h" |
| 57 #include "core/dom/EventNames.h" | |
| 58 #include "core/dom/EventTarget.h" | 45 #include "core/dom/EventTarget.h" |
| 59 #include "core/dom/MutationEvent.h" | |
| 60 #include "core/dom/Node.h" | 46 #include "core/dom/Node.h" |
| 61 #include "core/dom/NodeList.h" | 47 #include "core/dom/NodeList.h" |
| 62 #include "core/dom/NodeTraversal.h" | 48 #include "core/dom/NodeTraversal.h" |
| 63 #include "core/dom/Text.h" | 49 #include "core/dom/Text.h" |
| 64 #include "core/dom/shadow/ElementShadow.h" | 50 #include "core/dom/shadow/ElementShadow.h" |
| 65 #include "core/dom/shadow/ShadowRoot.h" | 51 #include "core/dom/shadow/ShadowRoot.h" |
| 66 #include "core/fileapi/File.h" | 52 #include "core/fileapi/File.h" |
| 67 #include "core/fileapi/FileList.h" | 53 #include "core/fileapi/FileList.h" |
| 68 #include "core/html/HTMLElement.h" | |
| 69 #include "core/html/HTMLFrameOwnerElement.h" | 54 #include "core/html/HTMLFrameOwnerElement.h" |
| 70 #include "core/html/HTMLInputElement.h" | 55 #include "core/html/HTMLInputElement.h" |
| 71 #include "core/html/HTMLTemplateElement.h" | 56 #include "core/html/HTMLTemplateElement.h" |
| 72 #include "core/inspector/DOMEditor.h" | 57 #include "core/inspector/DOMEditor.h" |
| 73 #include "core/inspector/DOMPatchSupport.h" | 58 #include "core/inspector/DOMPatchSupport.h" |
| 74 #include "core/inspector/IdentifiersFactory.h" | 59 #include "core/inspector/IdentifiersFactory.h" |
| 75 #include "core/inspector/InjectedScriptManager.h" | 60 #include "core/inspector/InjectedScriptManager.h" |
| 76 #include "core/inspector/InspectorClient.h" | |
| 77 #include "core/inspector/InspectorHistory.h" | 61 #include "core/inspector/InspectorHistory.h" |
| 78 #include "core/inspector/InspectorOverlay.h" | 62 #include "core/inspector/InspectorOverlay.h" |
| 79 #include "core/inspector/InspectorPageAgent.h" | 63 #include "core/inspector/InspectorPageAgent.h" |
| 80 #include "core/inspector/InspectorState.h" | 64 #include "core/inspector/InspectorState.h" |
| 81 #include "core/inspector/InstrumentingAgents.h" | 65 #include "core/inspector/InstrumentingAgents.h" |
| 82 #include "core/loader/CookieJar.h" | |
| 83 #include "core/page/DOMWindow.h" | |
| 84 #include "core/page/Frame.h" | 66 #include "core/page/Frame.h" |
| 85 #include "core/page/FrameTree.h" | 67 #include "core/page/FrameTree.h" |
| 86 #include "core/page/Page.h" | 68 #include "core/page/Page.h" |
| 87 #include "core/page/Settings.h" | |
| 88 #include "core/platform/Cookie.h" | |
| 89 #include "core/platform/Pasteboard.h" | |
| 90 #include "core/platform/PlatformMouseEvent.h" | 69 #include "core/platform/PlatformMouseEvent.h" |
| 91 #include "core/platform/PlatformTouchEvent.h" | 70 #include "core/platform/PlatformTouchEvent.h" |
| 92 #include "core/platform/graphics/IntRect.h" | |
| 93 #include "core/rendering/HitTestResult.h" | 71 #include "core/rendering/HitTestResult.h" |
| 94 #include "core/rendering/RenderView.h" | 72 #include "core/rendering/RenderView.h" |
| 95 #include "core/rendering/style/RenderStyle.h" | |
| 96 #include "core/rendering/style/RenderStyleConstants.h" | |
| 97 #include "core/xml/XPathResult.h" | 73 #include "core/xml/XPathResult.h" |
| 98 | 74 |
| 99 #include "core/editing/htmlediting.h" | |
| 100 #include "core/editing/markup.h" | 75 #include "core/editing/markup.h" |
| 101 | 76 |
| 102 #include <wtf/HashSet.h> | 77 #include <wtf/HashSet.h> |
| 103 #include <wtf/ListHashSet.h> | 78 #include <wtf/ListHashSet.h> |
| 104 #include <wtf/OwnPtr.h> | 79 #include <wtf/OwnPtr.h> |
| 105 #include <wtf/text/CString.h> | 80 #include <wtf/text/CString.h> |
| 106 #include <wtf/text/WTFString.h> | 81 #include <wtf/text/WTFString.h> |
| 107 #include <wtf/Vector.h> | 82 #include <wtf/Vector.h> |
| 108 | 83 |
| 109 namespace WebCore { | 84 namespace WebCore { |
| (...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1829 | 1804 |
| 1830 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(m
ainWorldScriptState(frame)); | 1805 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(m
ainWorldScriptState(frame)); |
| 1831 if (injectedScript.hasNoValue()) | 1806 if (injectedScript.hasNoValue()) |
| 1832 return 0; | 1807 return 0; |
| 1833 | 1808 |
| 1834 return injectedScript.wrapNode(node, objectGroup); | 1809 return injectedScript.wrapNode(node, objectGroup); |
| 1835 } | 1810 } |
| 1836 | 1811 |
| 1837 } // namespace WebCore | 1812 } // namespace WebCore |
| 1838 | 1813 |
| OLD | NEW |