OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 12 matching lines...) Expand all Loading... |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "core/inspector/DOMPatchSupport.h" | 31 #include "core/inspector/DOMPatchSupport.h" |
32 | 32 |
| 33 #include <memory> |
33 #include "bindings/core/v8/ExceptionState.h" | 34 #include "bindings/core/v8/ExceptionState.h" |
34 #include "core/dom/Attribute.h" | 35 #include "core/dom/Attribute.h" |
35 #include "core/dom/ContextFeatures.h" | 36 #include "core/dom/ContextFeatures.h" |
36 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
37 #include "core/dom/DocumentFragment.h" | 38 #include "core/dom/DocumentFragment.h" |
38 #include "core/dom/Node.h" | 39 #include "core/dom/Node.h" |
39 #include "core/dom/NodeTraversal.h" | 40 #include "core/dom/NodeTraversal.h" |
40 #include "core/dom/XMLDocument.h" | 41 #include "core/dom/XMLDocument.h" |
41 #include "core/html/HTMLBodyElement.h" | 42 #include "core/html/HTMLBodyElement.h" |
42 #include "core/html/HTMLDocument.h" | 43 #include "core/html/HTMLDocument.h" |
43 #include "core/html/HTMLHeadElement.h" | 44 #include "core/html/HTMLHeadElement.h" |
44 #include "core/html/parser/HTMLDocumentParser.h" | 45 #include "core/html/parser/HTMLDocumentParser.h" |
45 #include "core/inspector/DOMEditor.h" | 46 #include "core/inspector/DOMEditor.h" |
46 #include "core/inspector/InspectorHistory.h" | 47 #include "core/inspector/InspectorHistory.h" |
47 #include "core/xml/parser/XMLDocumentParser.h" | 48 #include "core/xml/parser/XMLDocumentParser.h" |
48 #include "platform/Crypto.h" | 49 #include "platform/Crypto.h" |
49 #include "public/platform/Platform.h" | 50 #include "public/platform/Platform.h" |
50 #include "wtf/Deque.h" | 51 #include "wtf/Deque.h" |
51 #include "wtf/HashTraits.h" | 52 #include "wtf/HashTraits.h" |
52 #include "wtf/RefPtr.h" | 53 #include "wtf/RefPtr.h" |
53 #include "wtf/text/Base64.h" | 54 #include "wtf/text/Base64.h" |
54 #include "wtf/text/CString.h" | 55 #include "wtf/text/CString.h" |
55 #include <memory> | |
56 | 56 |
57 namespace blink { | 57 namespace blink { |
58 | 58 |
59 void DOMPatchSupport::patchDocument(Document& document, const String& markup) { | 59 void DOMPatchSupport::patchDocument(Document& document, const String& markup) { |
60 InspectorHistory history; | 60 InspectorHistory history; |
61 DOMEditor domEditor(&history); | 61 DOMEditor domEditor(&history); |
62 DOMPatchSupport patchSupport(&domEditor, document); | 62 DOMPatchSupport patchSupport(&domEditor, document); |
63 patchSupport.patchDocument(markup); | 63 patchSupport.patchDocument(markup); |
64 } | 64 } |
65 | 65 |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 map[i].first, map[i].second); | 562 map[i].first, map[i].second); |
563 } | 563 } |
564 #endif | 564 #endif |
565 | 565 |
566 DEFINE_TRACE(DOMPatchSupport::Digest) { | 566 DEFINE_TRACE(DOMPatchSupport::Digest) { |
567 visitor->trace(m_node); | 567 visitor->trace(m_node); |
568 visitor->trace(m_children); | 568 visitor->trace(m_children); |
569 } | 569 } |
570 | 570 |
571 } // namespace blink | 571 } // namespace blink |
OLD | NEW |