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

Unified Diff: Source/core/html/shadow/SpinButtonElement.h

Issue 24253004: Cleanup: Start using toFoo methods as part of newly adopted coding guideline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/HTMLProgressElement.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/SpinButtonElement.h
diff --git a/Source/core/html/shadow/SpinButtonElement.h b/Source/core/html/shadow/SpinButtonElement.h
index 715f4343adf909067a285f62c4f6bab198727da5..a7490366545adb8a78d17a549d05b33001f078b4 100644
--- a/Source/core/html/shadow/SpinButtonElement.h
+++ b/Source/core/html/shadow/SpinButtonElement.h
@@ -97,6 +97,20 @@ inline SpinButtonElement* toSpinButtonElement(Element* element)
return static_cast<SpinButtonElement*>(element);
}
+inline SpinButtonElement* toSpinButtonElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || toElement(node)->isSpinButtonElement());
+ return static_cast<SpinButtonElement*>(node);
+}
+
+inline const SpinButtonElement* toSpinButtonElement(const Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || toElement(node)->isSpinButtonElement());
+ return static_cast<const SpinButtonElement*>(node);
+}
+
+void toSpinButtonElement(const SpinButtonElement*);
+
} // namespace
#endif
« no previous file with comments | « Source/core/html/HTMLProgressElement.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698