Index: Source/core/html/HTMLOptGroupElement.cpp |
diff --git a/Source/core/html/HTMLOptGroupElement.cpp b/Source/core/html/HTMLOptGroupElement.cpp |
index e88a4fd6a11d9d81eac18c2b6076934302b325df..83ea55bb36a343dfeb4b644e3e01420dfeac1418 100644 |
--- a/Source/core/html/HTMLOptGroupElement.cpp |
+++ b/Source/core/html/HTMLOptGroupElement.cpp |
@@ -125,7 +125,7 @@ PassRefPtr<RenderStyle> HTMLOptGroupElement::customStyleForRenderer() |
String HTMLOptGroupElement::groupLabelText() const |
{ |
- String itemText = document()->displayStringModifiedByEncoding(getAttribute(labelAttr)); |
+ 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(); |