[GTK][AC] Clutter required version up to 1.12
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2013 21:37:09 +0000 (21:37 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2013 21:37:09 +0000 (21:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109037

Patch by ChangSeok Oh <shivamidow@gmail.com> on 2013-02-07
Reviewed by Martin Robinson.

.:

The clutter requried version is changed to 1.12.

* configure.ac:

Source/WebCore:

Replace deprecated clutter apis with new ones.

No new tests, since this patch is minor refactoring.

* platform/graphics/clutter/GraphicsLayerActor.cpp:
(graphicsLayerActorSetAnchorPoint):
* platform/graphics/clutter/GraphicsLayerClutter.cpp:
(WebCore::idleDestroy):
(WebCore::GraphicsLayerClutter::updateSublayerList):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142172 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.cpp
Source/WebCore/platform/graphics/clutter/GraphicsLayerClutter.cpp
configure.ac

index ca19141..059a39c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2013-02-07  ChangSeok Oh  <shivamidow@gmail.com>
+
+        [GTK][AC] Clutter required version up to 1.12
+        https://bugs.webkit.org/show_bug.cgi?id=109037
+
+        Reviewed by Martin Robinson.
+
+        The clutter requried version is changed to 1.12.
+
+        * configure.ac:
+
 2013-02-07  Zan Dobersek  <zdobersek@igalia.com>
 
         [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
index 94f2948..bb386ac 100644 (file)
@@ -1,3 +1,20 @@
+2013-02-07  ChangSeok Oh  <shivamidow@gmail.com>
+
+        [GTK][AC] Clutter required version up to 1.12
+        https://bugs.webkit.org/show_bug.cgi?id=109037
+
+        Reviewed by Martin Robinson.
+
+        Replace deprecated clutter apis with new ones.
+
+        No new tests, since this patch is minor refactoring.
+
+        * platform/graphics/clutter/GraphicsLayerActor.cpp:
+        (graphicsLayerActorSetAnchorPoint):
+        * platform/graphics/clutter/GraphicsLayerClutter.cpp:
+        (WebCore::idleDestroy):
+        (WebCore::GraphicsLayerClutter::updateSublayerList):
+
 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
 
         Move pauseAnimation/pauseTransition from TestRunner to Internals
index d3d8ee6..952eca3 100644 (file)
@@ -427,10 +427,8 @@ void graphicsLayerActorSetAnchorPoint(GraphicsLayerActor* layer, float x, float
     priv->anchorZ = z;
 
     ClutterActor* actor = CLUTTER_ACTOR(layer);
-
-    float width, height;
-    clutter_actor_get_size(actor, &width, &height);
-    clutter_actor_set_anchor_point(actor, width * priv->anchorX, height * priv->anchorY);
+    clutter_actor_set_pivot_point(actor, x, y);
+    clutter_actor_set_pivot_point_z(actor, z);
 }
 
 void graphicsLayerActorGetAnchorPoint(GraphicsLayerActor* layer, float* x, float* y, float* z)
index 357dfe4..3c9a0c2 100644 (file)
@@ -124,7 +124,7 @@ static gboolean idleDestroy(gpointer data)
         graphicsLayerActorRemoveAll(GRAPHICS_LAYER_ACTOR(actor.get()));
 
     if (parent)
-        clutter_container_remove_actor(CLUTTER_CONTAINER(parent), actor.get());
+        clutter_actor_remove_child(parent, actor.get());
 
     // FIXME: we should assert that the actor's ref count is 1 here, but some
     // of them are getting here with 2!
@@ -531,7 +531,7 @@ void GraphicsLayerClutter::updateSublayerList()
             ClutterActor* layerActor = CLUTTER_ACTOR(newSublayers[i].get());
             ClutterActor* parentActor = clutter_actor_get_parent(layerActor);
             if (parentActor)
-                clutter_container_remove_actor(CLUTTER_CONTAINER(parentActor), layerActor);
+                clutter_actor_remove_child(parentActor, layerActor);
         }
     }
 
index 624ba57..14fb4b8 100644 (file)
@@ -343,7 +343,7 @@ PANGO_REQUIRED_VERSION=1.21.0
 LIBXSLT_REQUIRED_VERSION=1.1.7
 SQLITE_REQUIRED_VERSION=3.0
 ENCHANT_REQUIRED_VERSION=0.22
-CLUTTER_REQUIRED_VERSION=1.8.2
+CLUTTER_REQUIRED_VERSION=1.12
 CLUTTER_GTK_REQUIRED_VERSION=1.0.2
 ATSPI2_REQUIRED_VERSION=2.2.1