Splash screen declaration element name was changed.
authorTaejeong Lee <taejeong.lee@samsung.com>
Fri, 7 Jun 2013 02:05:22 +0000 (11:05 +0900)
committerTaejeong Lee <taejeong.lee@samsung.com>
Fri, 7 Jun 2013 07:28:02 +0000 (16:28 +0900)
 - 'tizne' namespace is needed.
 <splash src="...">  ->  <tizen:splash src="...">

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Splash screen declaration element name was changed.

Change-Id: Id768612da81a51c7d70bdb842af907e94c613399

src/configuration_parser/widget_parser.cpp

index 5a56c0f..ddfd2b4 100755 (executable)
@@ -1373,24 +1373,33 @@ class SplashParser : public ElementParser
 
     virtual void Accept(const XmlAttribute& attribute)
     {
-        if (attribute.name == L"src") {
-            if (attribute.value.size() > 0) {
-                m_src = attribute.value;
+        if (m_properNamespace)
+        {
+            if (attribute.name == L"src") {
+                if (attribute.value.size() > 0) {
+                    m_src = attribute.value;
+                }
             }
         }
     }
 
-    virtual void Accept(const Element& /*element*/)
-    {}
+    virtual void Accept(const Element& element)
+    {
+        if (element.ns ==
+            ConfigurationNamespace::TizenWebAppNamespaceName)
+        {
+            m_properNamespace = true;
+        }
+    }
 
     virtual void Accept(const Text& /*text*/)
     {}
 
     virtual void Verify()
     {
-        if (m_src.IsNull()) {
-            LogWarning(
-                "src attribute of splash element is mandatory - ignoring");
+        if (m_src.IsNull())
+        {
+            LogWarning("src attribute of splash element is mandatory - ignoring");
             return;
         }
 
@@ -1399,12 +1408,14 @@ class SplashParser : public ElementParser
 
     SplashParser(ConfigParserData& data) :
         ElementParser(),
-        m_data(data)
+        m_data(data),
+        m_properNamespace(false)
     {}
 
   private:
     DPL::OptionalString m_src;
     ConfigParserData& m_data;
+    bool m_properNamespace;
 };
 
 class BackgroundParser : public ElementParser