| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #include "core/dom/MutationRecord.h" | 33 #include "core/dom/MutationRecord.h" |
| 34 | 34 |
| 35 #include "core/dom/Node.h" | 35 #include "core/dom/Node.h" |
| 36 #include "core/dom/NodeList.h" | 36 #include "core/dom/NodeList.h" |
| 37 #include "core/dom/QualifiedName.h" | 37 #include "core/dom/QualifiedName.h" |
| 38 #include "core/dom/StaticNodeList.h" | 38 #include "core/dom/StaticNodeList.h" |
| 39 #include <wtf/Assertions.h> | 39 #include "wtf/StdLibExtras.h" |
| 40 #include <wtf/StdLibExtras.h> | |
| 41 | 40 |
| 42 namespace WebCore { | 41 namespace WebCore { |
| 43 | 42 |
| 44 namespace { | 43 namespace { |
| 45 | 44 |
| 46 class ChildListRecord : public MutationRecord { | 45 class ChildListRecord : public MutationRecord { |
| 47 public: | 46 public: |
| 48 ChildListRecord(PassRefPtr<Node> target, PassRefPtr<NodeList> added, PassRef
Ptr<NodeList> removed, PassRefPtr<Node> previousSibling, PassRefPtr<Node> nextSi
bling) | 47 ChildListRecord(PassRefPtr<Node> target, PassRefPtr<NodeList> added, PassRef
Ptr<NodeList> removed, PassRefPtr<Node> previousSibling, PassRefPtr<Node> nextSi
bling) |
| 49 : m_target(target) | 48 : m_target(target) |
| 50 , m_addedNodes(added) | 49 , m_addedNodes(added) |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 PassRefPtr<MutationRecord> MutationRecord::createWithNullOldValue(PassRefPtr<Mut
ationRecord> record) | 184 PassRefPtr<MutationRecord> MutationRecord::createWithNullOldValue(PassRefPtr<Mut
ationRecord> record) |
| 186 { | 185 { |
| 187 return adoptRef(static_cast<MutationRecord*>(new MutationRecordWithNullOldVa
lue(record))); | 186 return adoptRef(static_cast<MutationRecord*>(new MutationRecordWithNullOldVa
lue(record))); |
| 188 } | 187 } |
| 189 | 188 |
| 190 MutationRecord::~MutationRecord() | 189 MutationRecord::~MutationRecord() |
| 191 { | 190 { |
| 192 } | 191 } |
| 193 | 192 |
| 194 } // namespace WebCore | 193 } // namespace WebCore |
| OLD | NEW |