Title: [101216] trunk/Source/WebKit2
Revision
101216
Author
zeno.albis...@nokia.com
Date
2011-11-27 16:12:54 -0800 (Sun, 27 Nov 2011)

Log Message

[Qt][WK2] MiniBrowser stops displaying content after surfing a few pages.
https://bugs.webkit.org/show_bug.cgi?id=73172

Properly initialize WebLayerTreeInfo structures.

Reviewed by Andreas Kling.

* Shared/WebLayerTreeInfo.h:
(WebKit::WebLayerUpdateInfo::WebLayerUpdateInfo):
(WebKit::WebLayerAnimation::WebLayerAnimation):
(WebKit::WebLayerInfo::WebLayerInfo):
(WebKit::WebLayerTreeInfo::WebLayerTreeInfo):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (101215 => 101216)


--- trunk/Source/WebKit2/ChangeLog	2011-11-27 23:47:22 UTC (rev 101215)
+++ trunk/Source/WebKit2/ChangeLog	2011-11-28 00:12:54 UTC (rev 101216)
@@ -1,3 +1,18 @@
+2011-11-27  Zeno Albisser  <z...@webkit.org>
+
+        [Qt][WK2] MiniBrowser stops displaying content after surfing a few pages.
+        https://bugs.webkit.org/show_bug.cgi?id=73172
+
+        Properly initialize WebLayerTreeInfo structures.
+
+        Reviewed by Andreas Kling.
+
+        * Shared/WebLayerTreeInfo.h:
+        (WebKit::WebLayerUpdateInfo::WebLayerUpdateInfo):
+        (WebKit::WebLayerAnimation::WebLayerAnimation):
+        (WebKit::WebLayerInfo::WebLayerInfo):
+        (WebKit::WebLayerTreeInfo::WebLayerTreeInfo):
+
 2011-11-27  Mark Rowe  <mr...@apple.com>
 
         <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version

Modified: trunk/Source/WebKit2/Shared/WebLayerTreeInfo.h (101215 => 101216)


--- trunk/Source/WebKit2/Shared/WebLayerTreeInfo.h	2011-11-27 23:47:22 UTC (rev 101215)
+++ trunk/Source/WebKit2/Shared/WebLayerTreeInfo.h	2011-11-28 00:12:54 UTC (rev 101216)
@@ -39,7 +39,8 @@
 struct WebLayerUpdateInfo {
     WebLayerUpdateInfo() { }
     WebLayerUpdateInfo(const IntRect& r)
-        : rect(r) { }
+        : layerID(InvalidWebLayerID)
+        , rect(r) { }
 
     WebLayerID layerID;
     IntRect rect;
@@ -50,14 +51,21 @@
 };
 
 struct WebLayerAnimation {
-    WebLayerAnimation() : keyframeList(AnimatedPropertyInvalid) { }
+    WebLayerAnimation()
+        : operation(InvalidAnimation)
+        , keyframeList(AnimatedPropertyInvalid)
+        , startTime(0) { }
     WebLayerAnimation(const KeyframeValueList& valueList) 
-        : keyframeList(valueList) { }
+        : operation(InvalidAnimation)
+        , keyframeList(valueList)
+        , startTime(0) { }
+
     String name;
     enum Operation {
         AddAnimation,
         RemoveAnimation,
-        PauseAnimation
+        PauseAnimation,
+        InvalidAnimation
     } operation;
     IntSize boxSize;
     RefPtr<Animation> animation;
@@ -69,6 +77,15 @@
 };
 
 struct WebLayerInfo {
+    WebLayerInfo()
+        : id(InvalidWebLayerID)
+        , parent(InvalidWebLayerID)
+        , replica(InvalidWebLayerID)
+        , mask(InvalidWebLayerID)
+        , imageBackingStoreID(0)
+        , opacity(0)
+        , flags(0) { }
+
     String name;
     WebLayerID id;
     WebLayerID parent;
@@ -106,6 +123,10 @@
 };
 
 struct WebLayerTreeInfo {
+    WebLayerTreeInfo()
+        : rootLayerID(InvalidWebLayerID)
+        , contentScale(0) { }
+
     Vector<WebLayerInfo> layers;
     Vector<WebLayerID> deletedLayerIDs;
     WebLayerID rootLayerID;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to