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

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

Issue 318803002: Rename Repaint to Paint Invalidation part 3 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLOptionElement.cpp » ('j') | 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 2858 matching lines...) Expand 10 before | Expand all | Expand 10 after
2869 } 2869 }
2870 2870
2871 // MediaPlayerPresentation methods 2871 // MediaPlayerPresentation methods
2872 void HTMLMediaElement::mediaPlayerRepaint() 2872 void HTMLMediaElement::mediaPlayerRepaint()
2873 { 2873 {
2874 if (m_webLayer) 2874 if (m_webLayer)
2875 m_webLayer->invalidate(); 2875 m_webLayer->invalidate();
2876 2876
2877 updateDisplayState(); 2877 updateDisplayState();
2878 if (renderer()) 2878 if (renderer())
2879 renderer()->repaint(); 2879 renderer()->paintInvalidationForWholeRenderer();
2880 } 2880 }
2881 2881
2882 void HTMLMediaElement::mediaPlayerSizeChanged() 2882 void HTMLMediaElement::mediaPlayerSizeChanged()
2883 { 2883 {
2884 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged"); 2884 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged");
2885 2885
2886 ASSERT(hasVideo()); // "resize" makes no sense absent video. 2886 ASSERT(hasVideo()); // "resize" makes no sense absent video.
2887 if (m_readyState > HAVE_NOTHING && isHTMLVideoElement(*this)) 2887 if (m_readyState > HAVE_NOTHING && isHTMLVideoElement(*this))
2888 scheduleEvent(EventTypeNames::resize); 2888 scheduleEvent(EventTypeNames::resize);
2889 2889
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
3655 visitor->trace(m_currentSourceNode); 3655 visitor->trace(m_currentSourceNode);
3656 visitor->trace(m_nextChildNodeToConsider); 3656 visitor->trace(m_nextChildNodeToConsider);
3657 visitor->trace(m_textTracks); 3657 visitor->trace(m_textTracks);
3658 visitor->trace(m_textTracksWhenResourceSelectionBegan); 3658 visitor->trace(m_textTracksWhenResourceSelectionBegan);
3659 visitor->trace(m_mediaController); 3659 visitor->trace(m_mediaController);
3660 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor); 3660 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor);
3661 HTMLElement::trace(visitor); 3661 HTMLElement::trace(visitor);
3662 } 3662 }
3663 3663
3664 } 3664 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLOptionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698