Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 1770523002: Track connected subframes per-Document instead of per-Node. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix various crashes but still doesn't refcount tracked nodes (and needs to) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 EventTargetData* eventTargetData() override; 657 EventTargetData* eventTargetData() override;
658 EventTargetData& ensureEventTargetData() override; 658 EventTargetData& ensureEventTargetData() override;
659 659
660 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RefPtrWillBeMemb er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio nType, const QualifiedName* attributeName); 660 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RefPtrWillBeMemb er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio nType, const QualifiedName* attributeName);
661 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter); 661 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter);
662 void unregisterMutationObserver(MutationObserverRegistration*); 662 void unregisterMutationObserver(MutationObserverRegistration*);
663 void registerTransientMutationObserver(MutationObserverRegistration*); 663 void registerTransientMutationObserver(MutationObserverRegistration*);
664 void unregisterTransientMutationObserver(MutationObserverRegistration*); 664 void unregisterTransientMutationObserver(MutationObserverRegistration*);
665 void notifyMutationObserversNodeWillDetach(); 665 void notifyMutationObserversNodeWillDetach();
666 666
667 unsigned connectedSubframeCount() const;
668 void incrementConnectedSubframeCount(unsigned amount = 1);
669 void decrementConnectedSubframeCount(unsigned amount = 1);
670 void updateAncestorConnectedSubframeCountForInsertion() const;
671
672 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); 667 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints();
673 HTMLSlotElement* assignedSlot() const; 668 HTMLSlotElement* assignedSlot() const;
674 HTMLSlotElement* assignedSlotForBinding(); 669 HTMLSlotElement* assignedSlotForBinding();
675 670
676 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); } 671 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); }
677 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } 672 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); }
678 673
679 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); } 674 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); }
680 675
681 DECLARE_VIRTUAL_TRACE(); 676 DECLARE_VIRTUAL_TRACE();
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 } // namespace blink 924 } // namespace blink
930 925
931 #ifndef NDEBUG 926 #ifndef NDEBUG
932 // Outside the WebCore namespace for ease of invocation from gdb. 927 // Outside the WebCore namespace for ease of invocation from gdb.
933 void showNode(const blink::Node*); 928 void showNode(const blink::Node*);
934 void showTree(const blink::Node*); 929 void showTree(const blink::Node*);
935 void showNodePath(const blink::Node*); 930 void showNodePath(const blink::Node*);
936 #endif 931 #endif
937 932
938 #endif // Node_h 933 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698