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

Unified Diff: PerformanceTests/Layout/resources/body_relayout.js

Issue 203463008: Revert "Get rid of unnecessary layouts on body elements with quirky children" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « PerformanceTests/Layout/resources/body_relayout.css ('k') | Source/core/rendering/RenderBlockFlow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/Layout/resources/body_relayout.js
diff --git a/PerformanceTests/Layout/resources/body_relayout.js b/PerformanceTests/Layout/resources/body_relayout.js
deleted file mode 100644
index 1c575a39f68e82e5e1e446d3f2589e06c3fa83b0..0000000000000000000000000000000000000000
--- a/PerformanceTests/Layout/resources/body_relayout.js
+++ /dev/null
@@ -1,41 +0,0 @@
-(function() {
- function createElement(tag, parent, className, id) {
- var el = document.createElement(tag);
- el.className = className;
- if (id)
- el.id = id;
- parent.appendChild(el);
- return el;
- }
-
- function createSet(width, height, nested) {
- var container = createElement("div", document.body, "container");
- for (var y = 0; y < height; ++y) {
- createElement("div", container, "float", "float" + x + "_" + y);
- for (var x = 0; x < width; ++x)
- createElement("div", container, "normal", "normal" + x + "_" + y);
-
- var nestedContainer = container;
- for ( ; nested > 0; --nested)
- nestedContainer = createElement("div", nestedContainer, "normal", "normal" + x + "_" + nested);
- }
- return container;
- }
-
- function createTestFunction(width, height, nested, runs) {
- var container = createSet(width, height, nested);
- nested = nested || 0;
- runs = runs || 10;
- return function() {
- for (var i = 0; i < runs; ++i) {
- // Force a layout.
- var body = document.getElementById("body")
- body.style['height'] = 800 + i + "px";
- document.body.offsetTop;
- }
- PerfTestRunner.resetRandomSeed();
- }
- }
-
- window.createBodyRelayoutTestFunction = createTestFunction;
-})();
« no previous file with comments | « PerformanceTests/Layout/resources/body_relayout.css ('k') | Source/core/rendering/RenderBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698