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

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

Issue 202893002: Replace elementHasLegalLinkAttribute() helper with virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 return true; 1199 return true;
1200 1200
1201 return HTMLTextFormControlElement::willRespondToMouseClickEvents(); 1201 return HTMLTextFormControlElement::willRespondToMouseClickEvents();
1202 } 1202 }
1203 1203
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
1210 {
1211 return (isImageButton() && name == srcAttr) || HTMLTextFormControlElement::h asLegalLinkAttribute(name);
tkent 2014/03/18 01:23:31 We don't want to add new input-type check code in
Inactive 2014/03/18 02:10:22 I added the InputType::hasLegalLinkAttribute() vir
1212 }
1213
1209 const AtomicString& HTMLInputElement::defaultValue() const 1214 const AtomicString& HTMLInputElement::defaultValue() const
1210 { 1215 {
1211 return fastGetAttribute(valueAttr); 1216 return fastGetAttribute(valueAttr);
1212 } 1217 }
1213 1218
1214 void HTMLInputElement::setDefaultValue(const AtomicString& value) 1219 void HTMLInputElement::setDefaultValue(const AtomicString& value)
1215 { 1220 {
1216 setAttribute(valueAttr, value); 1221 setAttribute(valueAttr, value);
1217 } 1222 }
1218 1223
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 } 1873 }
1869 1874
1870 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1875 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1871 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1876 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1872 { 1877 {
1873 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1878 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1874 } 1879 }
1875 #endif 1880 #endif
1876 1881
1877 } // namespace 1882 } // 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