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

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

Issue 59113007: Utilize PassRefPtr and C++ refs in more places in ShadowRoot code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make win build happier Created 7 years, 1 month 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) 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 3573 matching lines...) Expand 10 before | Expand all | Expand 10 after
3584 3584
3585 RefPtr<MediaControls> mediaControls = MediaControls::create(document()); 3585 RefPtr<MediaControls> mediaControls = MediaControls::create(document());
3586 if (!mediaControls) 3586 if (!mediaControls)
3587 return false; 3587 return false;
3588 3588
3589 mediaControls->setMediaController(m_mediaController ? m_mediaController.get( ) : static_cast<MediaControllerInterface*>(this)); 3589 mediaControls->setMediaController(m_mediaController ? m_mediaController.get( ) : static_cast<MediaControllerInterface*>(this));
3590 mediaControls->reset(); 3590 mediaControls->reset();
3591 if (isFullscreen()) 3591 if (isFullscreen())
3592 mediaControls->enteredFullscreen(); 3592 mediaControls->enteredFullscreen();
3593 3593
3594 ensureUserAgentShadowRoot()->appendChild(mediaControls); 3594 ensureUserAgentShadowRoot().appendChild(mediaControls);
3595 3595
3596 if (!controls() || !inDocument()) 3596 if (!controls() || !inDocument())
3597 mediaControls->hide(); 3597 mediaControls->hide();
3598 3598
3599 return true; 3599 return true;
3600 } 3600 }
3601 3601
3602 void HTMLMediaElement::configureMediaControls() 3602 void HTMLMediaElement::configureMediaControls()
3603 { 3603 {
3604 if (!controls() || !inDocument()) { 3604 if (!controls() || !inDocument()) {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
3868 { 3868 {
3869 scheduleLayerUpdate(); 3869 scheduleLayerUpdate();
3870 } 3870 }
3871 3871
3872 bool HTMLMediaElement::isInteractiveContent() const 3872 bool HTMLMediaElement::isInteractiveContent() const
3873 { 3873 {
3874 return fastHasAttribute(controlsAttr); 3874 return fastHasAttribute(controlsAttr);
3875 } 3875 }
3876 3876
3877 } 3877 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698