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

Unified Diff: third_party/WebKit/PerformanceTests/Layout/nested-blocks-with-percent-height-and-max-height.html

Issue 1405953005: Avoid multiple recursions through the tree when calculating percent height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@322039-2
Patch Set: Updated Created 5 years, 2 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 | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Layout/nested-blocks-with-percent-height-and-max-height.html
diff --git a/third_party/WebKit/PerformanceTests/Layout/nested-blocks-with-percent-height-and-max-height.html b/third_party/WebKit/PerformanceTests/Layout/nested-blocks-with-percent-height-and-max-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..8899a851b086e01759bc8ca7a035ea722189fddf
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Layout/nested-blocks-with-percent-height-and-max-height.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
leviw_travelin_and_unemployed 2015/10/29 21:44:10 What would you say to landing this test first to g
+<style>
+html, body {
+ height: 100%;
+}
+.container {
leviw_travelin_and_unemployed 2015/10/29 21:44:58 Also, it seems like this could just be "div" :)
+ height: 50%;
+ max-height: 50%;
+}
+</style>
+<div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ <div class="container">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<script src="../resources/runner.js"></script>
+<script>
+function test() {
+ PerfTestRunner.forceLayoutOrFullFrame();
+}
+
+PerfTestRunner.measureRunsPerSecond({
+description: "Measures performance of nested divs with percent values for height and max-height.",
+run: test
+});
+</script>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698