| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 clearPreferredLogicalWidthsDirty(); | 90 clearPreferredLogicalWidthsDirty(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 inline SliderThumbElement* RenderSlider::sliderThumbElement() const | 93 inline SliderThumbElement* RenderSlider::sliderThumbElement() const |
| 94 { | 94 { |
| 95 return toSliderThumbElement(toElement(node())->userAgentShadowRoot()->getEle
mentById(ShadowElementNames::sliderThumb())); | 95 return toSliderThumbElement(toElement(node())->userAgentShadowRoot()->getEle
mentById(ShadowElementNames::sliderThumb())); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void RenderSlider::layout() | 98 void RenderSlider::layout() |
| 99 { | 99 { |
| 100 StackStats::LayoutCheckPoint layoutCheckPoint; | |
| 101 // FIXME: Find a way to cascade appearance. | 100 // FIXME: Find a way to cascade appearance. |
| 102 // http://webkit.org/b/62535 | 101 // http://webkit.org/b/62535 |
| 103 RenderBox* thumbBox = sliderThumbElement()->renderBox(); | 102 RenderBox* thumbBox = sliderThumbElement()->renderBox(); |
| 104 if (thumbBox && thumbBox->isSliderThumb()) | 103 if (thumbBox && thumbBox->isSliderThumb()) |
| 105 static_cast<RenderSliderThumb*>(thumbBox)->updateAppearance(style()); | 104 static_cast<RenderSliderThumb*>(thumbBox)->updateAppearance(style()); |
| 106 | 105 |
| 107 RenderFlexibleBox::layout(); | 106 RenderFlexibleBox::layout(); |
| 108 } | 107 } |
| 109 | 108 |
| 110 bool RenderSlider::inDragMode() const | 109 bool RenderSlider::inDragMode() const |
| 111 { | 110 { |
| 112 return sliderThumbElement()->active(); | 111 return sliderThumbElement()->active(); |
| 113 } | 112 } |
| 114 | 113 |
| 115 } // namespace WebCore | 114 } // namespace WebCore |
| OLD | NEW |