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

Side by Side Diff: Source/core/html/shadow/MediaControlElementTypes.cpp

Issue 385593002: Oilpan: trace MediaControlElement's element reference. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/core/html/shadow/MediaControlElementTypes.h ('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) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void MediaControlElement::setDisplayType(MediaControlElementType displayType) 92 void MediaControlElement::setDisplayType(MediaControlElementType displayType)
93 { 93 {
94 if (displayType == m_displayType) 94 if (displayType == m_displayType)
95 return; 95 return;
96 96
97 m_displayType = displayType; 97 m_displayType = displayType;
98 if (RenderObject* object = m_element->renderer()) 98 if (RenderObject* object = m_element->renderer())
99 object->paintInvalidationForWholeRenderer(); 99 object->paintInvalidationForWholeRenderer();
100 } 100 }
101 101
102 void MediaControlElement::trace(Visitor* visitor)
103 {
104 visitor->trace(m_element);
105 }
106
102 // ---------------------------- 107 // ----------------------------
103 108
104 MediaControlDivElement::MediaControlDivElement(MediaControls& mediaControls, Med iaControlElementType displayType) 109 MediaControlDivElement::MediaControlDivElement(MediaControls& mediaControls, Med iaControlElementType displayType)
105 : HTMLDivElement(mediaControls.document()) 110 : HTMLDivElement(mediaControls.document())
106 , MediaControlElement(mediaControls, displayType, this) 111 , MediaControlElement(mediaControls, displayType, this)
107 { 112 {
108 } 113 }
109 114
115 void MediaControlDivElement::trace(Visitor* visitor)
116 {
117 MediaControlElement::trace(visitor);
118 HTMLDivElement::trace(visitor);
119 }
120
110 // ---------------------------- 121 // ----------------------------
111 122
112 MediaControlInputElement::MediaControlInputElement(MediaControls& mediaControls, MediaControlElementType displayType) 123 MediaControlInputElement::MediaControlInputElement(MediaControls& mediaControls, MediaControlElementType displayType)
113 : HTMLInputElement(mediaControls.document(), 0, false) 124 : HTMLInputElement(mediaControls.document(), 0, false)
114 , MediaControlElement(mediaControls, displayType, this) 125 , MediaControlElement(mediaControls, displayType, this)
115 { 126 {
116 } 127 }
117 128
118 bool MediaControlInputElement::isMouseFocusable() const 129 bool MediaControlInputElement::isMouseFocusable() const
119 { 130 {
120 return false; 131 return false;
121 } 132 }
122 133
134 void MediaControlInputElement::trace(Visitor* visitor)
135 {
136 MediaControlElement::trace(visitor);
137 HTMLInputElement::trace(visitor);
138 }
139
123 // ---------------------------- 140 // ----------------------------
124 141
125 MediaControlTimeDisplayElement::MediaControlTimeDisplayElement(MediaControls& me diaControls, MediaControlElementType displayType) 142 MediaControlTimeDisplayElement::MediaControlTimeDisplayElement(MediaControls& me diaControls, MediaControlElementType displayType)
126 : MediaControlDivElement(mediaControls, displayType) 143 : MediaControlDivElement(mediaControls, displayType)
127 , m_currentValue(0) 144 , m_currentValue(0)
128 { 145 {
129 } 146 }
130 147
131 void MediaControlTimeDisplayElement::setCurrentValue(double time) 148 void MediaControlTimeDisplayElement::setCurrentValue(double time)
132 { 149 {
133 m_currentValue = time; 150 m_currentValue = time;
134 } 151 }
135 152
136 } // namespace WebCore 153 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElementTypes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698