chromium/third_party/blink/renderer/core/layout/layout_result_caching_test.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/layout/block_break_token.h"
#include "third_party/blink/renderer/core/layout/geometry/fragment_geometry.h"
#include "third_party/blink/renderer/core/layout/layout_result.h"
#include "third_party/blink/renderer/core/layout/layout_utils.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"

namespace blink {
namespace {

// These tests exercise the caching logic of |LayoutResult|s. They are
// rendering tests which contain two children: "test" and "src".
//
// Both have layout initially performed on them, however the "src" will have a
// different |ConstraintSpace| which is then used to test either a cache hit
// or miss.
class LayoutResultCachingTest : public RenderingTest {};

TEST_F(LayoutResultCachingTest, HitDifferentExclusionSpace) {}

TEST_F(LayoutResultCachingTest, HitDifferentBFCOffset) {}

TEST_F(LayoutResultCachingTest, HitDifferentBFCOffsetSameMarginStrut) {}

TEST_F(LayoutResultCachingTest, MissDescendantAboveBlockStart1) {}

TEST_F(LayoutResultCachingTest, MissDescendantAboveBlockStart2) {}

TEST_F(LayoutResultCachingTest, HitOOFDescendantAboveBlockStart) {}

TEST_F(LayoutResultCachingTest, HitLineBoxDescendantAboveBlockStart) {}

TEST_F(LayoutResultCachingTest, MissFloatInitiallyIntruding1) {}

TEST_F(LayoutResultCachingTest, MissFloatInitiallyIntruding2) {}

TEST_F(LayoutResultCachingTest, MissFloatWillIntrude1) {}

TEST_F(LayoutResultCachingTest, MissFloatWillIntrude2) {}

TEST_F(LayoutResultCachingTest, HitPushedByFloats1) {}

TEST_F(LayoutResultCachingTest, HitPushedByFloats2) {}

TEST_F(LayoutResultCachingTest, MissPushedByFloats1) {}

TEST_F(LayoutResultCachingTest, MissPushedByFloats2) {}

TEST_F(LayoutResultCachingTest, HitDifferentRareData) {}

TEST_F(LayoutResultCachingTest, HitPercentageMinWidth) {}

TEST_F(LayoutResultCachingTest, HitFixedMinWidth) {}

TEST_F(LayoutResultCachingTest, HitShrinkToFit) {}

TEST_F(LayoutResultCachingTest, MissShrinkToFit) {}

TEST_F(LayoutResultCachingTest, HitShrinkToFitSameIntrinsicSizes) {}

TEST_F(LayoutResultCachingTest, HitShrinkToFitDifferentParent) {}

TEST_F(LayoutResultCachingTest, MissQuirksModePercentageBasedChild) {}

TEST_F(LayoutResultCachingTest, HitQuirksModePercentageBasedParentAndChild) {}

TEST_F(LayoutResultCachingTest, HitStandardsModePercentageBasedChild) {}

TEST_F(LayoutResultCachingTest, ChangeTableCellBlockSizeConstrainedness) {}

TEST_F(LayoutResultCachingTest, OptimisticFloatPlacementNoRelayout) {}

TEST_F(LayoutResultCachingTest, SelfCollapsingShifting) {}

TEST_F(LayoutResultCachingTest, ClearancePastAdjoiningFloatsMovement) {}

TEST_F(LayoutResultCachingTest, MarginStrutMovementSelfCollapsing) {}

TEST_F(LayoutResultCachingTest, MarginStrutMovementInFlow) {}

TEST_F(LayoutResultCachingTest, MarginStrutMovementPercentage) {}

TEST_F(LayoutResultCachingTest, HitIsFixedBlockSizeIndefinite) {}

TEST_F(LayoutResultCachingTest, MissIsFixedBlockSizeIndefinite) {}

TEST_F(LayoutResultCachingTest, HitColumnFlexBoxMeasureAndLayout) {}

TEST_F(LayoutResultCachingTest, HitRowFlexBoxMeasureAndLayout) {}

TEST_F(LayoutResultCachingTest, HitFlexLegacyImg) {}

TEST_F(LayoutResultCachingTest, HitFlexLegacyGrid) {}

TEST_F(LayoutResultCachingTest, HitFlexDefiniteChange) {}

TEST_F(LayoutResultCachingTest, HitOrthogonalRoot) {}

TEST_F(LayoutResultCachingTest, SimpleTable) {}

TEST_F(LayoutResultCachingTest, MissTableCellMiddleAlignment) {}

TEST_F(LayoutResultCachingTest, MissTableCellBottomAlignment) {}

TEST_F(LayoutResultCachingTest, HitTableCellBaselineAlignment) {}

TEST_F(LayoutResultCachingTest, MissTableCellBaselineAlignment) {}

TEST_F(LayoutResultCachingTest, MissTablePercent) {}

TEST_F(LayoutResultCachingTest, HitTableRowAdd) {}

TEST_F(LayoutResultCachingTest, MissTableRowAdd) {}

TEST_F(LayoutResultCachingTest, HitTableRowRemove) {}

TEST_F(LayoutResultCachingTest, MissTableRowRemove) {}

TEST_F(LayoutResultCachingTest, HitTableSectionAdd) {}

TEST_F(LayoutResultCachingTest, HitTableSectionRemove) {}

TEST_F(LayoutResultCachingTest, FragmentainerSizeChange) {}

TEST_F(LayoutResultCachingTest, BlockOffsetChangeInFragmentainer) {}

TEST_F(LayoutResultCachingTest, BfcRootBlockOffsetChangeInFragmentainer) {}

TEST_F(LayoutResultCachingTest, HitBlockOffsetUnchangedInFragmentainer) {}

TEST_F(LayoutResultCachingTest, HitNewFormattingContextInFragmentainer) {}

TEST_F(LayoutResultCachingTest, MissMonolithicChangeInFragmentainer) {}

TEST_F(LayoutResultCachingTest, MissGridIncorrectIntrinsicSize) {}

}  // namespace
}  // namespace blink