| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "core/dom/ExceptionCode.h" | 34 #include "core/dom/ExceptionCode.h" |
| 35 #include "core/dom/NamedNodesCollection.h" | 35 #include "core/dom/NamedNodesCollection.h" |
| 36 #include "core/html/HTMLOptionElement.h" | 36 #include "core/html/HTMLOptionElement.h" |
| 37 #include "core/html/HTMLOptionsCollection.h" | 37 #include "core/html/HTMLOptionsCollection.h" |
| 38 | 38 |
| 39 #include "V8HTMLOptionElement.h" | 39 #include "V8HTMLOptionElement.h" |
| 40 #include "V8Node.h" | 40 #include "V8Node.h" |
| 41 #include "V8NodeList.h" | 41 #include "V8NodeList.h" |
| 42 #include "bindings/v8/V8Binding.h" | 42 #include "bindings/v8/V8Binding.h" |
| 43 #include "bindings/v8/V8Collection.h" | |
| 44 #include "bindings/v8/custom/V8HTMLSelectElementCustom.h" | 43 #include "bindings/v8/custom/V8HTMLSelectElementCustom.h" |
| 44 #include "core/html/HTMLSelectElement.h" |
| 45 | 45 |
| 46 namespace WebCore { | 46 namespace WebCore { |
| 47 | 47 |
| 48 template<typename HolderContainer> | 48 template<typename HolderContainer> |
| 49 static void getNamedItems(HTMLOptionsCollection* collection, const AtomicString&
name, const HolderContainer& holder) | 49 static void getNamedItems(HTMLOptionsCollection* collection, const AtomicString&
name, const HolderContainer& holder) |
| 50 { | 50 { |
| 51 Vector<RefPtr<Node> > namedItems; | 51 Vector<RefPtr<Node> > namedItems; |
| 52 collection->namedItems(name, namedItems); | 52 collection->namedItems(name, namedItems); |
| 53 | 53 |
| 54 if (!namedItems.size()) { | 54 if (!namedItems.size()) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 else | 117 else |
| 118 newLength = static_cast<unsigned>(v); | 118 newLength = static_cast<unsigned>(v); |
| 119 } | 119 } |
| 120 if (!ec) | 120 if (!ec) |
| 121 imp->setLength(newLength, ec); | 121 imp->setLength(newLength, ec); |
| 122 | 122 |
| 123 setDOMException(ec, info.GetIsolate()); | 123 setDOMException(ec, info.GetIsolate()); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace WebCore | 126 } // namespace WebCore |
| OLD | NEW |