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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 using namespace HTMLNames; 52 using namespace HTMLNames;
53 53
54 inline HTMLVideoElement::HTMLVideoElement(Document& document) 54 inline HTMLVideoElement::HTMLVideoElement(Document& document)
55 : HTMLMediaElement(videoTag, document) 55 : HTMLMediaElement(videoTag, document)
56 { 56 {
57 if (document.settings()) 57 if (document.settings())
58 m_defaultPosterURL = AtomicString(document.settings()->defaultVideoPoste rURL()); 58 m_defaultPosterURL = AtomicString(document.settings()->defaultVideoPoste rURL());
59 } 59 }
60 60
61 PassRefPtrWillBeRawPtr<HTMLVideoElement> HTMLVideoElement::create(Document& docu ment) 61 RawPtr<HTMLVideoElement> HTMLVideoElement::create(Document& document)
62 { 62 {
63 RefPtrWillBeRawPtr<HTMLVideoElement> video = adoptRefWillBeNoop(new HTMLVide oElement(document)); 63 RawPtr<HTMLVideoElement> video = new HTMLVideoElement(document);
64 video->ensureUserAgentShadowRoot(); 64 video->ensureUserAgentShadowRoot();
65 video->suspendIfNeeded(); 65 video->suspendIfNeeded();
66 return video.release(); 66 return video.release();
67 } 67 }
68 68
69 DEFINE_TRACE(HTMLVideoElement) 69 DEFINE_TRACE(HTMLVideoElement)
70 { 70 {
71 visitor->trace(m_imageLoader); 71 visitor->trace(m_imageLoader);
72 HTMLMediaElement::trace(visitor); 72 HTMLMediaElement::trace(visitor);
73 } 73 }
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 return ScriptPromise(); 338 return ScriptPromise();
339 } 339 }
340 if (!sw || !sh) { 340 if (!sw || !sh) {
341 exceptionState.throwDOMException(IndexSizeError, String::format("The sou rce %s provided is 0.", sw ? "height" : "width")); 341 exceptionState.throwDOMException(IndexSizeError, String::format("The sou rce %s provided is 0.", sw ? "height" : "width"));
342 return ScriptPromise(); 342 return ScriptPromise();
343 } 343 }
344 return ImageBitmapSource::fulfillImageBitmap(scriptState, ImageBitmap::creat e(this, IntRect(sx, sy, sw, sh), eventTarget.toDOMWindow()->document(), options) ); 344 return ImageBitmapSource::fulfillImageBitmap(scriptState, ImageBitmap::creat e(this, IntRect(sx, sy, sw, sh), eventTarget.toDOMWindow()->document(), options) );
345 } 345 }
346 346
347 } // namespace blink 347 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElement.h ('k') | third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698