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

Side by Side Diff: Source/WebCore/html/HTMLVideoElement.cpp

Issue 10918284: Merge 128654 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « Source/WebCore/html/HTMLObjectElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 if (attribute.name() == posterAttr) { 109 if (attribute.name() == posterAttr) {
110 // Force a poster recalc by setting m_displayMode to Unknown directly be fore calling updateDisplayState. 110 // Force a poster recalc by setting m_displayMode to Unknown directly be fore calling updateDisplayState.
111 HTMLMediaElement::setDisplayMode(Unknown); 111 HTMLMediaElement::setDisplayMode(Unknown);
112 updateDisplayState(); 112 updateDisplayState();
113 #if !ENABLE(PLUGIN_PROXY_FOR_VIDEO) 113 #if !ENABLE(PLUGIN_PROXY_FOR_VIDEO)
114 if (shouldDisplayPosterImage()) { 114 if (shouldDisplayPosterImage()) {
115 if (!m_imageLoader) 115 if (!m_imageLoader)
116 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); 116 m_imageLoader = adoptPtr(new HTMLImageLoader(this));
117 m_imageLoader->updateFromElementIgnoringPreviousError(); 117 m_imageLoader->updateFromElementIgnoringPreviousError();
118 } else { 118 } else {
119 if (m_imageLoader)
120 m_imageLoader.clear();
121 if (renderer()) 119 if (renderer())
122 toRenderImage(renderer())->imageResource()->setCachedImage(0); 120 toRenderImage(renderer())->imageResource()->setCachedImage(0);
123 } 121 }
124 #endif 122 #endif
125 } else 123 } else
126 HTMLMediaElement::parseAttribute(attribute); 124 HTMLMediaElement::parseAttribute(attribute);
127 } 125 }
128 126
129 bool HTMLVideoElement::supportsFullscreen() const 127 bool HTMLVideoElement::supportsFullscreen() const
130 { 128 {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 if (!player()) 298 if (!player())
301 return 0; 299 return 0;
302 300
303 return player()->droppedFrameCount(); 301 return player()->droppedFrameCount();
304 } 302 }
305 #endif 303 #endif
306 304
307 } 305 }
308 306
309 #endif 307 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLObjectElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698