From a70543c2a33ab7cfad72c5d59111bfa7d5620804 Mon Sep 17 00:00:00 2001 From: Andrew Hobden Date: Sat, 15 Nov 2014 09:37:44 -0800 Subject: [PATCH 1/2] Fix Table Caption infinite recursion. --- components/layout/table_caption.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 8a426da962f..210bc8019e7 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -82,7 +82,7 @@ impl Flow for TableCaptionFlow { } fn iterate_through_fragment_bounds(&self, iterator: &mut FragmentBoundsIterator) { - self.iterate_through_fragment_bounds(iterator); + self.block_flow.iterate_through_fragment_bounds(iterator); } } From d4f4018e881dd26f503434a65b50994e505b7342 Mon Sep 17 00:00:00 2001 From: Andrew Hobden Date: Sat, 15 Nov 2014 09:52:17 -0800 Subject: [PATCH 2/2] Add test. --- tests/content/test_caption.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/content/test_caption.html b/tests/content/test_caption.html index 3280701b166..64d487df922 100644 --- a/tests/content/test_caption.html +++ b/tests/content/test_caption.html @@ -17,5 +17,8 @@ t.caption = newCaption; is(newCaption.parentNode, t); is(t.caption, newCaption); + + // Test for https://github.com/servo/servo/issues/3997 + t.getBoundingClientRect();