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

Unified Diff: Source/core/html/HTMLTextAreaElement.h

Issue 19096009: Use isHTMLTextAreaElement and toHTMLTextAreaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/HTMLFormControlElement.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextAreaElement.h
diff --git a/Source/core/html/HTMLTextAreaElement.h b/Source/core/html/HTMLTextAreaElement.h
index 93970e47182201dad73e235d87b8afeeb4de3cef..58808aa0da78a6aadf03e32ecb9bc2078c395cf0 100644
--- a/Source/core/html/HTMLTextAreaElement.h
+++ b/Source/core/html/HTMLTextAreaElement.h
@@ -127,11 +127,16 @@ private:
mutable bool m_wasModifiedByUser;
};
-inline bool isHTMLTextAreaElement(Node* node)
+inline bool isHTMLTextAreaElement(const Node* node)
{
return node->hasTagName(HTMLNames::textareaTag);
}
+inline bool isHTMLTextAreaElement(const Element* element)
+{
+ return element->hasTagName(HTMLNames::textareaTag);
+}
+
inline HTMLTextAreaElement* toHTMLTextAreaElement(Node* node)
{
ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextAreaElement(node));
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698