| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 newLength = UINT_MAX; | 116 newLength = UINT_MAX; |
| 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 v8::Handle<v8::Value> V8HTMLOptionsCollection::indexedPropertySetter(uint32_t in
dex, v8::Local<v8::Value> value, const v8::AccessorInfo& info) | |
| 127 { | |
| 128 HTMLOptionsCollection* collection = V8HTMLOptionsCollection::toNative(info.H
older()); | |
| 129 HTMLSelectElement* base = toHTMLSelectElement(collection->ownerNode()); | |
| 130 return toOptionsCollectionSetter(index, value, base, info.GetIsolate()); | |
| 131 } | |
| 132 | |
| 133 } // namespace WebCore | 126 } // namespace WebCore |
| OLD | NEW |