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

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

Issue 1958093002: CONTINUED Make FrameSelection to hold non-canonicalized positions Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2017-01-16T20:04:35 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
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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 namespace blink { 72 namespace blink {
73 73
74 class AnimationClock; 74 class AnimationClock;
75 class DocumentTimeline; 75 class DocumentTimeline;
76 class AXObjectCache; 76 class AXObjectCache;
77 class Attr; 77 class Attr;
78 class CDATASection; 78 class CDATASection;
79 class CSSStyleSheet; 79 class CSSStyleSheet;
80 class CanvasFontCache; 80 class CanvasFontCache;
81 class CharacterData;
82 class ChromeClient; 81 class ChromeClient;
83 class CompositorPendingAnimations; 82 class CompositorPendingAnimations;
84 class Comment; 83 class Comment;
85 class ComputedStyle; 84 class ComputedStyle;
86 class ConsoleMessage; 85 class ConsoleMessage;
87 class ContextFeatures; 86 class ContextFeatures;
88 class V0CustomElementMicrotaskRunQueue; 87 class V0CustomElementMicrotaskRunQueue;
89 class V0CustomElementRegistrationContext; 88 class V0CustomElementRegistrationContext;
90 class DOMImplementation; 89 class DOMImplementation;
91 class DOMWindow; 90 class DOMWindow;
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 void moveNodeIteratorsToNewDocument(Node&, Document&); 742 void moveNodeIteratorsToNewDocument(Node&, Document&);
744 743
745 void attachRange(Range*); 744 void attachRange(Range*);
746 void detachRange(Range*); 745 void detachRange(Range*);
747 746
748 void didMoveTreeToNewDocument(const Node& root); 747 void didMoveTreeToNewDocument(const Node& root);
749 // nodeChildrenWillBeRemoved is used when removing all node children at once. 748 // nodeChildrenWillBeRemoved is used when removing all node children at once.
750 void nodeChildrenWillBeRemoved(ContainerNode&); 749 void nodeChildrenWillBeRemoved(ContainerNode&);
751 // nodeWillBeRemoved is only safe when removing one node at a time. 750 // nodeWillBeRemoved is only safe when removing one node at a time.
752 void nodeWillBeRemoved(Node&); 751 void nodeWillBeRemoved(Node&);
753 // Called just before a destructive update to some CharacterData.
754 void dataWillChange(const CharacterData&);
755 bool canAcceptChild(const Node& newChild, 752 bool canAcceptChild(const Node& newChild,
756 const Node* oldChild, 753 const Node* oldChild,
757 ExceptionState&) const; 754 ExceptionState&) const;
758 755
759 void didInsertText(Node*, unsigned offset, unsigned length); 756 void didInsertText(Node*, unsigned offset, unsigned length);
760 void didRemoveText(Node*, unsigned offset, unsigned length); 757 void didRemoveText(Node*, unsigned offset, unsigned length);
761 void didMergeTextNodes(Text& oldNode, unsigned offset); 758 void didMergeTextNodes(const Text& mergedNode,
759 const Text& nodeToBeRemoved,
760 unsigned oldLength);
762 void didSplitTextNode(const Text& oldNode); 761 void didSplitTextNode(const Text& oldNode);
763 762
764 void clearDOMWindow() { m_domWindow = nullptr; } 763 void clearDOMWindow() { m_domWindow = nullptr; }
765 LocalDOMWindow* domWindow() const { return m_domWindow; } 764 LocalDOMWindow* domWindow() const { return m_domWindow; }
766 765
767 // Helper functions for forwarding LocalDOMWindow event related tasks to the 766 // Helper functions for forwarding LocalDOMWindow event related tasks to the
768 // LocalDOMWindow if it exists. 767 // LocalDOMWindow if it exists.
769 void setWindowAttributeEventListener(const AtomicString& eventType, 768 void setWindowAttributeEventListener(const AtomicString& eventType,
770 EventListener*); 769 EventListener*);
771 EventListener* getWindowAttributeEventListener(const AtomicString& eventType); 770 EventListener* getWindowAttributeEventListener(const AtomicString& eventType);
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1720 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1722 1721
1723 } // namespace blink 1722 } // namespace blink
1724 1723
1725 #ifndef NDEBUG 1724 #ifndef NDEBUG
1726 // Outside the WebCore namespace for ease of invocation from gdb. 1725 // Outside the WebCore namespace for ease of invocation from gdb.
1727 CORE_EXPORT void showLiveDocumentInstances(); 1726 CORE_EXPORT void showLiveDocumentInstances();
1728 #endif 1727 #endif
1729 1728
1730 #endif // Document_h 1729 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CharacterData.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698