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

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

Issue 332173003: Update owner document of Range objects if start/end boundary points in different document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-17T06:07:48 Created 6 years, 6 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 * (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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 void updateRangesAfterChildrenChanged(ContainerNode*); 681 void updateRangesAfterChildrenChanged(ContainerNode*);
682 // nodeChildrenWillBeRemoved is used when removing all node children at once . 682 // nodeChildrenWillBeRemoved is used when removing all node children at once .
683 void nodeChildrenWillBeRemoved(ContainerNode&); 683 void nodeChildrenWillBeRemoved(ContainerNode&);
684 // nodeWillBeRemoved is only safe when removing one node at a time. 684 // nodeWillBeRemoved is only safe when removing one node at a time.
685 void nodeWillBeRemoved(Node&); 685 void nodeWillBeRemoved(Node&);
686 bool canReplaceChild(const Node& newChild, const Node& oldChild) const; 686 bool canReplaceChild(const Node& newChild, const Node& oldChild) const;
687 687
688 void didInsertText(Node*, unsigned offset, unsigned length); 688 void didInsertText(Node*, unsigned offset, unsigned length);
689 void didRemoveText(Node*, unsigned offset, unsigned length); 689 void didRemoveText(Node*, unsigned offset, unsigned length);
690 void didMergeTextNodes(Text& oldNode, unsigned offset); 690 void didMergeTextNodes(Text& oldNode, unsigned offset);
691 void didMoveNodeToNewDocument(const Node&);
Yuta Kitamura 2014/06/18 07:48:27 1. There should be some comment saying that: - Thi
yosin_UTC9 2014/06/18 08:55:40 I renamed the function to |updateRangesAfterNodeMo
691 void didSplitTextNode(Text& oldNode); 692 void didSplitTextNode(Text& oldNode);
692 693
693 void clearDOMWindow() { m_domWindow = nullptr; } 694 void clearDOMWindow() { m_domWindow = nullptr; }
694 DOMWindow* domWindow() const { return m_domWindow; } 695 DOMWindow* domWindow() const { return m_domWindow; }
695 696
696 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists. 697 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists.
697 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>); 698 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>);
698 EventListener* getWindowAttributeEventListener(const AtomicString& eventType ); 699 EventListener* getWindowAttributeEventListener(const AtomicString& eventType );
699 700
700 static void registerEventFactory(PassOwnPtr<EventFactoryBase>); 701 static void registerEventFactory(PassOwnPtr<EventFactoryBase>);
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 inline bool Node::isDocumentNode() const 1466 inline bool Node::isDocumentNode() const
1466 { 1467 {
1467 return this == document(); 1468 return this == document();
1468 } 1469 }
1469 1470
1470 Node* eventTargetNodeForDocument(Document*); 1471 Node* eventTargetNodeForDocument(Document*);
1471 1472
1472 } // namespace WebCore 1473 } // namespace WebCore
1473 1474
1474 #endif // Document_h 1475 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698