Put date into field that was used to activate DatePicker instead of currectly focused...
[framework/web/webkit-efl.git] / Source / WebCore / dom / Document.cpp
index 706b514..394be23 100755 (executable)
@@ -513,6 +513,9 @@ Document::Document(Frame* frame, const KURL& url, bool isXHTML, bool isHTML)
 #if ENABLE(TIZEN_GSTREAMER_AUDIO)
     , m_activeMediaObjectCount(0)
 #endif
+#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
+    , m_currentTargetNode(0)
+#endif
 {
     m_document = this;
 
@@ -720,6 +723,9 @@ void Document::removedLastRef()
         m_activeNode = 0;
         m_titleElement = 0;
         m_documentElement = 0;
+#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
+        m_currentTargetNode = 0;
+#endif
         m_contextFeatures = ContextFeatures::defaultSwitch();
 #if ENABLE(FULLSCREEN_API)
         m_fullScreenElement = 0;
@@ -2102,6 +2108,13 @@ inline void Document::clearStyleResolver()
     m_styleResolver.clear();
 }
 
+#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
+void Document::setCurrentTargetNode(PassRefPtr<Node> prpNode)
+{
+    m_currentTargetNode = prpNode;
+}
+#endif
+
 void Document::attach()
 {
     ASSERT(!attached());
@@ -2180,6 +2193,9 @@ void Document::detach()
     m_hoverNode = 0;
     m_focusedNode = 0;
     m_activeNode = 0;
+#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
+    m_currentTargetNode = 0;
+#endif
 
     ContainerNode::detach();