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

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

Issue 150103007: Use fastGetAttribute in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more instances Created 6 years, 10 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
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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 } 791 }
792 792
793 String HTMLInputElement::altText() const 793 String HTMLInputElement::altText() const
794 { 794 {
795 // http://www.w3.org/TR/1998/REC-html40-19980424/appendix/notes.html#altgen 795 // http://www.w3.org/TR/1998/REC-html40-19980424/appendix/notes.html#altgen
796 // also heavily discussed by Hixie on bugzilla 796 // also heavily discussed by Hixie on bugzilla
797 // note this is intentionally different to HTMLImageElement::altText() 797 // note this is intentionally different to HTMLImageElement::altText()
798 String alt = fastGetAttribute(altAttr); 798 String alt = fastGetAttribute(altAttr);
799 // fall back to title attribute 799 // fall back to title attribute
800 if (alt.isNull()) 800 if (alt.isNull())
801 alt = getAttribute(titleAttr); 801 alt = fastGetAttribute(titleAttr);
802 if (alt.isNull()) 802 if (alt.isNull())
803 alt = getAttribute(valueAttr); 803 alt = fastGetAttribute(valueAttr);
804 if (alt.isEmpty()) 804 if (alt.isEmpty())
805 alt = locale().queryString(blink::WebLocalizedString::InputElementAltTex t); 805 alt = locale().queryString(blink::WebLocalizedString::InputElementAltTex t);
806 return alt; 806 return alt;
807 } 807 }
808 808
809 bool HTMLInputElement::canBeSuccessfulSubmitButton() const 809 bool HTMLInputElement::canBeSuccessfulSubmitButton() const
810 { 810 {
811 return m_inputType->canBeSuccessfulSubmitButton(); 811 return m_inputType->canBeSuccessfulSubmitButton();
812 } 812 }
813 813
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 } 1863 }
1864 1864
1865 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1865 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1866 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1866 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1867 { 1867 {
1868 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1868 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1869 } 1869 }
1870 #endif 1870 #endif
1871 1871
1872 } // namespace 1872 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698