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

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

Issue 202633009: Add Element::subResourceAttributeName() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use nullQName() Created 6 years, 9 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/HTMLInputElement.h ('k') | Source/core/html/HTMLLinkElement.h » ('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 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 bool HTMLInputElement::isURLAttribute(const Attribute& attribute) const 1204 bool HTMLInputElement::isURLAttribute(const Attribute& attribute) const
1205 { 1205 {
1206 return attribute.name() == srcAttr || attribute.name() == formactionAttr || HTMLTextFormControlElement::isURLAttribute(attribute); 1206 return attribute.name() == srcAttr || attribute.name() == formactionAttr || HTMLTextFormControlElement::isURLAttribute(attribute);
1207 } 1207 }
1208 1208
1209 bool HTMLInputElement::hasLegalLinkAttribute(const QualifiedName& name) const 1209 bool HTMLInputElement::hasLegalLinkAttribute(const QualifiedName& name) const
1210 { 1210 {
1211 return m_inputType->hasLegalLinkAttribute(name) || HTMLTextFormControlElemen t::hasLegalLinkAttribute(name); 1211 return m_inputType->hasLegalLinkAttribute(name) || HTMLTextFormControlElemen t::hasLegalLinkAttribute(name);
1212 } 1212 }
1213 1213
1214 const QualifiedName& HTMLInputElement::subResourceAttributeName() const
1215 {
1216 return m_inputType->subResourceAttributeName();
1217 }
1218
1214 const AtomicString& HTMLInputElement::defaultValue() const 1219 const AtomicString& HTMLInputElement::defaultValue() const
1215 { 1220 {
1216 return fastGetAttribute(valueAttr); 1221 return fastGetAttribute(valueAttr);
1217 } 1222 }
1218 1223
1219 void HTMLInputElement::setDefaultValue(const AtomicString& value) 1224 void HTMLInputElement::setDefaultValue(const AtomicString& value)
1220 { 1225 {
1221 setAttribute(valueAttr, value); 1226 setAttribute(valueAttr, value);
1222 } 1227 }
1223 1228
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 } 1878 }
1874 1879
1875 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1880 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1876 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1881 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1877 { 1882 {
1878 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1883 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1879 } 1884 }
1880 #endif 1885 #endif
1881 1886
1882 } // namespace 1887 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLLinkElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698