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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp

Issue 2554693003: Migrate WTF::Vector::append() to ::push_back() [part 1 of N] (Closed)
Patch Set: rebase Created 4 years 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 v8::Local<v8::Value> prototypeValue; 165 v8::Local<v8::Value> prototypeValue;
166 if (!constructor->Get(context(), v8String(m_isolate, "prototype")) 166 if (!constructor->Get(context(), v8String(m_isolate, "prototype"))
167 .ToLocal(&prototypeValue) || 167 .ToLocal(&prototypeValue) ||
168 !prototypeValue->IsObject()) 168 !prototypeValue->IsObject())
169 return v8::Local<v8::Object>(); 169 return v8::Local<v8::Object>();
170 return prototypeValue.As<v8::Object>(); 170 return prototypeValue.As<v8::Object>();
171 } 171 }
172 172
173 void V8PerContextData::addCustomElementBinding( 173 void V8PerContextData::addCustomElementBinding(
174 std::unique_ptr<V0CustomElementBinding> binding) { 174 std::unique_ptr<V0CustomElementBinding> binding) {
175 m_customElementBindings.append(std::move(binding)); 175 m_customElementBindings.push_back(std::move(binding));
176 } 176 }
177 177
178 v8::Local<v8::Value> V8PerContextData::compiledPrivateScript(String className) { 178 v8::Local<v8::Value> V8PerContextData::compiledPrivateScript(String className) {
179 return m_compiledPrivateScript.Get(className); 179 return m_compiledPrivateScript.Get(className);
180 } 180 }
181 181
182 void V8PerContextData::setCompiledPrivateScript( 182 void V8PerContextData::setCompiledPrivateScript(
183 String className, 183 String className,
184 v8::Local<v8::Value> compiledObject) { 184 v8::Local<v8::Value> compiledObject) {
185 m_compiledPrivateScript.Set(className, compiledObject); 185 m_compiledPrivateScript.Set(className, compiledObject);
186 } 186 }
187 187
188 } // namespace blink 188 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698