summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.h b/chromium/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.h
index f6a54d71c91..87226cb136b 100644
--- a/chromium/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.h
+++ b/chromium/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.h
@@ -29,7 +29,7 @@
#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
#include "core/html/forms/StepRange.h"
#include "core/html/shadow/DateTimeFieldElement.h"
-#include "core/platform/DateComponents.h"
+#include "platform/DateComponents.h"
namespace WebCore {
@@ -149,11 +149,7 @@ private:
EditControlOwner* m_editControlOwner;
};
-inline DateTimeEditElement* toDateTimeEditElement(Element* element)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isDateTimeEditElement());
- return static_cast<DateTimeEditElement*>(element);
-}
+DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEditElement(), element.isDateTimeEditElement());
} // namespace WebCore