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