edje: Fix backward compat issue caused by color_class
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 20 Apr 2018 01:59:46 +0000 (10:59 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 20 Apr 2018 11:38:15 +0000 (20:38 +0900)
It is being discussed in the following task.
https://phab.enlightenment.org/T6885

@tizen_fix

Change-Id: I1e0a3158c95f56621966d8e3749bd14507546cec

src/bin/edje/edje_cc_handlers.c

index df01152..cb74888 100644 (file)
@@ -3286,6 +3286,7 @@ ob_color_class(void)
    cc = mem_alloc(SZ(Edje_Color_Class));
    edje_file->color_classes = eina_list_append(edje_file->color_classes, cc);
 
+   /* TIZEN_ONLY(20180420): Fix backward compat issue caused by color_class
    cc->r = 255;
    cc->g = 255;
    cc->b = 255;
@@ -3298,6 +3299,20 @@ ob_color_class(void)
    cc->g3 = 255;
    cc->b3 = 255;
    cc->a3 = 255;
+    */
+   cc->r = 0;
+   cc->g = 0;
+   cc->b = 0;
+   cc->a = 0;
+   cc->r2 = 0;
+   cc->g2 = 0;
+   cc->b2 = 0;
+   cc->a2 = 0;
+   cc->r3 = 0;
+   cc->g3 = 0;
+   cc->b3 = 0;
+   cc->a3 = 0;
+   /* END */
 }
 
 static void
@@ -3400,7 +3415,7 @@ parse_color(unsigned int first_arg, void *base)
         i.e "#F00F" or "#F00".\n
         In string format you can omit alpha channel and it will be set to FF.
 
-        Defaults: 255 255 255 255
+        Defaults: 0 0 0 0
     @endproperty
  */
 static void
@@ -3431,7 +3446,7 @@ st_color_class_color(void)
         i.e "#F00F" or "#F00".\n
         In string format you can omit alpha channel and it will be set to FF.
 
-        Defaults: 255 255 255 255
+        Defaults: 0 0 0 0
     @endproperty
  */
 static void
@@ -3462,7 +3477,7 @@ st_color_class_color2(void)
         i.e "#F00F" or "#F00".\n
         In string format you can omit alpha channel and it will be set to FF.
 
-        Defaults: 255 255 255 255
+        Defaults: 0 0 0 0
     @endproperty
  */
 static void