| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // they have special painting code in RenderMediaControls.cpp:paintMedia
VolumeSlider | 189 // they have special painting code in RenderMediaControls.cpp:paintMedia
VolumeSlider |
| 190 // and paintMediaSlider that gets called via -webkit-appearance and Rend
erTheme, | 190 // and paintMediaSlider that gets called via -webkit-appearance and Rend
erTheme, |
| 191 // so nothing else would otherwise invalidate the slider. | 191 // so nothing else would otherwise invalidate the slider. |
| 192 repaint(); | 192 repaint(); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 | 195 |
| 196 // -------------------------------- | 196 // -------------------------------- |
| 197 | 197 |
| 198 inline SliderThumbElement::SliderThumbElement(Document& document) | 198 inline SliderThumbElement::SliderThumbElement(Document& document) |
| 199 : HTMLDivElement(HTMLNames::divTag, document) | 199 : HTMLDivElement(document) |
| 200 , m_inDragMode(false) | 200 , m_inDragMode(false) |
| 201 { | 201 { |
| 202 } | 202 } |
| 203 | 203 |
| 204 PassRefPtr<SliderThumbElement> SliderThumbElement::create(Document& document) | 204 PassRefPtr<SliderThumbElement> SliderThumbElement::create(Document& document) |
| 205 { | 205 { |
| 206 RefPtr<SliderThumbElement> element = adoptRef(new SliderThumbElement(documen
t)); | 206 RefPtr<SliderThumbElement> element = adoptRef(new SliderThumbElement(documen
t)); |
| 207 element->setAttribute(idAttr, ShadowElementNames::sliderThumb()); | 207 element->setAttribute(idAttr, ShadowElementNames::sliderThumb()); |
| 208 return element.release(); | 208 return element.release(); |
| 209 } | 209 } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 case MediaFullScreenVolumeSliderThumbPart: | 428 case MediaFullScreenVolumeSliderThumbPart: |
| 429 return mediaSliderThumbShadowPartId(); | 429 return mediaSliderThumbShadowPartId(); |
| 430 default: | 430 default: |
| 431 return sliderThumbShadowPartId(); | 431 return sliderThumbShadowPartId(); |
| 432 } | 432 } |
| 433 } | 433 } |
| 434 | 434 |
| 435 // -------------------------------- | 435 // -------------------------------- |
| 436 | 436 |
| 437 inline SliderContainerElement::SliderContainerElement(Document& document) | 437 inline SliderContainerElement::SliderContainerElement(Document& document) |
| 438 : HTMLDivElement(HTMLNames::divTag, document) | 438 : HTMLDivElement(document) |
| 439 { | 439 { |
| 440 } | 440 } |
| 441 | 441 |
| 442 PassRefPtr<SliderContainerElement> SliderContainerElement::create(Document& docu
ment) | 442 PassRefPtr<SliderContainerElement> SliderContainerElement::create(Document& docu
ment) |
| 443 { | 443 { |
| 444 return adoptRef(new SliderContainerElement(document)); | 444 return adoptRef(new SliderContainerElement(document)); |
| 445 } | 445 } |
| 446 | 446 |
| 447 RenderObject* SliderContainerElement::createRenderer(RenderStyle*) | 447 RenderObject* SliderContainerElement::createRenderer(RenderStyle*) |
| 448 { | 448 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 465 case MediaVolumeSliderThumbPart: | 465 case MediaVolumeSliderThumbPart: |
| 466 case MediaFullScreenVolumeSliderPart: | 466 case MediaFullScreenVolumeSliderPart: |
| 467 case MediaFullScreenVolumeSliderThumbPart: | 467 case MediaFullScreenVolumeSliderThumbPart: |
| 468 return mediaSliderContainer; | 468 return mediaSliderContainer; |
| 469 default: | 469 default: |
| 470 return sliderContainer; | 470 return sliderContainer; |
| 471 } | 471 } |
| 472 } | 472 } |
| 473 | 473 |
| 474 } | 474 } |
| OLD | NEW |