WebCore:
Reviewed by Dave Hyatt.
- fix <rdar://problem/5650045> REGRESSION: major layout problems in svn r28754 WebKit on Vox.com page
Test: fast/dynamic/subtree-boundary-percent-height.html
* rendering/RenderObject.cpp:
(WebCore::objectIsRelayoutBoundary): Do not allow overflows with
percent heights because sometimes they compute to 'auto'.
LayoutTests:
Reviewed by Dave Hyatt.
- test for <rdar://problem/5650045> REGRESSION: major layout problems in svn r28754 WebKit on Vox.com page
* fast/dynamic/subtree-boundary-percent-height.html: Added.
* platform/mac/fast/dynamic/subtree-boundary-percent-height-expected.checksum: Added.
* platform/mac/fast/dynamic/subtree-boundary-percent-height-expected.png: Added.
* platform/mac/fast/dynamic/subtree-boundary-percent-height-expected.txt: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fast/dynamic/subtree-boundary-percent-height.html b/LayoutTests/fast/dynamic/subtree-boundary-percent-height.html
new file mode 100644
index 0000000..01dc5f0
--- /dev/null
+++ b/LayoutTests/fast/dynamic/subtree-boundary-percent-height.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <script>
+ function test()
+ {
+ document.body.offsetTop;
+ document.getElementById("inner").style.height = "100px";
+ }
+ </script>
+</head>
+<body onload="test()">
+ <div style="height: 200px;">
+ <div style="height: auto;">
+ <div style="width: 100px; height: 1%; overflow: hidden; background-color: white;">
+ <div id="inner" style="height: 0;"></div>
+ </div>
+ </div>
+ <div style="width: 100px; height: 100px; background-color: green;"></div>
+ </div>
+</body>
+</html>