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 "InspectorDOMAgent.h" | 32 #include "InspectorDOMAgent.h" |
33 | 33 |
34 #include "Attr.h" | |
35 #include "CSSPropertyNames.h" | 34 #include "CSSPropertyNames.h" |
36 #include "CharacterData.h" | |
37 #include "ContainerNode.h" | |
38 #include "DOMEditor.h" | 35 #include "DOMEditor.h" |
39 #include "DOMPatchSupport.h" | 36 #include "DOMPatchSupport.h" |
40 #include "Document.h" | |
41 #include "DocumentFragment.h" | |
42 #include "DocumentType.h" | |
43 #include "Element.h" | |
44 #include "ElementShadow.h" | |
45 #include "Event.h" | |
46 #include "EventContext.h" | |
47 #include "EventListener.h" | |
48 #include "EventNames.h" | |
49 #include "EventTarget.h" | |
50 #include "File.h" | 37 #include "File.h" |
51 #include "FileList.h" | 38 #include "FileList.h" |
52 #include "HTMLElement.h" | 39 #include "HTMLElement.h" |
53 #include "HTMLFrameOwnerElement.h" | 40 #include "HTMLFrameOwnerElement.h" |
54 #include "HTMLInputElement.h" | 41 #include "HTMLInputElement.h" |
55 #include "HTMLNames.h" | 42 #include "HTMLNames.h" |
56 #include "HTMLTemplateElement.h" | 43 #include "HTMLTemplateElement.h" |
57 #include "IdentifiersFactory.h" | 44 #include "IdentifiersFactory.h" |
58 #include "InjectedScriptManager.h" | 45 #include "InjectedScriptManager.h" |
59 #include "InspectorClient.h" | 46 #include "InspectorClient.h" |
60 #include "InspectorFrontend.h" | 47 #include "InspectorFrontend.h" |
61 #include "InspectorHistory.h" | 48 #include "InspectorHistory.h" |
62 #include "InspectorOverlay.h" | 49 #include "InspectorOverlay.h" |
63 #include "InspectorPageAgent.h" | 50 #include "InspectorPageAgent.h" |
64 #include "InspectorState.h" | 51 #include "InspectorState.h" |
65 #include "InstrumentingAgents.h" | 52 #include "InstrumentingAgents.h" |
66 #include "MutationEvent.h" | |
67 #include "Node.h" | |
68 #include "NodeList.h" | |
69 #include "NodeTraversal.h" | |
70 #include "ScriptEventListener.h" | 53 #include "ScriptEventListener.h" |
71 #include "ShadowRoot.h" | |
72 #include "Text.h" | |
73 #include "XPathResult.h" | 54 #include "XPathResult.h" |
74 #include "core/css/CSSComputedStyleDeclaration.h" | 55 #include "core/css/CSSComputedStyleDeclaration.h" |
75 #include "core/css/CSSPropertySourceData.h" | 56 #include "core/css/CSSPropertySourceData.h" |
76 #include "core/css/CSSRule.h" | 57 #include "core/css/CSSRule.h" |
77 #include "core/css/CSSRuleList.h" | 58 #include "core/css/CSSRuleList.h" |
78 #include "core/css/CSSStyleRule.h" | 59 #include "core/css/CSSStyleRule.h" |
79 #include "core/css/CSSStyleSheet.h" | 60 #include "core/css/CSSStyleSheet.h" |
80 #include "core/css/StylePropertySet.h" | 61 #include "core/css/StylePropertySet.h" |
81 #include "core/css/StyleResolver.h" | 62 #include "core/css/StyleResolver.h" |
82 #include "core/css/StyleSheetList.h" | 63 #include "core/css/StyleSheetList.h" |
| 64 #include "core/dom/Attr.h" |
| 65 #include "core/dom/CharacterData.h" |
| 66 #include "core/dom/ContainerNode.h" |
| 67 #include "core/dom/Document.h" |
| 68 #include "core/dom/DocumentFragment.h" |
| 69 #include "core/dom/DocumentType.h" |
| 70 #include "core/dom/Element.h" |
| 71 #include "core/dom/ElementShadow.h" |
| 72 #include "core/dom/Event.h" |
| 73 #include "core/dom/EventContext.h" |
| 74 #include "core/dom/EventListener.h" |
| 75 #include "core/dom/EventNames.h" |
| 76 #include "core/dom/EventTarget.h" |
| 77 #include "core/dom/MutationEvent.h" |
| 78 #include "core/dom/Node.h" |
| 79 #include "core/dom/NodeList.h" |
| 80 #include "core/dom/NodeTraversal.h" |
| 81 #include "core/dom/ShadowRoot.h" |
| 82 #include "core/dom/Text.h" |
83 #include "core/loader/CookieJar.h" | 83 #include "core/loader/CookieJar.h" |
84 #include "core/page/DOMWindow.h" | 84 #include "core/page/DOMWindow.h" |
85 #include "core/page/Frame.h" | 85 #include "core/page/Frame.h" |
86 #include "core/page/FrameTree.h" | 86 #include "core/page/FrameTree.h" |
87 #include "core/page/Page.h" | 87 #include "core/page/Page.h" |
88 #include "core/page/Settings.h" | 88 #include "core/page/Settings.h" |
89 #include "core/platform/Cookie.h" | 89 #include "core/platform/Cookie.h" |
90 #include "core/platform/Pasteboard.h" | 90 #include "core/platform/Pasteboard.h" |
91 #include "core/platform/PlatformMouseEvent.h" | 91 #include "core/platform/PlatformMouseEvent.h" |
92 #include "core/platform/graphics/IntRect.h" | 92 #include "core/platform/graphics/IntRect.h" |
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1815 | 1815 |
1816 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(m
ainWorldScriptState(frame)); | 1816 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(m
ainWorldScriptState(frame)); |
1817 if (injectedScript.hasNoValue()) | 1817 if (injectedScript.hasNoValue()) |
1818 return 0; | 1818 return 0; |
1819 | 1819 |
1820 return injectedScript.wrapNode(node, objectGroup); | 1820 return injectedScript.wrapNode(node, objectGroup); |
1821 } | 1821 } |
1822 | 1822 |
1823 } // namespace WebCore | 1823 } // namespace WebCore |
1824 | 1824 |
OLD | NEW |