| Index: third_party/WebKit/Source/core/dom/DocumentOrderedList.h
|
| diff --git a/third_party/WebKit/Source/core/dom/DocumentOrderedList.h b/third_party/WebKit/Source/core/dom/DocumentOrderedList.h
|
| index 24c2f8fbfdf563e3676cb2e870c33cbe4cb33d3b..540c3d4335d43ce485122ff449bb49fd8981780f 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentOrderedList.h
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentOrderedList.h
|
| @@ -42,32 +42,12 @@ class DocumentOrderedList final {
|
| DISALLOW_NEW();
|
|
|
| public:
|
| - DocumentOrderedList() : mutation_forbidden_(false) {}
|
| -
|
| - // Forbids changes to DocumentOrderedList. Used to check if we are
|
| - // unintentionally changing DocumentOrderedList while iterating. Added for
|
| - // crbug.com/699269 diagnosis.
|
| - class MutationForbiddenScope final {
|
| - STACK_ALLOCATED();
|
| -
|
| - public:
|
| - explicit MutationForbiddenScope(DocumentOrderedList* list) : list_(list) {
|
| - list_->mutation_forbidden_ = true;
|
| - }
|
| - ~MutationForbiddenScope() { list_->mutation_forbidden_ = false; }
|
| -
|
| - private:
|
| - DocumentOrderedList* list_;
|
| - };
|
| + DocumentOrderedList() {}
|
|
|
| void Add(Node*);
|
| void Remove(const Node*);
|
| bool IsEmpty() const { return nodes_.IsEmpty(); }
|
| - void Clear() {
|
| - // TODO(keishi): CHECK() added for crbug.com/699269 diagnosis.
|
| - CHECK(!mutation_forbidden_);
|
| - nodes_.clear();
|
| - }
|
| + void Clear() { nodes_.clear(); }
|
| size_t size() const { return nodes_.size(); }
|
|
|
| using iterator = HeapListHashSet<Member<Node>, 32>::iterator;
|
| @@ -87,7 +67,6 @@ class DocumentOrderedList final {
|
|
|
| private:
|
| HeapListHashSet<Member<Node>, 32> nodes_;
|
| - bool mutation_forbidden_;
|
| };
|
|
|
| } // namespace blink
|
|
|