Index: Source/core/html/RangeInputType.cpp |
diff --git a/Source/core/html/RangeInputType.cpp b/Source/core/html/RangeInputType.cpp |
index 3bf12896231044cb307f9a8b189657a1f1b05fef..08f3608850508f43f3175cc749390ad67a47cdf8 100644 |
--- a/Source/core/html/RangeInputType.cpp |
+++ b/Source/core/html/RangeInputType.cpp |
@@ -244,7 +244,7 @@ void RangeInputType::createShadowSubtree() |
{ |
ASSERT(element()->shadow()); |
- Document* document = &element()->document(); |
+ Document& document = element()->document(); |
RefPtr<HTMLDivElement> track = HTMLDivElement::create(document); |
track->setPart(AtomicString("-webkit-slider-runnable-track", AtomicString::ConstructFromLiteral)); |
track->setAttribute(idAttr, ShadowElementNames::sliderTrack()); |