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

Side by Side Diff: Source/core/html/HTMLMediaElement.cpp

Issue 103913010: Add new "resize" event to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: vsevik & acolwell CR Created 7 years 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 | « LayoutTests/media/video-frame-size-change.html ('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, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 3127 matching lines...) Expand 10 before | Expand all | Expand 10 after
3138 3138
3139 updateDisplayState(); 3139 updateDisplayState();
3140 if (renderer()) 3140 if (renderer())
3141 renderer()->repaint(); 3141 renderer()->repaint();
3142 } 3142 }
3143 3143
3144 void HTMLMediaElement::mediaPlayerSizeChanged() 3144 void HTMLMediaElement::mediaPlayerSizeChanged()
3145 { 3145 {
3146 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged"); 3146 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged");
3147 3147
3148 if (m_readyState > HAVE_NOTHING)
3149 scheduleEvent(EventTypeNames::resize);
3150
3148 if (renderer()) 3151 if (renderer())
3149 renderer()->updateFromElement(); 3152 renderer()->updateFromElement();
3150 } 3153 }
3151 3154
3152 PassRefPtr<TimeRanges> HTMLMediaElement::buffered() const 3155 PassRefPtr<TimeRanges> HTMLMediaElement::buffered() const
3153 { 3156 {
3154 if (!m_player) 3157 if (!m_player)
3155 return TimeRanges::create(); 3158 return TimeRanges::create();
3156 3159
3157 if (m_mediaSource) 3160 if (m_mediaSource)
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
3912 if (m_webLayer) 3915 if (m_webLayer)
3913 m_webLayer->setOpaque(m_opaque); 3916 m_webLayer->setOpaque(m_opaque);
3914 } 3917 }
3915 3918
3916 bool HTMLMediaElement::isInteractiveContent() const 3919 bool HTMLMediaElement::isInteractiveContent() const
3917 { 3920 {
3918 return fastHasAttribute(controlsAttr); 3921 return fastHasAttribute(controlsAttr);
3919 } 3922 }
3920 3923
3921 } 3924 }
OLDNEW
« no previous file with comments | « LayoutTests/media/video-frame-size-change.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698