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

Side by Side Diff: third_party/WebKit/Source/core/html/forms/InputType.cpp

Issue 1844223002: Literal AtomicString construction can rely on strlen optimization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 9 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
10 * 10 *
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 return QualifiedName::null(); 725 return QualifiedName::null();
726 } 726 }
727 727
728 bool InputType::supportsAutocapitalize() const 728 bool InputType::supportsAutocapitalize() const
729 { 729 {
730 return false; 730 return false;
731 } 731 }
732 732
733 const AtomicString& InputType::defaultAutocapitalize() const 733 const AtomicString& InputType::defaultAutocapitalize() const
734 { 734 {
735 DEFINE_STATIC_LOCAL(const AtomicString, none, ("none", AtomicString::Constru ctFromLiteral)); 735 DEFINE_STATIC_LOCAL(const AtomicString, none, ("none"));
736 return none; 736 return none;
737 } 737 }
738 738
739 bool InputType::shouldAppearIndeterminate() const 739 bool InputType::shouldAppearIndeterminate() const
740 { 740 {
741 return false; 741 return false;
742 } 742 }
743 743
744 bool InputType::supportsInputModeAttribute() const 744 bool InputType::supportsInputModeAttribute() const
745 { 745 {
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 return StepRange(stepBase, minimum, maximum, step, stepDescription); 973 return StepRange(stepBase, minimum, maximum, step, stepDescription);
974 } 974 }
975 975
976 void InputType::addWarningToConsole(const char* messageFormat, const String& val ue) const 976 void InputType::addWarningToConsole(const char* messageFormat, const String& val ue) const
977 { 977 {
978 element().document().addConsoleMessage(ConsoleMessage::create(RenderingMessa geSource, WarningMessageLevel, 978 element().document().addConsoleMessage(ConsoleMessage::create(RenderingMessa geSource, WarningMessageLevel,
979 String::format(messageFormat, JSONValue::quoteString(value).utf8().data( )))); 979 String::format(messageFormat, JSONValue::quoteString(value).utf8().data( ))));
980 } 980 }
981 981
982 } // namespace blink 982 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698