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

Side by Side Diff: Source/core/html/HTMLInputElement.cpp

Issue 126443005: Use TreeScope::completeURL and baseURL instead of the Document versions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased again, passes tests Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLKeygenElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 void HTMLInputElement::setSize(unsigned size, ExceptionState& exceptionState) 1300 void HTMLInputElement::setSize(unsigned size, ExceptionState& exceptionState)
1301 { 1301 {
1302 if (!size) 1302 if (!size)
1303 exceptionState.throwDOMException(IndexSizeError, "The value provided is 0, which is an invalid size."); 1303 exceptionState.throwDOMException(IndexSizeError, "The value provided is 0, which is an invalid size.");
1304 else 1304 else
1305 setSize(size); 1305 setSize(size);
1306 } 1306 }
1307 1307
1308 KURL HTMLInputElement::src() const 1308 KURL HTMLInputElement::src() const
1309 { 1309 {
1310 return document().completeURL(fastGetAttribute(srcAttr)); 1310 return treeScope().completeURL(fastGetAttribute(srcAttr));
1311 } 1311 }
1312 1312
1313 FileList* HTMLInputElement::files() 1313 FileList* HTMLInputElement::files()
1314 { 1314 {
1315 return m_inputType->files(); 1315 return m_inputType->files();
1316 } 1316 }
1317 1317
1318 void HTMLInputElement::setFiles(PassRefPtr<FileList> files) 1318 void HTMLInputElement::setFiles(PassRefPtr<FileList> files)
1319 { 1319 {
1320 m_inputType->setFiles(files); 1320 m_inputType->setFiles(files);
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 } 1850 }
1851 1851
1852 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1852 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1853 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1853 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1854 { 1854 {
1855 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1855 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1856 } 1856 }
1857 #endif 1857 #endif
1858 1858
1859 } // namespace 1859 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLKeygenElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698