From 914fb9ce761fc22992814d3d8d5907a6904f3a77 Mon Sep 17 00:00:00 2001 From: Ojan Vafai Date: Fri, 20 Feb 2015 14:02:42 -0800 Subject: [PATCH] Remove LayoutState. The only bit that was still used was the containingBlockLogicalWidthChanged check in RenderBlock::widthAvailableToChildrenHasChanged. https://chromium.googlesource.com/chromium/blink/+/a4f1e657ff786f80bbc32f0a2af787bc33327e56 is the patch that added that code. I added a test to confirm we still pass the test case that code was added for. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/945003002 --- .../borderbox-percent-padding-expected.txt | 6 ++++ .../layout/borderbox-percent-padding.sky | 33 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 engine/src/flutter/tests/layout/borderbox-percent-padding-expected.txt create mode 100644 engine/src/flutter/tests/layout/borderbox-percent-padding.sky diff --git a/engine/src/flutter/tests/layout/borderbox-percent-padding-expected.txt b/engine/src/flutter/tests/layout/borderbox-percent-padding-expected.txt new file mode 100644 index 0000000000..b190118b9e --- /dev/null +++ b/engine/src/flutter/tests/layout/borderbox-percent-padding-expected.txt @@ -0,0 +1,6 @@ +CONSOLE: unittest-suite-wait-for-done +CONSOLE: PASS: paragraph width should shrink +CONSOLE: +CONSOLE: All 1 tests passed. +CONSOLE: unittest-suite-success +DONE diff --git a/engine/src/flutter/tests/layout/borderbox-percent-padding.sky b/engine/src/flutter/tests/layout/borderbox-percent-padding.sky new file mode 100644 index 0000000000..adb9a4883a --- /dev/null +++ b/engine/src/flutter/tests/layout/borderbox-percent-padding.sky @@ -0,0 +1,33 @@ + + + + Even though the width of 'border-box' stays the same after it reaches 300px, the width available to its children decreases as its padding continues to expand. Because the padding is based off the width before it's constrained by min/max. This tests that we continue to layout the contents of border-box even when its own width remains the same. + + + +