| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 HTMLInputElement* input = hostInput(); | 295 HTMLInputElement* input = hostInput(); |
| 296 if (!input || !input->layoutObject()) | 296 if (!input || !input->layoutObject()) |
| 297 return sliderThumbShadowPartId(); | 297 return sliderThumbShadowPartId(); |
| 298 | 298 |
| 299 const ComputedStyle& sliderStyle = input->layoutObject()->styleRef(); | 299 const ComputedStyle& sliderStyle = input->layoutObject()->styleRef(); |
| 300 switch (sliderStyle.appearance()) { | 300 switch (sliderStyle.appearance()) { |
| 301 case MediaSliderPart: | 301 case MediaSliderPart: |
| 302 case MediaSliderThumbPart: | 302 case MediaSliderThumbPart: |
| 303 case MediaVolumeSliderPart: | 303 case MediaVolumeSliderPart: |
| 304 case MediaVolumeSliderThumbPart: | 304 case MediaVolumeSliderThumbPart: |
| 305 case MediaFullscreenVolumeSliderPart: | |
| 306 case MediaFullscreenVolumeSliderThumbPart: | |
| 307 return mediaSliderThumbShadowPartId(); | 305 return mediaSliderThumbShadowPartId(); |
| 308 default: | 306 default: |
| 309 return sliderThumbShadowPartId(); | 307 return sliderThumbShadowPartId(); |
| 310 } | 308 } |
| 311 } | 309 } |
| 312 | 310 |
| 313 // -------------------------------- | 311 // -------------------------------- |
| 314 | 312 |
| 315 inline SliderContainerElement::SliderContainerElement(Document& document) | 313 inline SliderContainerElement::SliderContainerElement(Document& document) |
| 316 : HTMLDivElement(document), | 314 : HTMLDivElement(document), |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 if (!ownerShadowHost() || !ownerShadowHost()->layoutObject()) | 425 if (!ownerShadowHost() || !ownerShadowHost()->layoutObject()) |
| 428 return sliderContainer; | 426 return sliderContainer; |
| 429 | 427 |
| 430 const ComputedStyle& sliderStyle = | 428 const ComputedStyle& sliderStyle = |
| 431 ownerShadowHost()->layoutObject()->styleRef(); | 429 ownerShadowHost()->layoutObject()->styleRef(); |
| 432 switch (sliderStyle.appearance()) { | 430 switch (sliderStyle.appearance()) { |
| 433 case MediaSliderPart: | 431 case MediaSliderPart: |
| 434 case MediaSliderThumbPart: | 432 case MediaSliderThumbPart: |
| 435 case MediaVolumeSliderPart: | 433 case MediaVolumeSliderPart: |
| 436 case MediaVolumeSliderThumbPart: | 434 case MediaVolumeSliderThumbPart: |
| 437 case MediaFullscreenVolumeSliderPart: | |
| 438 case MediaFullscreenVolumeSliderThumbPart: | |
| 439 return mediaSliderContainer; | 435 return mediaSliderContainer; |
| 440 default: | 436 default: |
| 441 return sliderContainer; | 437 return sliderContainer; |
| 442 } | 438 } |
| 443 } | 439 } |
| 444 | 440 |
| 445 void SliderContainerElement::updateTouchEventHandlerRegistry() { | 441 void SliderContainerElement::updateTouchEventHandlerRegistry() { |
| 446 if (m_hasTouchEventHandler) { | 442 if (m_hasTouchEventHandler) { |
| 447 return; | 443 return; |
| 448 } | 444 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 459 updateTouchEventHandlerRegistry(); | 455 updateTouchEventHandlerRegistry(); |
| 460 HTMLElement::didMoveToNewDocument(oldDocument); | 456 HTMLElement::didMoveToNewDocument(oldDocument); |
| 461 } | 457 } |
| 462 | 458 |
| 463 void SliderContainerElement::removeAllEventListeners() { | 459 void SliderContainerElement::removeAllEventListeners() { |
| 464 Node::removeAllEventListeners(); | 460 Node::removeAllEventListeners(); |
| 465 m_hasTouchEventHandler = false; | 461 m_hasTouchEventHandler = false; |
| 466 } | 462 } |
| 467 | 463 |
| 468 } // namespace blink | 464 } // namespace blink |
| OLD | NEW |