| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void V8HTMLAllCollection::itemMethodCustom( | 92 void V8HTMLAllCollection::itemMethodCustom( |
| 93 const v8::FunctionCallbackInfo<v8::Value>& info) { | 93 const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 94 if (info.Length() < 1) { | 94 if (info.Length() < 1) { |
| 95 UseCounter::count(currentExecutionContext(info.GetIsolate()), | 95 UseCounter::count(currentExecutionContext(info.GetIsolate()), |
| 96 UseCounter::DocumentAllItemNoArguments); | 96 UseCounter::DocumentAllItemNoArguments); |
| 97 return; | 97 return; |
| 98 } | 98 } |
| 99 | 99 |
| 100 HTMLAllCollection* impl = V8HTMLAllCollection::toImpl(info.Holder()); | 100 HTMLAllCollection* impl = V8HTMLAllCollection::toImpl(info.Holder()); |
| 101 v8SetReturnValue( | 101 v8SetReturnValue( |
| 102 info, getItem(impl, info[0], info, UseCounter::DocumentAllItemNamed, | 102 info, |
| 103 UseCounter::DocumentAllItemIndexed, | 103 getItem(impl, info[0], info, UseCounter::DocumentAllItemNamed, |
| 104 UseCounter::DocumentAllItemIndexedWithNonNumber)); | 104 UseCounter::DocumentAllItemIndexed, |
| 105 UseCounter::DocumentAllItemIndexedWithNonNumber)); |
| 105 } | 106 } |
| 106 | 107 |
| 107 void V8HTMLAllCollection::legacyCallCustom( | 108 void V8HTMLAllCollection::legacyCallCustom( |
| 108 const v8::FunctionCallbackInfo<v8::Value>& info) { | 109 const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 109 if (info.Length() < 1) { | 110 if (info.Length() < 1) { |
| 110 UseCounter::count(currentExecutionContext(info.GetIsolate()), | 111 UseCounter::count(currentExecutionContext(info.GetIsolate()), |
| 111 UseCounter::DocumentAllLegacyCallNoArguments); | 112 UseCounter::DocumentAllLegacyCallNoArguments); |
| 112 return; | 113 return; |
| 113 } | 114 } |
| 114 | 115 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 137 .ToLocal(&index)) | 138 .ToLocal(&index)) |
| 138 return; | 139 return; |
| 139 | 140 |
| 140 if (Node* node = impl->namedItemWithIndex(name, index->Value())) { | 141 if (Node* node = impl->namedItemWithIndex(name, index->Value())) { |
| 141 v8SetReturnValueFast(info, node, impl); | 142 v8SetReturnValueFast(info, node, impl); |
| 142 return; | 143 return; |
| 143 } | 144 } |
| 144 } | 145 } |
| 145 | 146 |
| 146 } // namespace blink | 147 } // namespace blink |
| OLD | NEW |