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

Unified Diff: Source/core/dom/ContainerNode.cpp

Issue 329183002: Removing "using" declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/ContainerNode.cpp
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index fed648dbb0002f7a4a4f906e439df3f33500c162..dcb7a0633197c9aab3e7d619d4da8ecb2d64bafd 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -51,8 +51,6 @@
#include "core/rendering/RenderTheme.h"
#include "core/rendering/RenderView.h"
-using namespace std;
-
namespace WebCore {
using namespace HTMLNames;
@@ -566,7 +564,7 @@ void ContainerNode::removeChildren()
childrenChanged(false, 0, 0, -static_cast<int>(removedChildren.size()));
- for (size_t i = 0; i < removedChildren.size(); ++i)
+ for (std::size_t i = 0; i < removedChildren.size(); ++i)
notifyNodeRemoved(*removedChildren[i]);
}
@@ -670,7 +668,7 @@ void ContainerNode::notifyNodeInserted(Node& root)
NodeVector postInsertionNotificationTargets;
notifyNodeInsertedInternal(root, postInsertionNotificationTargets);
- for (size_t i = 0; i < postInsertionNotificationTargets.size(); ++i) {
+ for (std::size_t i = 0; i < postInsertionNotificationTargets.size(); ++i) {
Node* targetNode = postInsertionNotificationTargets[i].get();
if (targetNode->inDocument())
targetNode->didNotifySubtreeInsertionsToDocument();

Powered by Google App Engine
This is Rietveld 408576698