| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2  * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 
| 3  * Copyright (C) 2010 Google Inc. All rights reserved. | 3  * Copyright (C) 2010 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 are | 6  * modification, are permitted provided that the following conditions are | 
| 7  * met: | 7  * met: | 
| 8  * | 8  * | 
| 9  *     * Redistributions of source code must retain the above copyright | 9  *     * 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 378 | 378 | 
| 379 bool SliderThumbElement::willRespondToMouseClickEvents() | 379 bool SliderThumbElement::willRespondToMouseClickEvents() | 
| 380 { | 380 { | 
| 381     const HTMLInputElement* input = hostInput(); | 381     const HTMLInputElement* input = hostInput(); | 
| 382     if (input && !input->isDisabledOrReadOnly()) | 382     if (input && !input->isDisabledOrReadOnly()) | 
| 383         return true; | 383         return true; | 
| 384 | 384 | 
| 385     return HTMLDivElement::willRespondToMouseClickEvents(); | 385     return HTMLDivElement::willRespondToMouseClickEvents(); | 
| 386 } | 386 } | 
| 387 | 387 | 
| 388 void SliderThumbElement::detach(const AttachContext& context) | 388 void SliderThumbElement::destroyRenderTree(const AttachContext& context) | 
| 389 { | 389 { | 
| 390     if (m_inDragMode) { | 390     if (m_inDragMode) { | 
| 391         if (Frame* frame = document().frame()) | 391         if (Frame* frame = document().frame()) | 
| 392             frame->eventHandler()->setCapturingMouseEventsNode(0); | 392             frame->eventHandler()->setCapturingMouseEventsNode(0); | 
| 393     } | 393     } | 
| 394     HTMLDivElement::detach(context); | 394     HTMLDivElement::destroyRenderTree(context); | 
| 395 } | 395 } | 
| 396 | 396 | 
| 397 HTMLInputElement* SliderThumbElement::hostInput() const | 397 HTMLInputElement* SliderThumbElement::hostInput() const | 
| 398 { | 398 { | 
| 399     // Only HTMLInputElement creates SliderThumbElement instances as its shadow 
     nodes. | 399     // Only HTMLInputElement creates SliderThumbElement instances as its shadow 
     nodes. | 
| 400     // So, shadowHost() must be an HTMLInputElement. | 400     // So, shadowHost() must be an HTMLInputElement. | 
| 401     return toHTMLInputElement(shadowHost()); | 401     return toHTMLInputElement(shadowHost()); | 
| 402 } | 402 } | 
| 403 | 403 | 
| 404 static const AtomicString& sliderThumbShadowPartId() | 404 static const AtomicString& sliderThumbShadowPartId() | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 466     case MediaVolumeSliderThumbPart: | 466     case MediaVolumeSliderThumbPart: | 
| 467     case MediaFullScreenVolumeSliderPart: | 467     case MediaFullScreenVolumeSliderPart: | 
| 468     case MediaFullScreenVolumeSliderThumbPart: | 468     case MediaFullScreenVolumeSliderThumbPart: | 
| 469         return mediaSliderContainer; | 469         return mediaSliderContainer; | 
| 470     default: | 470     default: | 
| 471         return sliderContainer; | 471         return sliderContainer; | 
| 472     } | 472     } | 
| 473 } | 473 } | 
| 474 | 474 | 
| 475 } | 475 } | 
| OLD | NEW | 
|---|