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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void LayoutSliderThumb::updateAppearance(const ComputedStyle& parentStyle) | 44 void LayoutSliderThumb::updateAppearance(const ComputedStyle& parentStyle) |
45 { | 45 { |
46 if (parentStyle.appearance() == SliderVerticalPart) | 46 if (parentStyle.appearance() == SliderVerticalPart) |
47 mutableStyleRef().setAppearance(SliderThumbVerticalPart); | 47 mutableStyleRef().setAppearance(SliderThumbVerticalPart); |
48 else if (parentStyle.appearance() == SliderHorizontalPart) | 48 else if (parentStyle.appearance() == SliderHorizontalPart) |
49 mutableStyleRef().setAppearance(SliderThumbHorizontalPart); | 49 mutableStyleRef().setAppearance(SliderThumbHorizontalPart); |
50 else if (parentStyle.appearance() == MediaSliderPart) | 50 else if (parentStyle.appearance() == MediaSliderPart) |
51 mutableStyleRef().setAppearance(MediaSliderThumbPart); | 51 mutableStyleRef().setAppearance(MediaSliderThumbPart); |
52 else if (parentStyle.appearance() == MediaVolumeSliderPart) | 52 else if (parentStyle.appearance() == MediaVolumeSliderPart) |
53 mutableStyleRef().setAppearance(MediaVolumeSliderThumbPart); | 53 mutableStyleRef().setAppearance(MediaVolumeSliderThumbPart); |
54 else if (parentStyle.appearance() == MediaFullScreenVolumeSliderPart) | 54 else if (parentStyle.appearance() == MediaFullscreenVolumeSliderPart) |
55 mutableStyleRef().setAppearance(MediaFullScreenVolumeSliderThumbPart); | 55 mutableStyleRef().setAppearance(MediaFullscreenVolumeSliderThumbPart); |
56 if (styleRef().hasAppearance()) | 56 if (styleRef().hasAppearance()) |
57 LayoutTheme::theme().adjustSliderThumbSize(mutableStyleRef()); | 57 LayoutTheme::theme().adjustSliderThumbSize(mutableStyleRef()); |
58 } | 58 } |
59 | 59 |
60 } // namespace blink | 60 } // namespace blink |
OLD | NEW |