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

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

Issue 2585353002: Detach Event Listener Properties before moving Node. (Closed)
Patch Set: Use more sensible checks. Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
7 * (http://www.torchmobile.com/) 7 * (http://www.torchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag, 860 CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag,
861 CreateHTMLElement = CreateElement | IsHTMLFlag, 861 CreateHTMLElement = CreateElement | IsHTMLFlag,
862 CreateSVGElement = CreateElement | IsSVGFlag, 862 CreateSVGElement = CreateElement | IsSVGFlag,
863 CreateDocument = CreateContainer | IsConnectedFlag, 863 CreateDocument = CreateContainer | IsConnectedFlag,
864 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, 864 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag,
865 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, 865 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag,
866 }; 866 };
867 867
868 Node(TreeScope*, ConstructionType); 868 Node(TreeScope*, ConstructionType);
869 869
870 virtual void willMoveToNewDocument(Document& oldDocument,
871 Document& newDocument);
870 virtual void didMoveToNewDocument(Document& oldDocument); 872 virtual void didMoveToNewDocument(Document& oldDocument);
871 873
872 void addedEventListener(const AtomicString& eventType, 874 void addedEventListener(const AtomicString& eventType,
873 RegisteredEventListener&) override; 875 RegisteredEventListener&) override;
874 void removedEventListener(const AtomicString& eventType, 876 void removedEventListener(const AtomicString& eventType,
875 const RegisteredEventListener&) override; 877 const RegisteredEventListener&) override;
876 DispatchEventResult dispatchEventInternal(Event*) override; 878 DispatchEventResult dispatchEventInternal(Event*) override;
877 879
878 static void reattachWhitespaceSiblingsIfNeeded(Text* start); 880 static void reattachWhitespaceSiblingsIfNeeded(Text* start);
879 881
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 } // namespace blink 1019 } // namespace blink
1018 1020
1019 #ifndef NDEBUG 1021 #ifndef NDEBUG
1020 // Outside the WebCore namespace for ease of invocation from gdb. 1022 // Outside the WebCore namespace for ease of invocation from gdb.
1021 void showNode(const blink::Node*); 1023 void showNode(const blink::Node*);
1022 void showTree(const blink::Node*); 1024 void showTree(const blink::Node*);
1023 void showNodePath(const blink::Node*); 1025 void showNodePath(const blink::Node*);
1024 #endif 1026 #endif
1025 1027
1026 #endif // Node_h 1028 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698