| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // -------------------------------- | 200 // -------------------------------- |
| 201 | 201 |
| 202 inline SliderThumbElement::SliderThumbElement(Document& document) | 202 inline SliderThumbElement::SliderThumbElement(Document& document) |
| 203 : HTMLDivElement(document) | 203 : HTMLDivElement(document) |
| 204 , m_inDragMode(false) | 204 , m_inDragMode(false) |
| 205 { | 205 { |
| 206 } | 206 } |
| 207 | 207 |
| 208 PassRefPtrWillBeRawPtr<SliderThumbElement> SliderThumbElement::create(Document&
document) | 208 PassRefPtrWillBeRawPtr<SliderThumbElement> SliderThumbElement::create(Document&
document) |
| 209 { | 209 { |
| 210 RefPtrWillBeRawPtr<SliderThumbElement> element = adoptRefWillBeRefCountedGar
bageCollected(new SliderThumbElement(document)); | 210 RefPtrWillBeRawPtr<SliderThumbElement> element = adoptRefWillBeNoop(new Slid
erThumbElement(document)); |
| 211 element->setAttribute(idAttr, ShadowElementNames::sliderThumb()); | 211 element->setAttribute(idAttr, ShadowElementNames::sliderThumb()); |
| 212 return element.release(); | 212 return element.release(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 void SliderThumbElement::setPositionFromValue() | 215 void SliderThumbElement::setPositionFromValue() |
| 216 { | 216 { |
| 217 // Since the code to calculate position is in the RenderSliderThumb layout | 217 // Since the code to calculate position is in the RenderSliderThumb layout |
| 218 // path, we don't actually update the value here. Instead, we poke at the | 218 // path, we don't actually update the value here. Instead, we poke at the |
| 219 // renderer directly to trigger layout. | 219 // renderer directly to trigger layout. |
| 220 if (renderer()) | 220 if (renderer()) |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 case MediaVolumeSliderThumbPart: | 467 case MediaVolumeSliderThumbPart: |
| 468 case MediaFullScreenVolumeSliderPart: | 468 case MediaFullScreenVolumeSliderPart: |
| 469 case MediaFullScreenVolumeSliderThumbPart: | 469 case MediaFullScreenVolumeSliderThumbPart: |
| 470 return mediaSliderContainer; | 470 return mediaSliderContainer; |
| 471 default: | 471 default: |
| 472 return sliderContainer; | 472 return sliderContainer; |
| 473 } | 473 } |
| 474 } | 474 } |
| 475 | 475 |
| 476 } | 476 } |
| OLD | NEW |