Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: Source/core/html/FileInputType.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/ColorInputType.cpp ('k') | Source/core/html/HTMLAnchorElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « Source/core/html/ColorInputType.cpp ('k') | Source/core/html/HTMLAnchorElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698