Index: Source/web/WebTextAreaElement.cpp |
diff --git a/Source/web/WebTextAreaElement.cpp b/Source/web/WebTextAreaElement.cpp |
index 334f4f0b1f7ce970bf9a099312d1044c4e9176db..b10c8e7be58a1b4f2078d819cd302bb917bc2450 100644 |
--- a/Source/web/WebTextAreaElement.cpp |
+++ b/Source/web/WebTextAreaElement.cpp |
@@ -56,4 +56,12 @@ WebTextAreaElement::operator PassRefPtrWillBeRawPtr<HTMLTextAreaElement>() const |
return toHTMLTextAreaElement(m_private.get()); |
} |
+WebTextAreaElement* toWebTextAreaElement(WebElement* webElement) |
+{ |
+ if (!webElement || !isHTMLTextAreaElement(*webElement->unwrap<Element>())) |
+ return 0; |
+ |
+ return static_cast<WebTextAreaElement*>(webElement); |
+} |
+ |
} // namespace blink |