| OLD | NEW |
| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 { | 279 { |
| 280 return m_popupClient->menuStyle().textDirection() == RTL; | 280 return m_popupClient->menuStyle().textDirection() == RTL; |
| 281 } | 281 } |
| 282 | 282 |
| 283 // From HTMLSelectElement.cpp | 283 // From HTMLSelectElement.cpp |
| 284 static String stripLeadingWhiteSpace(const String& string) | 284 static String stripLeadingWhiteSpace(const String& string) |
| 285 { | 285 { |
| 286 int length = string.length(); | 286 int length = string.length(); |
| 287 int i; | 287 int i; |
| 288 for (i = 0; i < length; ++i) | 288 for (i = 0; i < length; ++i) |
| 289 if (string[i] != noBreakSpace | 289 if (string[i] != characterNoBreakSpace |
| 290 && !isSpaceOrNewline(string[i])) | 290 && !isSpaceOrNewline(string[i])) |
| 291 break; | 291 break; |
| 292 | 292 |
| 293 return string.substring(i, length - i); | 293 return string.substring(i, length - i); |
| 294 } | 294 } |
| 295 | 295 |
| 296 // From HTMLSelectElement.cpp, with modifications | 296 // From HTMLSelectElement.cpp, with modifications |
| 297 void PopupListBox::typeAheadFind(const PlatformKeyboardEvent& event) | 297 void PopupListBox::typeAheadFind(const PlatformKeyboardEvent& event) |
| 298 { | 298 { |
| 299 TimeStamp now = static_cast<TimeStamp>(currentTime() * 1000.0f); | 299 TimeStamp now = static_cast<TimeStamp>(currentTime() * 1000.0f); |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 maximumOffset.clampNegativeToZero(); | 1025 maximumOffset.clampNegativeToZero(); |
| 1026 return maximumOffset; | 1026 return maximumOffset; |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 IntPoint PopupListBox::minimumScrollPosition() const | 1029 IntPoint PopupListBox::minimumScrollPosition() const |
| 1030 { | 1030 { |
| 1031 return IntPoint(-scrollOrigin().x(), -scrollOrigin().y()); | 1031 return IntPoint(-scrollOrigin().x(), -scrollOrigin().y()); |
| 1032 } | 1032 } |
| 1033 | 1033 |
| 1034 } // namespace blink | 1034 } // namespace blink |
| OLD | NEW |