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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioParam.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 10 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 sampleRate, sampleRate, minValue(), maxValue())); 287 sampleRate, sampleRate, minValue(), maxValue()));
288 } 288 }
289 289
290 void AudioParamHandler::connect(AudioNodeOutput& output) { 290 void AudioParamHandler::connect(AudioNodeOutput& output) {
291 ASSERT(deferredTaskHandler().isGraphOwner()); 291 ASSERT(deferredTaskHandler().isGraphOwner());
292 292
293 if (m_outputs.contains(&output)) 293 if (m_outputs.contains(&output))
294 return; 294 return;
295 295
296 output.addParam(*this); 296 output.addParam(*this);
297 m_outputs.add(&output); 297 m_outputs.insert(&output);
298 changedOutputs(); 298 changedOutputs();
299 } 299 }
300 300
301 void AudioParamHandler::disconnect(AudioNodeOutput& output) { 301 void AudioParamHandler::disconnect(AudioNodeOutput& output) {
302 ASSERT(deferredTaskHandler().isGraphOwner()); 302 ASSERT(deferredTaskHandler().isGraphOwner());
303 303
304 if (m_outputs.contains(&output)) { 304 if (m_outputs.contains(&output)) {
305 m_outputs.remove(&output); 305 m_outputs.remove(&output);
306 changedOutputs(); 306 changedOutputs();
307 output.removeParam(*this); 307 output.removeParam(*this);
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 } 518 }
519 519
520 AudioParam* AudioParam::cancelValuesAndHoldAtTime( 520 AudioParam* AudioParam::cancelValuesAndHoldAtTime(
521 double startTime, 521 double startTime,
522 ExceptionState& exceptionState) { 522 ExceptionState& exceptionState) {
523 handler().timeline().cancelValuesAndHoldAtTime(startTime, exceptionState); 523 handler().timeline().cancelValuesAndHoldAtTime(startTime, exceptionState);
524 return this; 524 return this;
525 } 525 }
526 526
527 } // namespace blink 527 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698