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 26 matching lines...) Expand all Loading... |
37 #include "core/dom/MouseEvent.h" | 37 #include "core/dom/MouseEvent.h" |
38 #include "core/dom/shadow/ShadowRoot.h" | 38 #include "core/dom/shadow/ShadowRoot.h" |
39 #include "core/html/HTMLInputElement.h" | 39 #include "core/html/HTMLInputElement.h" |
40 #include "core/html/StepRange.h" | 40 #include "core/html/StepRange.h" |
41 #include "core/html/parser/HTMLParserIdioms.h" | 41 #include "core/html/parser/HTMLParserIdioms.h" |
42 #include "core/page/EventHandler.h" | 42 #include "core/page/EventHandler.h" |
43 #include "core/page/Frame.h" | 43 #include "core/page/Frame.h" |
44 #include "core/rendering/RenderFlexibleBox.h" | 44 #include "core/rendering/RenderFlexibleBox.h" |
45 #include "core/rendering/RenderSlider.h" | 45 #include "core/rendering/RenderSlider.h" |
46 #include "core/rendering/RenderTheme.h" | 46 #include "core/rendering/RenderTheme.h" |
47 #include <wtf/MathExtras.h> | |
48 | 47 |
49 using namespace std; | 48 using namespace std; |
50 | 49 |
51 namespace WebCore { | 50 namespace WebCore { |
52 | 51 |
53 using namespace HTMLNames; | 52 using namespace HTMLNames; |
54 | 53 |
55 inline static Decimal sliderPosition(HTMLInputElement* element) | 54 inline static Decimal sliderPosition(HTMLInputElement* element) |
56 { | 55 { |
57 const StepRange stepRange(element->createStepRange(RejectAny)); | 56 const StepRange stepRange(element->createStepRange(RejectAny)); |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 case MediaVolumeSliderThumbPart: | 468 case MediaVolumeSliderThumbPart: |
470 case MediaFullScreenVolumeSliderPart: | 469 case MediaFullScreenVolumeSliderPart: |
471 case MediaFullScreenVolumeSliderThumbPart: | 470 case MediaFullScreenVolumeSliderThumbPart: |
472 return mediaSliderContainer; | 471 return mediaSliderContainer; |
473 default: | 472 default: |
474 return sliderContainer; | 473 return sliderContainer; |
475 } | 474 } |
476 } | 475 } |
477 | 476 |
478 } | 477 } |
OLD | NEW |