OLD | NEW |
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 Loading... |
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 WebCore; | 40 using namespace blink; |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 void WebElementCollection::reset() | 44 void WebElementCollection::reset() |
45 { | 45 { |
46 m_private.reset(); | 46 m_private.reset(); |
47 } | 47 } |
48 | 48 |
49 void WebElementCollection::assign(const WebElementCollection& other) | 49 void WebElementCollection::assign(const WebElementCollection& other) |
50 { | 50 { |
(...skipping 24 matching lines...) Expand all Loading... |
75 return WebElement(element); | 75 return WebElement(element); |
76 } | 76 } |
77 | 77 |
78 WebElement WebElementCollection::firstItem() const | 78 WebElement WebElementCollection::firstItem() const |
79 { | 79 { |
80 m_current = 0; | 80 m_current = 0; |
81 return nextItem(); | 81 return nextItem(); |
82 } | 82 } |
83 | 83 |
84 } // namespace blink | 84 } // namespace blink |
OLD | NEW |