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

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

Issue 2194393004: Move Range objects new owner after moving tree rather than during moving tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-02T18:35:29 Created 4 years, 4 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/Document.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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = nullptr) const; 646 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = nullptr) const;
647 void invalidateNodeListCaches(const QualifiedName* attrName); 647 void invalidateNodeListCaches(const QualifiedName* attrName);
648 648
649 void attachNodeIterator(NodeIterator*); 649 void attachNodeIterator(NodeIterator*);
650 void detachNodeIterator(NodeIterator*); 650 void detachNodeIterator(NodeIterator*);
651 void moveNodeIteratorsToNewDocument(Node&, Document&); 651 void moveNodeIteratorsToNewDocument(Node&, Document&);
652 652
653 void attachRange(Range*); 653 void attachRange(Range*);
654 void detachRange(Range*); 654 void detachRange(Range*);
655 655
656 void updateRangesAfterNodeMovedToAnotherDocument(const Node&); 656 void didMoveTreeToNewDocument(const Node& root);
657 // nodeChildrenWillBeRemoved is used when removing all node children at once . 657 // nodeChildrenWillBeRemoved is used when removing all node children at once .
658 void nodeChildrenWillBeRemoved(ContainerNode&); 658 void nodeChildrenWillBeRemoved(ContainerNode&);
659 // nodeWillBeRemoved is only safe when removing one node at a time. 659 // nodeWillBeRemoved is only safe when removing one node at a time.
660 void nodeWillBeRemoved(Node&); 660 void nodeWillBeRemoved(Node&);
661 // Called just before a destructive update to some CharacterData. 661 // Called just before a destructive update to some CharacterData.
662 void dataWillChange(const CharacterData&); 662 void dataWillChange(const CharacterData&);
663 bool canAcceptChild(const Node& newChild, const Node* oldChild, ExceptionSta te&) const; 663 bool canAcceptChild(const Node& newChild, const Node* oldChild, ExceptionSta te&) const;
664 664
665 void didInsertText(Node*, unsigned offset, unsigned length); 665 void didInsertText(Node*, unsigned offset, unsigned length);
666 void didRemoveText(Node*, unsigned offset, unsigned length); 666 void didRemoveText(Node*, unsigned offset, unsigned length);
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1460 1460
1461 } // namespace blink 1461 } // namespace blink
1462 1462
1463 #ifndef NDEBUG 1463 #ifndef NDEBUG
1464 // Outside the WebCore namespace for ease of invocation from gdb. 1464 // Outside the WebCore namespace for ease of invocation from gdb.
1465 CORE_EXPORT void showLiveDocumentInstances(); 1465 CORE_EXPORT void showLiveDocumentInstances();
1466 #endif 1466 #endif
1467 1467
1468 #endif // Document_h 1468 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698