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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 return hostInput() && hostInput()->matchesReadWritePseudoClass(); | 241 return hostInput() && hostInput()->matchesReadWritePseudoClass(); |
242 } | 242 } |
243 | 243 |
244 Node* SliderThumbElement::focusDelegate() | 244 Node* SliderThumbElement::focusDelegate() |
245 { | 245 { |
246 return hostInput(); | 246 return hostInput(); |
247 } | 247 } |
248 | 248 |
249 void SliderThumbElement::dragFrom(const LayoutPoint& point) | 249 void SliderThumbElement::dragFrom(const LayoutPoint& point) |
250 { | 250 { |
251 RefPtr<SliderThumbElement> protector(this); | 251 RefPtrWillBeRawPtr<SliderThumbElement> protector(this); |
252 startDragging(); | 252 startDragging(); |
253 setPositionFromPoint(point); | 253 setPositionFromPoint(point); |
254 } | 254 } |
255 | 255 |
256 void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point) | 256 void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point) |
257 { | 257 { |
258 RefPtrWillBeRawPtr<HTMLInputElement> input(hostInput()); | 258 RefPtrWillBeRawPtr<HTMLInputElement> input(hostInput()); |
259 Element* trackElement = input->userAgentShadowRoot()->getElementById(ShadowE
lementNames::sliderTrack()); | 259 Element* trackElement = input->userAgentShadowRoot()->getElementById(ShadowE
lementNames::sliderTrack()); |
260 | 260 |
261 if (!input->renderer() || !renderBox() || !trackElement->renderBox()) | 261 if (!input->renderer() || !renderBox() || !trackElement->renderBox()) |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 case MediaVolumeSliderThumbPart: | 470 case MediaVolumeSliderThumbPart: |
471 case MediaFullScreenVolumeSliderPart: | 471 case MediaFullScreenVolumeSliderPart: |
472 case MediaFullScreenVolumeSliderThumbPart: | 472 case MediaFullScreenVolumeSliderThumbPart: |
473 return mediaSliderContainer; | 473 return mediaSliderContainer; |
474 default: | 474 default: |
475 return sliderContainer; | 475 return sliderContainer; |
476 } | 476 } |
477 } | 477 } |
478 | 478 |
479 } | 479 } |
OLD | NEW |