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

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

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2011 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 MediaController* controller = 0; 36 MediaController* controller = 0;
37 if (!value->IsNull()) { 37 if (!value->IsNull()) {
38 if (!V8MediaController::HasInstance(value, info.GetIsolate(), worldType( info.GetIsolate()))) { 38 if (!V8MediaController::HasInstance(value, info.GetIsolate(), worldType( info.GetIsolate()))) {
39 throwTypeError("Value is not of type MediaController", info.GetIsola te()); 39 throwTypeError("Value is not of type MediaController", info.GetIsola te());
40 return; 40 return;
41 } 41 }
42 controller = V8MediaController::toNative(value->ToObject()); 42 controller = V8MediaController::toNative(value->ToObject());
43 } 43 }
44 44
45 // 4.8.10.11.2 Media controllers: controller attribute. 45 // 4.8.10.11.2 Media controllers: controller attribute.
46 // On setting, it must first remove the element's mediagroup attribute, if a ny, 46 // On setting, it must first remove the element's mediagroup attribute, if a ny,
47 HTMLMediaElement* imp = V8HTMLMediaElement::toNative(info.Holder()); 47 HTMLMediaElement* imp = V8HTMLMediaElement::toNative(info.Holder());
48 imp->setMediaGroup(String()); 48 imp->setMediaGroup(String());
49 // and then set the current media controller to the given value. 49 // and then set the current media controller to the given value.
50 imp->setController(controller); 50 imp->setController(controller);
51 } 51 }
52 52
53 } 53 }
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8HTMLLinkElementCustom.cpp ('k') | Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698