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

Side by Side Diff: sky/engine/core/dom/ContainerNode.h

Issue 734063005: Remove parserRemoveChild. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « no previous file | sky/engine/core/dom/ContainerNode.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, 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 PassRefPtr<Node> insertBefore(PassRefPtr<Node> newChild, Node* refChild, Exc eptionState& = ASSERT_NO_EXCEPTION); 61 PassRefPtr<Node> insertBefore(PassRefPtr<Node> newChild, Node* refChild, Exc eptionState& = ASSERT_NO_EXCEPTION);
62 PassRefPtr<Node> replaceChild(PassRefPtr<Node> newChild, PassRefPtr<Node> ol dChild, ExceptionState& = ASSERT_NO_EXCEPTION); 62 PassRefPtr<Node> replaceChild(PassRefPtr<Node> newChild, PassRefPtr<Node> ol dChild, ExceptionState& = ASSERT_NO_EXCEPTION);
63 PassRefPtr<Node> removeChild(PassRefPtr<Node> child, ExceptionState& = ASSER T_NO_EXCEPTION); 63 PassRefPtr<Node> removeChild(PassRefPtr<Node> child, ExceptionState& = ASSER T_NO_EXCEPTION);
64 PassRefPtr<Node> appendChild(PassRefPtr<Node> newChild, ExceptionState& = AS SERT_NO_EXCEPTION); 64 PassRefPtr<Node> appendChild(PassRefPtr<Node> newChild, ExceptionState& = AS SERT_NO_EXCEPTION);
65 65
66 Element* getElementById(const AtomicString& id) const; 66 Element* getElementById(const AtomicString& id) const;
67 67
68 // These methods are only used during parsing. 68 // These methods are only used during parsing.
69 // They don't send DOM mutation events or handle reparenting. 69 // They don't send DOM mutation events or handle reparenting.
70 void parserAppendChild(PassRefPtr<Node>); 70 void parserAppendChild(PassRefPtr<Node>);
71 void parserRemoveChild(Node&);
72 71
73 void removeChildren(); 72 void removeChildren();
74 73
75 void cloneChildNodes(ContainerNode* clone); 74 void cloneChildNodes(ContainerNode* clone);
76 75
77 virtual void attach(const AttachContext& = AttachContext()) override; 76 virtual void attach(const AttachContext& = AttachContext()) override;
78 virtual void detach(const AttachContext& = AttachContext()) override; 77 virtual void detach(const AttachContext& = AttachContext()) override;
79 virtual LayoutRect boundingBox() const override final; 78 virtual LayoutRect boundingBox() const override final;
80 virtual void setFocus(bool) override; 79 virtual void setFocus(bool) override;
81 void focusStateChanged(); 80 void focusStateChanged();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) 220 inline void getChildNodes(ContainerNode& node, NodeVector& nodes)
222 { 221 {
223 ASSERT(!nodes.size()); 222 ASSERT(!nodes.size());
224 for (Node* child = node.firstChild(); child; child = child->nextSibling()) 223 for (Node* child = node.firstChild(); child; child = child->nextSibling())
225 nodes.append(child); 224 nodes.append(child);
226 } 225 }
227 226
228 } // namespace blink 227 } // namespace blink
229 228
230 #endif // ContainerNode_h 229 #endif // ContainerNode_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698