| 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 11 matching lines...) Expand all Loading... |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 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 "config.h" | 31 #include "config.h" |
| 32 | |
| 33 | |
| 34 #include "core/inspector/DOMPatchSupport.h" | 32 #include "core/inspector/DOMPatchSupport.h" |
| 35 | 33 |
| 36 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 37 #include "core/dom/Attribute.h" | 35 #include "core/dom/Attribute.h" |
| 38 #include "core/dom/ContextFeatures.h" | 36 #include "core/dom/ContextFeatures.h" |
| 39 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
| 40 #include "core/dom/DocumentFragment.h" | 38 #include "core/dom/DocumentFragment.h" |
| 41 #include "core/dom/Node.h" | 39 #include "core/dom/Node.h" |
| 42 #include "core/html/HTMLDocument.h" | 40 #include "core/html/HTMLDocument.h" |
| 43 #include "core/html/parser/HTMLDocumentParser.h" | 41 #include "core/html/parser/HTMLDocumentParser.h" |
| 44 #include "core/inspector/DOMEditor.h" | 42 #include "core/inspector/DOMEditor.h" |
| 45 #include "core/inspector/InspectorHistory.h" | 43 #include "core/inspector/InspectorHistory.h" |
| 46 #include "core/xml/parser/XMLDocumentParser.h" | 44 #include "core/xml/parser/XMLDocumentParser.h" |
| 47 | 45 #include "wtf/Deque.h" |
| 48 #include <wtf/Deque.h> | 46 #include "wtf/HashTraits.h" |
| 49 #include <wtf/HashTraits.h> | 47 #include "wtf/RefPtr.h" |
| 50 #include <wtf/RefPtr.h> | 48 #include "wtf/SHA1.h" |
| 51 #include <wtf/SHA1.h> | 49 #include "wtf/text/Base64.h" |
| 52 #include <wtf/text/Base64.h> | 50 #include "wtf/text/CString.h" |
| 53 #include <wtf/text/CString.h> | |
| 54 | 51 |
| 55 using namespace std; | 52 using namespace std; |
| 56 | 53 |
| 57 namespace WebCore { | 54 namespace WebCore { |
| 58 | 55 |
| 59 using HTMLNames::bodyTag; | 56 using HTMLNames::bodyTag; |
| 60 using HTMLNames::headTag; | 57 using HTMLNames::headTag; |
| 61 using HTMLNames::htmlTag; | 58 using HTMLNames::htmlTag; |
| 62 | 59 |
| 63 struct DOMPatchSupport::Digest { | 60 struct DOMPatchSupport::Digest { |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 void DOMPatchSupport::dumpMap(const ResultMap& map, const String& name) | 509 void DOMPatchSupport::dumpMap(const ResultMap& map, const String& name) |
| 513 { | 510 { |
| 514 fprintf(stderr, "\n\n"); | 511 fprintf(stderr, "\n\n"); |
| 515 for (size_t i = 0; i < map.size(); ++i) | 512 for (size_t i = 0; i < map.size(); ++i) |
| 516 fprintf(stderr, "%s[%lu]: %s (%p) - [%lu]\n", name.utf8().data(), i, map
[i].first ? nodeName(map[i].first->m_node).utf8().data() : "", map[i].first, map
[i].second); | 513 fprintf(stderr, "%s[%lu]: %s (%p) - [%lu]\n", name.utf8().data(), i, map
[i].first ? nodeName(map[i].first->m_node).utf8().data() : "", map[i].first, map
[i].second); |
| 517 } | 514 } |
| 518 #endif | 515 #endif |
| 519 | 516 |
| 520 } // namespace WebCore | 517 } // namespace WebCore |
| 521 | 518 |
| OLD | NEW |