Changeset 115125 in webkit
- Timestamp:
- Apr 24, 2012 3:50:05 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r115123 r115125 1 2012-04-24 Victor Carbune <vcarbune@adobe.com> 2 3 Extra display logic for the media control panel element 4 https://bugs.webkit.org/show_bug.cgi?id=82476 5 6 Reviewed by Eric Carlson. 7 8 Added test to ensure that controls are not displayed when 9 the controls attribute is not set. 10 11 * media/video-controls-toggling-expected.txt: Added. 12 * media/video-controls-toggling.html: Added. 13 1 14 2012-04-24 Alexandru Chiculita <achicu@adobe.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r115123 r115125 1 2012-04-24 Victor Carbune <vcarbune@adobe.com> 2 3 Extra display logic for the media control panel element 4 https://bugs.webkit.org/show_bug.cgi?id=82476 5 6 Reviewed by Eric Carlson. 7 8 This patch fixes a bug which caused the controls to be displayed 9 when they should remain hidden. Added an extra variable to the 10 panel elements which properly keeps the state of the panel (visible or not). 11 12 Test: media/video-controls-toggling.html 13 14 * html/shadow/MediaControlElements.cpp: 15 (WebCore::MediaControlPanelElement::MediaControlPanelElement): Added the 16 variable m_isDisplayed to hold the state whether the panel is visible or not. 17 (WebCore::MediaControlPanelElement::makeOpaque): Showing the panel only if it 18 is visible. 19 (WebCore::MediaControlPanelElement::makeTransparent): Enabled the transition 20 timer which sets the display:none property on the controls. 21 (WebCore::MediaControlPanelElement::setIsDisplayed): Setter for the state variable. 22 (WebCore): 23 * html/shadow/MediaControlElements.h: 24 (MediaControlPanelElement): 25 * html/shadow/MediaControlRootElement.cpp: 26 (WebCore::MediaControlRootElement::show): Updated the panel visibility state. 27 (WebCore::MediaControlRootElement::hide): Updated the panel visibility state. 28 * html/shadow/MediaControlRootElementChromium.cpp: 29 (WebCore::MediaControlRootElementChromium::show): Updated the panel visibility state. 30 (WebCore::MediaControlRootElementChromium::hide): Updated the panel visibility state. 31 1 32 2012-04-24 Alexandru Chiculita <achicu@adobe.com> 2 33 -
trunk/Source/WebCore/html/shadow/MediaControlElements.cpp
r114957 r115125 109 109 , m_canBeDragged(false) 110 110 , m_isBeingDragged(false) 111 , m_isDisplayed(false) 111 112 , m_opaque(true) 112 113 , m_transitionTimer(this, &MediaControlPanelElement::transitionTimerFired) … … 242 243 m_opaque = true; 243 244 244 // FIXME(BUG 79347): The display:none property should be toggled below only 245 // when display logic is introduced. 246 // show(); 245 if (m_isDisplayed) 246 show(); 247 247 } 248 248 … … 258 258 m_opaque = false; 259 259 260 // FIXME(BUG 79347): The display:none property should be toggled below 261 // (through the timer start) when display logic is introduced. 262 // startTimer(); 260 startTimer(); 263 261 } 264 262 … … 291 289 if (!canBeDragged) 292 290 endDrag(); 291 } 292 293 void MediaControlPanelElement::setIsDisplayed(bool isDisplayed) 294 { 295 m_isDisplayed = isDisplayed; 293 296 } 294 297 -
trunk/Source/WebCore/html/shadow/MediaControlElements.h
r114957 r115125 110 110 111 111 void setCanBeDragged(bool); 112 void setIsDisplayed(bool); 113 112 114 void resetPosition(); 113 115 void makeOpaque(); … … 132 134 bool m_canBeDragged; 133 135 bool m_isBeingDragged; 136 bool m_isDisplayed; 134 137 bool m_opaque; 135 138 LayoutPoint m_dragStartEventLocation; -
trunk/Source/WebCore/html/shadow/MediaControlRootElement.cpp
r114957 r115125 285 285 void MediaControlRootElement::show() 286 286 { 287 m_panel->setIsDisplayed(true); 287 288 m_panel->show(); 288 289 } … … 290 291 void MediaControlRootElement::hide() 291 292 { 293 m_panel->setIsDisplayed(false); 292 294 m_panel->hide(); 293 295 } -
trunk/Source/WebCore/html/shadow/MediaControlRootElementChromium.cpp
r114957 r115125 171 171 void MediaControlRootElementChromium::show() 172 172 { 173 m_panel->setIsDisplayed(true); 173 174 m_panel->show(); 174 175 } … … 176 177 void MediaControlRootElementChromium::hide() 177 178 { 179 m_panel->setIsDisplayed(false); 178 180 m_panel->hide(); 179 181 }
Note: See TracChangeset
for help on using the changeset viewer.