Index: Source/core/html/ColorInputType.cpp |
diff --git a/Source/core/html/ColorInputType.cpp b/Source/core/html/ColorInputType.cpp |
index 734ccc6ae4ed3eb0f2d7bb8330974fbbbf25ee76..e30d3dec0284e22ae2ace584cc3d9e60bd699049 100644 |
--- a/Source/core/html/ColorInputType.cpp |
+++ b/Source/core/html/ColorInputType.cpp |
@@ -118,10 +118,10 @@ void ColorInputType::createShadowSubtree() |
{ |
ASSERT(element()->shadow()); |
- Document* document = element()->document(); |
- RefPtr<HTMLDivElement> wrapperElement = HTMLDivElement::create(document); |
+ Document& document = element()->document(); |
+ RefPtr<HTMLDivElement> wrapperElement = HTMLDivElement::create(&document); |
wrapperElement->setPart(AtomicString("-webkit-color-swatch-wrapper", AtomicString::ConstructFromLiteral)); |
- RefPtr<HTMLDivElement> colorSwatch = HTMLDivElement::create(document); |
+ RefPtr<HTMLDivElement> colorSwatch = HTMLDivElement::create(&document); |
colorSwatch->setPart(AtomicString("-webkit-color-swatch", AtomicString::ConstructFromLiteral)); |
wrapperElement->appendChild(colorSwatch.release()); |
element()->userAgentShadowRoot()->appendChild(wrapperElement.release()); |
@@ -208,7 +208,7 @@ HTMLElement* ColorInputType::shadowColorSwatch() const |
IntRect ColorInputType::elementRectRelativeToRootView() const |
{ |
- return element()->document()->view()->contentsToRootView(element()->pixelSnappedBoundingBox()); |
+ return element()->document().view()->contentsToRootView(element()->pixelSnappedBoundingBox()); |
} |
Color ColorInputType::currentColor() |