Index: Source/core/html/HTMLOptGroupElement.cpp |
diff --git a/Source/core/html/HTMLOptGroupElement.cpp b/Source/core/html/HTMLOptGroupElement.cpp |
index 492f2b098c0beb9103b24b98588bd9108cb0e804..e88a4fd6a11d9d81eac18c2b6076934302b325df 100644 |
--- a/Source/core/html/HTMLOptGroupElement.cpp |
+++ b/Source/core/html/HTMLOptGroupElement.cpp |
@@ -126,24 +126,24 @@ PassRefPtr<RenderStyle> HTMLOptGroupElement::customStyleForRenderer() |
String HTMLOptGroupElement::groupLabelText() const |
{ |
String itemText = document()->displayStringModifiedByEncoding(getAttribute(labelAttr)); |
- |
+ |
// In WinIE, leading and trailing whitespace is ignored in options and optgroups. We match this behavior. |
itemText = itemText.stripWhiteSpace(); |
// We want to collapse our whitespace too. This will match other browsers. |
itemText = itemText.simplifyWhiteSpace(); |
- |
+ |
return itemText; |
} |
- |
+ |
HTMLSelectElement* HTMLOptGroupElement::ownerSelectElement() const |
{ |
ContainerNode* select = parentNode(); |
while (select && !select->hasTagName(selectTag)) |
select = select->parentNode(); |
- |
+ |
if (!select) |
return 0; |
- |
+ |
return toHTMLSelectElement(select); |
} |