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

Side by Side Diff: Source/web/PopupListBox.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 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
« no previous file with comments | « Source/platform/text/UnicodeUtilitiesTest.cpp ('k') | Source/wtf/text/StringImpl.cpp » ('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) 2011, Google Inc. All rights reserved. 2 * Copyright (c) 2011, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 { 278 {
279 return m_popupClient->menuStyle().textDirection() == RTL; 279 return m_popupClient->menuStyle().textDirection() == RTL;
280 } 280 }
281 281
282 // From HTMLSelectElement.cpp 282 // From HTMLSelectElement.cpp
283 static String stripLeadingWhiteSpace(const String& string) 283 static String stripLeadingWhiteSpace(const String& string)
284 { 284 {
285 int length = string.length(); 285 int length = string.length();
286 int i; 286 int i;
287 for (i = 0; i < length; ++i) 287 for (i = 0; i < length; ++i)
288 if (string[i] != noBreakSpace 288 if (string[i] != noBreakSpaceCharacter
289 && !isSpaceOrNewline(string[i])) 289 && !isSpaceOrNewline(string[i]))
290 break; 290 break;
291 291
292 return string.substring(i, length - i); 292 return string.substring(i, length - i);
293 } 293 }
294 294
295 // From HTMLSelectElement.cpp, with modifications 295 // From HTMLSelectElement.cpp, with modifications
296 void PopupListBox::typeAheadFind(const PlatformKeyboardEvent& event) 296 void PopupListBox::typeAheadFind(const PlatformKeyboardEvent& event)
297 { 297 {
298 TimeStamp now = static_cast<TimeStamp>(currentTime() * 1000.0f); 298 TimeStamp now = static_cast<TimeStamp>(currentTime() * 1000.0f);
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 maximumOffset.clampNegativeToZero(); 1024 maximumOffset.clampNegativeToZero();
1025 return maximumOffset; 1025 return maximumOffset;
1026 } 1026 }
1027 1027
1028 IntPoint PopupListBox::minimumScrollPosition() const 1028 IntPoint PopupListBox::minimumScrollPosition() const
1029 { 1029 {
1030 return IntPoint(-scrollOrigin().x(), -scrollOrigin().y()); 1030 return IntPoint(-scrollOrigin().x(), -scrollOrigin().y());
1031 } 1031 }
1032 1032
1033 } // namespace blink 1033 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/text/UnicodeUtilitiesTest.cpp ('k') | Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698