Title: [107227] trunk/LayoutTests
Revision
107227
Author
[email protected]
Date
2012-02-09 05:39:46 -0800 (Thu, 09 Feb 2012)

Log Message

[Chromium] Layout Test svg/as-object/nested-embedded-svg-size-changes.html times out
https://bugs.webkit.org/show_bug.cgi?id=77183

Reviewed by Zoltan Herczeg.

Another attempt at fixing svg/as-object/nested-embedded-svg-size-changes.html,
by guessing from the JS trace, where it might happened.

* svg/as-object/nested-embedded-svg-size-changes.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (107226 => 107227)


--- trunk/LayoutTests/ChangeLog	2012-02-09 13:37:12 UTC (rev 107226)
+++ trunk/LayoutTests/ChangeLog	2012-02-09 13:39:46 UTC (rev 107227)
@@ -1,3 +1,15 @@
+2012-02-09  Nikolas Zimmermann  <[email protected]>
+
+        [Chromium] Layout Test svg/as-object/nested-embedded-svg-size-changes.html times out
+        https://bugs.webkit.org/show_bug.cgi?id=77183
+
+        Reviewed by Zoltan Herczeg.
+
+        Another attempt at fixing svg/as-object/nested-embedded-svg-size-changes.html,
+        by guessing from the JS trace, where it might happened.
+
+        * svg/as-object/nested-embedded-svg-size-changes.html:
+
 2012-02-09  Zan Dobersek  <[email protected]>
 
         LayoutTests/fast/harness/resources/modal-dialog.html is missing the opening html tag

Modified: trunk/LayoutTests/svg/as-object/nested-embedded-svg-size-changes.html (107226 => 107227)


--- trunk/LayoutTests/svg/as-object/nested-embedded-svg-size-changes.html	2012-02-09 13:37:12 UTC (rev 107226)
+++ trunk/LayoutTests/svg/as-object/nested-embedded-svg-size-changes.html	2012-02-09 13:39:46 UTC (rev 107227)
@@ -31,8 +31,12 @@
     function requestSizeChange() {
         object1 = document.getElementsByTagName("object")[0];
         var htmlDoc = object1.contentDocument;
+        if (!htmlDoc) {
+            setTimeout(requestSizeChange, 50);
+            return;
+        }
+
         var htmlWindow = htmlDoc.defaultView;
-
         // Wait until the embedded SVG (of the embedded HTML that we're loading), is loaded.
         if (htmlWindow.canChangeSize) {
             htmlWindow.changeSize();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to