Index: Source/core/html/FileInputType.cpp |
diff --git a/Source/core/html/FileInputType.cpp b/Source/core/html/FileInputType.cpp |
index 43ab9bf2a57579f9dfc76ebc740274e07cccbe2e..f55cf2bdcdd057cbaac54a802a942035d233c0f4 100644 |
--- a/Source/core/html/FileInputType.cpp |
+++ b/Source/core/html/FileInputType.cpp |
@@ -256,7 +256,7 @@ bool FileInputType::isFileUpload() const |
void FileInputType::createShadowSubtree() |
{ |
ASSERT(element()->shadow()); |
- RefPtr<HTMLInputElement> button = HTMLInputElement::create(inputTag, &element()->document(), 0, false); |
+ RefPtr<HTMLInputElement> button = HTMLInputElement::create(inputTag, element()->document(), 0, false); |
button->setType(InputTypeNames::button()); |
button->setAttribute(valueAttr, element()->multiple() ? fileButtonChooseMultipleFilesLabel() : fileButtonChooseFileLabel()); |
button->setPart(AtomicString("-webkit-file-upload-button", AtomicString::ConstructFromLiteral)); |