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

Side by Side Diff: Source/core/editing/MergeIdenticalElementsCommand.cpp

Issue 23739003: Remove getNodesInCommand debug method from Editing commands (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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) 2005, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 Vector<RefPtr<Node> > children; 80 Vector<RefPtr<Node> > children;
81 for (Node* child = m_element2->firstChild(); child && child != atChild; chil d = child->nextSibling()) 81 for (Node* child = m_element2->firstChild(); child && child != atChild; chil d = child->nextSibling())
82 children.append(child); 82 children.append(child);
83 83
84 size_t size = children.size(); 84 size_t size = children.size();
85 for (size_t i = 0; i < size; ++i) 85 for (size_t i = 0; i < size; ++i)
86 m_element1->appendChild(children[i].release(), es); 86 m_element1->appendChild(children[i].release(), es);
87 } 87 }
88 88
89 #ifndef NDEBUG
90 void MergeIdenticalElementsCommand::getNodesInCommand(HashSet<Node*>& nodes)
91 {
92 addNodeAndDescendants(m_element1.get(), nodes);
93 addNodeAndDescendants(m_element2.get(), nodes);
94 }
95 #endif
96
97 } // namespace WebCore 89 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/editing/MergeIdenticalElementsCommand.h ('k') | Source/core/editing/RemoveCSSPropertyCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698