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

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

Issue 688933002: Make textContent trigger single DOMSubtreeModified event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 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, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 PassRefPtrWillBeRawPtr<ClassCollection> getElementsByClassName(const AtomicS tring& classNames); 92 PassRefPtrWillBeRawPtr<ClassCollection> getElementsByClassName(const AtomicS tring& classNames);
93 PassRefPtrWillBeRawPtr<RadioNodeList> radioNodeList(const AtomicString&, boo l onlyMatchImgElements = false); 93 PassRefPtrWillBeRawPtr<RadioNodeList> radioNodeList(const AtomicString&, boo l onlyMatchImgElements = false);
94 94
95 // These methods are only used during parsing. 95 // These methods are only used during parsing.
96 // They don't send DOM mutation events or handle reparenting. 96 // They don't send DOM mutation events or handle reparenting.
97 void parserAppendChild(PassRefPtrWillBeRawPtr<Node>); 97 void parserAppendChild(PassRefPtrWillBeRawPtr<Node>);
98 void parserRemoveChild(Node&); 98 void parserRemoveChild(Node&);
99 void parserInsertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node& refChil d); 99 void parserInsertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node& refChil d);
100 void parserTakeAllChildrenFrom(ContainerNode&); 100 void parserTakeAllChildrenFrom(ContainerNode&);
101 101
102 void removeChildren(); 102 void removeChildren(bool sendModifiedEvent = true);
kouhei (in TOK) 2014/11/19 23:28:54 Please consider using an enum here.
sof 2014/11/20 12:09:59 Agree; in this case, there's no but-of-course inte
103 103
104 void cloneChildNodes(ContainerNode* clone); 104 void cloneChildNodes(ContainerNode* clone);
105 105
106 virtual void attach(const AttachContext& = AttachContext()) override; 106 virtual void attach(const AttachContext& = AttachContext()) override;
107 virtual void detach(const AttachContext& = AttachContext()) override; 107 virtual void detach(const AttachContext& = AttachContext()) override;
108 virtual LayoutRect boundingBox() const override final; 108 virtual LayoutRect boundingBox() const override final;
109 virtual void setFocus(bool) override; 109 virtual void setFocus(bool) override;
110 void focusStateChanged(); 110 void focusStateChanged();
111 virtual void setActive(bool = true) override; 111 virtual void setActive(bool = true) override;
112 virtual void setHovered(bool = true) override; 112 virtual void setHovered(bool = true) override;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) 342 inline void getChildNodes(ContainerNode& node, NodeVector& nodes)
343 { 343 {
344 ASSERT(!nodes.size()); 344 ASSERT(!nodes.size());
345 for (Node* child = node.firstChild(); child; child = child->nextSibling()) 345 for (Node* child = node.firstChild(); child; child = child->nextSibling())
346 nodes.append(child); 346 nodes.append(child);
347 } 347 }
348 348
349 } // namespace blink 349 } // namespace blink
350 350
351 #endif // ContainerNode_h 351 #endif // ContainerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698