Index: Source/core/layout/LayoutSliderContainer.cpp |
diff --git a/Source/core/layout/LayoutSliderContainer.cpp b/Source/core/layout/LayoutSliderContainer.cpp |
index 27f38ade26e85b231a0e683a30095448b82b6199..1c6766ec1282df8202399d33d8bdfa9a1aac085b 100644 |
--- a/Source/core/layout/LayoutSliderContainer.cpp |
+++ b/Source/core/layout/LayoutSliderContainer.cpp |
@@ -57,8 +57,8 @@ inline static Decimal sliderPosition(HTMLInputElement* element) |
inline static bool hasVerticalAppearance(HTMLInputElement* input) |
{ |
- ASSERT(input->renderer()); |
- const LayoutStyle& sliderStyle = input->renderer()->styleRef(); |
+ ASSERT(input->layoutObject()); |
+ const LayoutStyle& sliderStyle = input->layoutObject()->styleRef(); |
return sliderStyle.appearance() == SliderVerticalPart; |
} |
@@ -68,7 +68,7 @@ void LayoutSliderContainer::computeLogicalHeight(LayoutUnit logicalHeight, Layou |
HTMLInputElement* input = toHTMLInputElement(node()->shadowHost()); |
bool isVertical = hasVerticalAppearance(input); |
- if (input->renderer()->isSlider() && !isVertical && input->list()) { |
+ if (input->layoutObject()->isSlider() && !isVertical && input->list()) { |
int offsetFromCenter = LayoutTheme::theme().sliderTickOffsetFromTrackCenter(); |
LayoutUnit trackHeight = 0; |
if (offsetFromCenter < 0) { |