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

Unified Diff: LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash.html

Issue 23463021: Avoid collapsing anonymous block children already being destroyed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash.html
diff --git a/LayoutTests/fast/css-generated-content/first-letter-next-sibling-crash.html b/LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash.html
old mode 100755
new mode 100644
similarity index 56%
copy from LayoutTests/fast/css-generated-content/first-letter-next-sibling-crash.html
copy to LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash.html
index 165551a7925155a30a8fba94a750fd80cf09d73d..ca5c1764e244f333372417c7bdc677ed2d4339a6
--- a/LayoutTests/fast/css-generated-content/first-letter-next-sibling-crash.html
+++ b/LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash.html
@@ -1,5 +1,4 @@
-<!DOCTYPE html>
-<html>
+<!doctype html>
<style>
.absolutePosition { position: fixed; }
.float:before { float: right; content: ''; }
@@ -7,24 +6,18 @@
.inline::first-letter { content: ''; }
</style>
<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function startTest() {
+function crash() {
document.body.offsetTop;
- var parent = document.getElementById("parent");
- var child = document.getElementById("child");
+ parent = document.getElementById('parent');
child.setAttribute('class', 'inline');
document.body.offsetTop;
parent.removeChild(child);
- document.body.offsetTop;
- parent.setAttribute('class', 'inline');
+ parent.normalize();
}
-window.onload = startTest;
+window.onload = crash;
+if (window.testRunner)
+ testRunner.dumpAsText();
</script>
-WebKit Bug 85759 - Crash in RenderBlock::updateFirstLetterStyle.
<div class="float" id="parent">
<div class="absolutePosition" id="child"></div>
-PASS if test does not crash.
-</div>
-</html>
+Test passes if no crash.
« no previous file with comments | « no previous file | LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698