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

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

Issue 1463433002: Use RefPtr for MutationObserver in MutationObserverInterestGroup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the test Created 5 years, 1 month 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 void dispatchInputEvent(); 639 void dispatchInputEvent();
640 640
641 // Perform the default action for an event. 641 // Perform the default action for an event.
642 virtual void defaultEventHandler(Event*); 642 virtual void defaultEventHandler(Event*);
643 virtual void willCallDefaultEventHandler(const Event&); 643 virtual void willCallDefaultEventHandler(const Event&);
644 644
645 EventTargetData* eventTargetData() override; 645 EventTargetData* eventTargetData() override;
646 EventTargetData& ensureEventTargetData() override; 646 EventTargetData& ensureEventTargetData() override;
647 647
648 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RawPtrWillBeMemb er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio nType, const QualifiedName* attributeName); 648 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RefPtrWillBeMemb er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio nType, const QualifiedName* attributeName);
649 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter); 649 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter);
650 void unregisterMutationObserver(MutationObserverRegistration*); 650 void unregisterMutationObserver(MutationObserverRegistration*);
651 void registerTransientMutationObserver(MutationObserverRegistration*); 651 void registerTransientMutationObserver(MutationObserverRegistration*);
652 void unregisterTransientMutationObserver(MutationObserverRegistration*); 652 void unregisterTransientMutationObserver(MutationObserverRegistration*);
653 void notifyMutationObserversNodeWillDetach(); 653 void notifyMutationObserversNodeWillDetach();
654 654
655 unsigned connectedSubframeCount() const; 655 unsigned connectedSubframeCount() const;
656 void incrementConnectedSubframeCount(unsigned amount = 1); 656 void incrementConnectedSubframeCount(unsigned amount = 1);
657 void decrementConnectedSubframeCount(unsigned amount = 1); 657 void decrementConnectedSubframeCount(unsigned amount = 1);
658 void updateAncestorConnectedSubframeCountForInsertion() const; 658 void updateAncestorConnectedSubframeCountForInsertion() const;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 } // namespace blink 915 } // namespace blink
916 916
917 #ifndef NDEBUG 917 #ifndef NDEBUG
918 // Outside the WebCore namespace for ease of invocation from gdb. 918 // Outside the WebCore namespace for ease of invocation from gdb.
919 void showNode(const blink::Node*); 919 void showNode(const blink::Node*);
920 void showTree(const blink::Node*); 920 void showTree(const blink::Node*);
921 void showNodePath(const blink::Node*); 921 void showNodePath(const blink::Node*);
922 #endif 922 #endif
923 923
924 #endif // Node_h 924 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/MutationObserverInterestGroup.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