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

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // steps. 333 // steps.
334 if (std::isnan(end)) { 334 if (std::isnan(end)) {
335 MediaSource::logAndThrowTypeError(exceptionState, 335 MediaSource::logAndThrowTypeError(exceptionState,
336 ExceptionMessages::notAFiniteNumber(end)); 336 ExceptionMessages::notAFiniteNumber(end));
337 return; 337 return;
338 } 338 }
339 // 4. If the new value is less than or equal to appendWindowStart then throw a 339 // 4. If the new value is less than or equal to appendWindowStart then throw a
340 // TypeError exception and abort these steps. 340 // TypeError exception and abort these steps.
341 if (end <= m_appendWindowStart) { 341 if (end <= m_appendWindowStart) {
342 MediaSource::logAndThrowTypeError( 342 MediaSource::logAndThrowTypeError(
343 exceptionState, ExceptionMessages::indexExceedsMinimumBound( 343 exceptionState,
344 "value", end, m_appendWindowStart)); 344 ExceptionMessages::indexExceedsMinimumBound("value", end,
345 m_appendWindowStart));
345 return; 346 return;
346 } 347 }
347 348
348 m_webSourceBuffer->setAppendWindowEnd(end); 349 m_webSourceBuffer->setAppendWindowEnd(end);
349 350
350 // 5. Update the attribute to the new value. 351 // 5. Update the attribute to the new value.
351 m_appendWindowEnd = end; 352 m_appendWindowEnd = end;
352 } 353 }
353 354
354 void SourceBuffer::appendBuffer(DOMArrayBuffer* data, 355 void SourceBuffer::appendBuffer(DOMArrayBuffer* data,
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 visitor->trace(m_asyncEventQueue); 1300 visitor->trace(m_asyncEventQueue);
1300 visitor->trace(m_appendBufferAsyncPartRunner); 1301 visitor->trace(m_appendBufferAsyncPartRunner);
1301 visitor->trace(m_removeAsyncPartRunner); 1302 visitor->trace(m_removeAsyncPartRunner);
1302 visitor->trace(m_audioTracks); 1303 visitor->trace(m_audioTracks);
1303 visitor->trace(m_videoTracks); 1304 visitor->trace(m_videoTracks);
1304 EventTargetWithInlineData::trace(visitor); 1305 EventTargetWithInlineData::trace(visitor);
1305 SuspendableObject::trace(visitor); 1306 SuspendableObject::trace(visitor);
1306 } 1307 }
1307 1308
1308 } // namespace blink 1309 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698