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

Side by Side Diff: Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp

Issue 15899009: Support indexed setter generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 7 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698