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

Unified Diff: LayoutTests/fast/table/border-recalc.html

Issue 157383004: Use LocalStyleChange when changing TD presentation attributes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review issues and added test. Created 6 years, 10 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/table/border-recalc.html
diff --git a/LayoutTests/fast/table/border-recalc.html b/LayoutTests/fast/table/border-recalc.html
new file mode 100644
index 0000000000000000000000000000000000000000..dfddaa456900eaa70aee13be2a0cff3b8fab5bef
--- /dev/null
+++ b/LayoutTests/fast/table/border-recalc.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<table>
+<tbody>
+<tr><td>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+</td></tr>
+</tbody>
+</table>
+<script>
+description("Check that we don't recalc table cell contents when presentation attributes change.");
+
+document.body.offsetTop; // Force layout.
+document.getElementsByTagName("table")[0].setAttribute("border", "2");
+if (window.internals)
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/table/border-recalc-expected.txt » ('j') | Source/core/html/HTMLTableElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698