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

Side by Side Diff: Source/web/WebElementCollection.cpp

Issue 468083003: Cleanup namespace usage in Source/web/Web[A-H]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing Created 6 years, 4 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
« no previous file with comments | « Source/web/WebElement.cpp ('k') | Source/web/WebEmbeddedWorkerImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 19 matching lines...) Expand all
30 */ 30 */
31 31
32 #include "config.h" 32 #include "config.h"
33 #include "public/web/WebElementCollection.h" 33 #include "public/web/WebElementCollection.h"
34 34
35 #include "core/dom/Element.h" 35 #include "core/dom/Element.h"
36 #include "core/html/HTMLCollection.h" 36 #include "core/html/HTMLCollection.h"
37 #include "public/web/WebElement.h" 37 #include "public/web/WebElement.h"
38 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
39 39
40 using namespace blink;
41
42 namespace blink { 40 namespace blink {
43 41
44 void WebElementCollection::reset() 42 void WebElementCollection::reset()
45 { 43 {
46 m_private.reset(); 44 m_private.reset();
47 } 45 }
48 46
49 void WebElementCollection::assign(const WebElementCollection& other) 47 void WebElementCollection::assign(const WebElementCollection& other)
50 { 48 {
51 m_private = other.m_private; 49 m_private = other.m_private;
(...skipping 23 matching lines...) Expand all
75 return WebElement(element); 73 return WebElement(element);
76 } 74 }
77 75
78 WebElement WebElementCollection::firstItem() const 76 WebElement WebElementCollection::firstItem() const
79 { 77 {
80 m_current = 0; 78 m_current = 0;
81 return nextItem(); 79 return nextItem();
82 } 80 }
83 81
84 } // namespace blink 82 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebElement.cpp ('k') | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698