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

Unified Diff: third_party/WebKit/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html

Issue 2684483002: Ensure StyleSheetInsert-bootstrap.html doesn't spam willInsertBody IPCs (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
diff --git a/third_party/WebKit/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html b/third_party/WebKit/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
index 1b0987cf9d4482b741fc7e53894c828b690f20f8..201f7f2cf8f7442679851e73b58680a0d9fe4daa 100644
--- a/third_party/WebKit/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
+++ b/third_party/WebKit/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
@@ -19,10 +19,10 @@ PerfTestRunner.measureRunsPerSecond({
description: "Measures performance of inserting a style elemenet ocntaining bootstrap's CSS into an iframe.",
run:function() {
var testDoc = document.getElementsByTagName("iframe")[0].contentDocument;
- testDoc.documentElement.innerHTML = "";
var style = testDoc.createElement("style");
style.textContent = styleText;
testDoc.documentElement.appendChild(style);
+ testDoc.documentElement.removeChild(testDoc.documentElement.lastElementChild);
}
});
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698