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

Unified Diff: Source/core/html/HTMLSelectElement.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLSelectElement.h ('k') | Source/core/html/HTMLSourceElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index d2c86ce69651324a2d51f3211447809bfa60f772..63e806c08a6ebccdabba92c8d245685314e8a596 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -129,7 +129,7 @@ void HTMLSelectElement::optionSelectedByUser(int optionIndex, bool fireOnChangeN
bool HTMLSelectElement::hasPlaceholderLabelOption() const
{
// The select element has no placeholder label option if it has an attribute "multiple" specified or a display size of non-1.
- //
+ //
// The condition "size() > 1" is not compliant with the HTML5 spec as of Dec 3, 2010. "size() != 1" is correct.
// Using "size() > 1" here because size() may be 0 in WebKit.
// See the discussion at https://bugs.webkit.org/show_bug.cgi?id=43887
@@ -721,7 +721,7 @@ void HTMLSelectElement::setRecalcListItems()
}
if (!inDocument())
invalidateSelectedItems();
-
+
if (renderer()) {
if (AXObjectCache* cache = renderer()->document()->existingAXObjectCache())
cache->childrenChanged(this);
@@ -1028,7 +1028,7 @@ bool HTMLSelectElement::appendFormData(FormDataList& list, bool)
// will be submitted (!successful). We won't send a unselected non-disabled
// option as fallback. This behavior matches to other browsers.
return successful;
-}
+}
void HTMLSelectElement::reset()
{
@@ -1455,7 +1455,7 @@ void HTMLSelectElement::defaultEventHandler(Event* event)
if (usesMenuList())
menuListDefaultEventHandler(event);
- else
+ else
listBoxDefaultEventHandler(event);
if (event->defaultHandled())
return;
@@ -1495,7 +1495,7 @@ int HTMLSelectElement::optionCount() const
String HTMLSelectElement::optionAtIndex(int index) const
{
const Vector<HTMLElement*>& items = listItems();
-
+
HTMLElement* element = items[index];
if (!element->hasTagName(optionTag) || toHTMLOptionElement(element)->isDisabledFormControl())
return String();
@@ -1523,11 +1523,11 @@ Node::InsertionNotificationRequest HTMLSelectElement::insertedInto(ContainerNode
}
void HTMLSelectElement::accessKeySetSelectedIndex(int index)
-{
+{
// First bring into focus the list box.
if (!focused())
accessKeyAction(false);
-
+
// If this index is already selected, unselect. otherwise update the selected index.
const Vector<HTMLElement*>& items = listItems();
int listIndex = optionToListIndex(index);
« no previous file with comments | « Source/core/html/HTMLSelectElement.h ('k') | Source/core/html/HTMLSourceElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698