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

Side by Side Diff: Source/core/html/forms/ImageInputType.cpp

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 if (!element().value().isEmpty()) 79 if (!element().value().isEmpty())
80 encoding.appendData(name, element().value()); 80 encoding.appendData(name, element().value());
81 return true; 81 return true;
82 } 82 }
83 83
84 String ImageInputType::resultForDialogSubmit() const 84 String ImageInputType::resultForDialogSubmit() const
85 { 85 {
86 StringBuilder result; 86 StringBuilder result;
87 result.appendNumber(m_clickLocation.x()); 87 result.appendNumber(m_clickLocation.x());
88 result.append(","); 88 result.append(',');
89 result.appendNumber(m_clickLocation.y()); 89 result.appendNumber(m_clickLocation.y());
90 return result.toString(); 90 return result.toString();
91 } 91 }
92 92
93 bool ImageInputType::supportsValidation() const 93 bool ImageInputType::supportsValidation() const
94 { 94 {
95 return false; 95 return false;
96 } 96 }
97 97
98 static IntPoint extractClickLocation(Event* event) 98 static IntPoint extractClickLocation(Event* event)
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 { 236 {
237 return name == srcAttr || BaseButtonInputType::hasLegalLinkAttribute(name); 237 return name == srcAttr || BaseButtonInputType::hasLegalLinkAttribute(name);
238 } 238 }
239 239
240 const QualifiedName& ImageInputType::subResourceAttributeName() const 240 const QualifiedName& ImageInputType::subResourceAttributeName() const
241 { 241 {
242 return srcAttr; 242 return srcAttr;
243 } 243 }
244 244
245 } // namespace blink 245 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/forms/FormController.cpp ('k') | Source/core/html/parser/XSSAuditorDelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698