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

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

Issue 729713003: Remove parserInsertBefore. (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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&); 71 void parserRemoveChild(Node&);
72 void parserInsertBefore(PassRefPtr<Node> newChild, Node& refChild);
73 72
74 void removeChildren(); 73 void removeChildren();
75 74
76 void cloneChildNodes(ContainerNode* clone); 75 void cloneChildNodes(ContainerNode* clone);
77 76
78 virtual void attach(const AttachContext& = AttachContext()) override; 77 virtual void attach(const AttachContext& = AttachContext()) override;
79 virtual void detach(const AttachContext& = AttachContext()) override; 78 virtual void detach(const AttachContext& = AttachContext()) override;
80 virtual LayoutRect boundingBox() const override final; 79 virtual LayoutRect boundingBox() const override final;
81 virtual void setFocus(bool) override; 80 virtual void setFocus(bool) override;
82 void focusStateChanged(); 81 void focusStateChanged();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) 221 inline void getChildNodes(ContainerNode& node, NodeVector& nodes)
223 { 222 {
224 ASSERT(!nodes.size()); 223 ASSERT(!nodes.size());
225 for (Node* child = node.firstChild(); child; child = child->nextSibling()) 224 for (Node* child = node.firstChild(); child; child = child->nextSibling())
226 nodes.append(child); 225 nodes.append(child);
227 } 226 }
228 227
229 } // namespace blink 228 } // namespace blink
230 229
231 #endif // ContainerNode_h 230 #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