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 14 matching lines...) Expand all Loading... |
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 "HTMLNames.h" | 34 #include "HTMLNames.h" |
35 #include "InspectorFrontend.h" | |
36 #include "bindings/v8/ExceptionState.h" | 35 #include "bindings/v8/ExceptionState.h" |
37 #include "bindings/v8/ScriptEventListener.h" | 36 #include "bindings/v8/ScriptEventListener.h" |
38 #include "core/dom/Attr.h" | 37 #include "core/dom/Attr.h" |
39 #include "core/dom/CharacterData.h" | 38 #include "core/dom/CharacterData.h" |
40 #include "core/dom/ContainerNode.h" | 39 #include "core/dom/ContainerNode.h" |
41 #include "core/dom/DOMException.h" | 40 #include "core/dom/DOMException.h" |
42 #include "core/dom/Document.h" | 41 #include "core/dom/Document.h" |
43 #include "core/dom/DocumentFragment.h" | 42 #include "core/dom/DocumentFragment.h" |
44 #include "core/dom/DocumentType.h" | 43 #include "core/dom/DocumentType.h" |
45 #include "core/dom/Element.h" | 44 #include "core/dom/Element.h" |
46 #include "core/events/EventListener.h" | 45 #include "core/events/EventListener.h" |
47 #include "core/events/EventTarget.h" | 46 #include "core/events/EventTarget.h" |
48 #include "core/dom/Node.h" | 47 #include "core/dom/Node.h" |
49 #include "core/dom/NodeList.h" | 48 #include "core/dom/NodeList.h" |
50 #include "core/dom/NodeTraversal.h" | 49 #include "core/dom/NodeTraversal.h" |
51 #include "core/dom/PseudoElement.h" | 50 #include "core/dom/PseudoElement.h" |
52 #include "core/dom/Text.h" | 51 #include "core/dom/Text.h" |
53 #include "core/dom/shadow/ElementShadow.h" | 52 #include "core/dom/shadow/ElementShadow.h" |
54 #include "core/dom/shadow/ShadowRoot.h" | 53 #include "core/dom/shadow/ShadowRoot.h" |
55 #include "core/editing/markup.h" | 54 #include "core/editing/markup.h" |
56 #include "core/fileapi/File.h" | 55 #include "core/fileapi/File.h" |
57 #include "core/fileapi/FileList.h" | 56 #include "core/fileapi/FileList.h" |
58 #include "core/html/HTMLFrameOwnerElement.h" | 57 #include "core/html/HTMLFrameOwnerElement.h" |
59 #include "core/html/HTMLInputElement.h" | 58 #include "core/html/HTMLInputElement.h" |
60 #include "core/html/HTMLTemplateElement.h" | 59 #include "core/html/HTMLTemplateElement.h" |
61 #include "core/inspector/DOMEditor.h" | 60 #include "core/inspector/DOMEditor.h" |
62 #include "core/inspector/DOMPatchSupport.h" | 61 #include "core/inspector/DOMPatchSupport.h" |
63 #include "core/inspector/IdentifiersFactory.h" | 62 #include "core/inspector/IdentifiersFactory.h" |
64 #include "core/inspector/InjectedScriptManager.h" | |
65 #include "core/inspector/InspectorHistory.h" | 63 #include "core/inspector/InspectorHistory.h" |
66 #include "core/inspector/InspectorOverlay.h" | 64 #include "core/inspector/InspectorOverlay.h" |
67 #include "core/inspector/InspectorPageAgent.h" | 65 #include "core/inspector/InspectorPageAgent.h" |
68 #include "core/inspector/InspectorState.h" | 66 #include "core/inspector/InspectorState.h" |
69 #include "core/inspector/InstrumentingAgents.h" | 67 #include "core/inspector/InstrumentingAgents.h" |
70 #include "core/loader/DocumentLoader.h" | 68 #include "core/loader/DocumentLoader.h" |
71 #include "core/frame/Frame.h" | 69 #include "core/frame/Frame.h" |
72 #include "core/page/FrameTree.h" | 70 #include "core/page/FrameTree.h" |
73 #include "core/page/Page.h" | 71 #include "core/page/Page.h" |
74 #include "core/rendering/HitTestResult.h" | 72 #include "core/rendering/HitTestResult.h" |
75 #include "core/rendering/RenderView.h" | 73 #include "core/rendering/RenderView.h" |
76 #include "core/xml/DocumentXPathEvaluator.h" | 74 #include "core/xml/DocumentXPathEvaluator.h" |
77 #include "core/xml/XPathResult.h" | 75 #include "core/xml/XPathResult.h" |
78 #include "platform/PlatformGestureEvent.h" | 76 #include "platform/PlatformGestureEvent.h" |
79 #include "platform/PlatformMouseEvent.h" | 77 #include "platform/PlatformMouseEvent.h" |
80 #include "platform/PlatformTouchEvent.h" | 78 #include "platform/PlatformTouchEvent.h" |
81 #include "wtf/HashSet.h" | |
82 #include "wtf/ListHashSet.h" | 79 #include "wtf/ListHashSet.h" |
83 #include "wtf/OwnPtr.h" | |
84 #include "wtf/Vector.h" | |
85 #include "wtf/text/CString.h" | 80 #include "wtf/text/CString.h" |
86 #include "wtf/text/WTFString.h" | 81 #include "wtf/text/WTFString.h" |
87 | 82 |
88 namespace WebCore { | 83 namespace WebCore { |
89 | 84 |
90 using namespace HTMLNames; | 85 using namespace HTMLNames; |
91 | 86 |
92 namespace DOMAgentState { | 87 namespace DOMAgentState { |
93 static const char documentRequested[] = "documentRequested"; | 88 static const char documentRequested[] = "documentRequested"; |
94 }; | 89 }; |
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 if (!m_documentNodeToIdMap.contains(m_document)) { | 2037 if (!m_documentNodeToIdMap.contains(m_document)) { |
2043 RefPtr<TypeBuilder::DOM::Node> root; | 2038 RefPtr<TypeBuilder::DOM::Node> root; |
2044 getDocument(errorString, root); | 2039 getDocument(errorString, root); |
2045 return errorString->isEmpty(); | 2040 return errorString->isEmpty(); |
2046 } | 2041 } |
2047 return true; | 2042 return true; |
2048 } | 2043 } |
2049 | 2044 |
2050 } // namespace WebCore | 2045 } // namespace WebCore |
2051 | 2046 |
OLD | NEW |