| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |