Index: LayoutTests/fast/ruby/add-text-to-block-ruby-with-after-pseudo-crash.html |
diff --git a/LayoutTests/fast/css-generated-content/bug-106384.html b/LayoutTests/fast/ruby/add-text-to-block-ruby-with-after-pseudo-crash.html |
similarity index 60% |
copy from LayoutTests/fast/css-generated-content/bug-106384.html |
copy to LayoutTests/fast/ruby/add-text-to-block-ruby-with-after-pseudo-crash.html |
index 693c38d2c8bac993bf90b0cf1d2089cf2381d3cc..8048d6d6d1215eff396238e2a7ee540260b3ab51 100644 |
--- a/LayoutTests/fast/css-generated-content/bug-106384.html |
+++ b/LayoutTests/fast/ruby/add-text-to-block-ruby-with-after-pseudo-crash.html |
@@ -1,16 +1,14 @@ |
<!DOCTYPE html> |
- |
<style> |
-ruby:after { |
- display: block; |
- content: ""; |
-} |
+ ruby::after { |
+ display: block; |
+ content: ""; |
+ } |
+ ruby { |
+ display: block; |
+ } |
</style> |
-<p> |
- Bug 106384: Heap-use-after-free in WebCore::LayoutObject::willBeRemovedFromTree. |
-</p> |
- |
<script> |
if (window.testRunner) |
testRunner.dumpAsText(); |
@@ -18,8 +16,7 @@ if (window.testRunner) |
onload = function() { |
var ruby = document.createElement('ruby'); |
document.body.appendChild(ruby); |
- // Cause a layout. |
- document.body.offsetLeft; |
+ document.body.offsetTop; |
ruby.appendChild(document.createTextNode('Passed if this test did not crash or assert.')); |
-}; |
+} |
</script> |