Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: LayoutTests/fast/block/float/float-not-removed-crash2.html

Issue 14759010: Fix the float logic to not return an anonymous block ancestor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/block/float/float-not-removed-crash2.html
diff --git a/LayoutTests/fast/block/float/float-not-removed-crash2.html b/LayoutTests/fast/block/float/float-not-removed-crash2.html
new file mode 100755
index 0000000000000000000000000000000000000000..a875985e15c96745563f05469d2a5cd283ee83ea
--- /dev/null
+++ b/LayoutTests/fast/block/float/float-not-removed-crash2.html
@@ -0,0 +1,40 @@
+<body style="display: -webkit-flex; ">
+<foobar>
+<figure> ]V 8[</figure><row><source id=test style="float: right; -webkit-padding-before: 238px; ">></foobar>>>>><listing style="-webkit-logical-height: 188; ">
Julien - ping for review 2013/05/07 00:51:22 Can't we reduce this test case even more? Some di
+<style>
+.class1 {
+ -webkit-logical-width: 51667px;
+}
+</style><script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function reference(domNode) {
+ this.domNode = domNode;
+}
+
+function walk(a, currentPrefix, index, domNode) {
+ if (domNode == null)
+ return;
+ newPrefix = currentPrefix + "_" + index;
+ walk(a, currentPrefix, index + 1, domNode.nextSibling);
+ walk(a, newPrefix, 0, domNode.firstChild);
+ a[newPrefix] = new reference(domNode);
+}
+
+function clear() {
+ var a = new Array();
+ walk(a, "", 0, document.documentElement);
+ for(key in a) {
+ a[key].domNode.parentNode.removeChild(a[key].domNode);
+ if (document.documentElement)
+ document.documentElement.offsetTop;
+ }
+}
+
+document.documentElement.offsetTop;
+test.setAttribute("class", "class1");
+document.documentElement.offsetTop;
+clear();
+alert("PASS. WebKit didn't crash.");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/block/float/float-not-removed-crash2-expected.txt » ('j') | Source/core/rendering/RenderBox.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698