Index: third_party/WebKit/Source/core/layout/LayoutSliderContainer.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutSliderContainer.cpp b/third_party/WebKit/Source/core/layout/LayoutSliderContainer.cpp |
index 4a0d70e3fe7cb2473521f093edb2cbd902bc78da..1606f5c6f2fc4655312b30efba88fe5361988f56 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutSliderContainer.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutSliderContainer.cpp |
@@ -63,7 +63,7 @@ inline static bool hasVerticalAppearance(HTMLInputElement* input) |
void LayoutSliderContainer::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const |
{ |
- HTMLInputElement* input = toHTMLInputElement(node()->shadowHost()); |
+ HTMLInputElement* input = toHTMLInputElement(node()->ownerShadowHost()); |
bool isVertical = hasVerticalAppearance(input); |
if (input->layoutObject()->isSlider() && !isVertical && input->list()) { |
@@ -96,7 +96,7 @@ void LayoutSliderContainer::computeLogicalHeight(LayoutUnit logicalHeight, Layou |
void LayoutSliderContainer::layout() |
{ |
- HTMLInputElement* input = toHTMLInputElement(node()->shadowHost()); |
+ HTMLInputElement* input = toHTMLInputElement(node()->ownerShadowHost()); |
bool isVertical = hasVerticalAppearance(input); |
mutableStyleRef().setFlexDirection(isVertical ? FlowColumn : FlowRow); |
TextDirection oldTextDirection = style()->direction(); |