OLD | NEW |
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 Loading... |
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 |
OLD | NEW |