| Index: third_party/WebKit/Source/core/html/forms/TypeAhead.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp b/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp
|
| index 33238c2ade8454ae8de51e3d5eeee94e4769444d..8de4b83bba4e6697efd0048f4f6317b434d13245 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/TypeAhead.cpp
|
| @@ -3,10 +3,12 @@
|
| * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
|
| * (C) 1999 Antti Koivisto (koivisto@kde.org)
|
| * (C) 2001 Dirk Mueller (mueller@kde.org)
|
| - * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
|
| + * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
|
| + * reserved.
|
| * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
|
| * Copyright (C) 2010 Google Inc. All rights reserved.
|
| - * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
|
| + * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
|
| + * (http://www.torchmobile.com/)
|
| *
|
| * This library is free software; you can redistribute it and/or
|
| * modify it under the terms of the GNU Library General Public
|
| @@ -91,13 +93,14 @@ int TypeAhead::handleEvent(KeyboardEvent* event, MatchModeFlags matchMode) {
|
| int index = (selected < 0 ? 0 : selected) + searchStartOffset;
|
| index %= optionCount;
|
|
|
| - // Compute a case-folded copy of the prefix string before beginning the search for
|
| - // a matching element. This code uses foldCase to work around the fact that
|
| - // String::startWith does not fold non-ASCII characters. This code can be changed
|
| - // to use startWith once that is fixed.
|
| + // Compute a case-folded copy of the prefix string before beginning the
|
| + // search for a matching element. This code uses foldCase to work around the
|
| + // fact that String::startWith does not fold non-ASCII characters. This code
|
| + // can be changed to use startWith once that is fixed.
|
| String prefixWithCaseFolded(prefix.foldCase());
|
| for (int i = 0; i < optionCount; ++i, index = (index + 1) % optionCount) {
|
| - // Fold the option string and check if its prefix is equal to the folded prefix.
|
| + // Fold the option string and check if its prefix is equal to the folded
|
| + // prefix.
|
| String text = m_dataSource->optionAtIndex(index);
|
| if (stripLeadingWhiteSpace(text).foldCase().startsWith(
|
| prefixWithCaseFolded))
|
|
|