Index: Source/web/WebFormControlElement.cpp |
diff --git a/Source/web/WebFormControlElement.cpp b/Source/web/WebFormControlElement.cpp |
index 4b3058f2bcf037942c4b5fff697dc83a1ce3f73e..2795ae9568d47a7d4d8bc8cc7cf126b7fb77d60f 100644 |
--- a/Source/web/WebFormControlElement.cpp |
+++ b/Source/web/WebFormControlElement.cpp |
@@ -165,7 +165,7 @@ int WebFormControlElement::selectionEnd() const |
WebString WebFormControlElement::directionForFormData() const |
{ |
- if (RenderStyle* style = constUnwrap<HTMLFormControlElement>()->renderStyle()) |
+ if (const RenderStyle* style = constUnwrap<HTMLFormControlElement>()->renderStyle()) |
return style->isLeftToRightDirection() ? WebString::fromUTF8("ltr") : WebString::fromUTF8("rtl"); |
return WebString::fromUTF8("ltr"); |
} |