#include "third_party/blink/renderer/core/paint/compositing/compositing_reason_finder.h"
#include "base/test/scoped_feature_list.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/core/animation/animation_clock.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/html/html_frame_owner_element.h"
#include "third_party/blink/renderer/core/layout/layout_block.h"
#include "third_party/blink/renderer/core/page/page_animator.h"
#include "third_party/blink/renderer/core/paint/paint_layer.h"
#include "third_party/blink/renderer/core/scroll/scroll_types.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
#include "third_party/blink/renderer/platform/testing/paint_test_configurations.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
namespace blink {
class CompositingReasonFinderTest : public RenderingTest,
public PaintTestConfigurations { … };
#define EXPECT_REASONS(expect, actual) …
INSTANTIATE_PAINT_TEST_SUITE_P(…);
TEST_P(CompositingReasonFinderTest, PromoteTrivial3D) { … }
TEST_P(CompositingReasonFinderTest, PromoteNonTrivial3D) { … }
TEST_P(CompositingReasonFinderTest, UndoOverscroll) { … }
TEST_P(CompositingReasonFinderTest, FixedPosAnchorPosOverscroll) { … }
TEST_P(CompositingReasonFinderTest, FixedPosAnchorPosUndoOverscroll) { … }
TEST_P(CompositingReasonFinderTest, OnlyAnchoredStickyPositionPromoted) { … }
TEST_P(CompositingReasonFinderTest, OnlyScrollingStickyPositionPromoted) { … }
void CompositingReasonFinderTest::CheckCompositingReasonsForAnimation(
bool supports_transform_animation) { … }
TEST_P(CompositingReasonFinderTest, CompositingReasonsForAnimationBox) { … }
TEST_P(CompositingReasonFinderTest, CompositingReasonsForAnimationInline) { … }
TEST_P(CompositingReasonFinderTest, DontPromoteEmptyIframe) { … }
TEST_P(CompositingReasonFinderTest, PromoteCrossOriginIframe) { … }
TEST_P(CompositingReasonFinderTest,
CompositeWithBackfaceVisibilityAncestorAndPreserve3DAncestor) { … }
TEST_P(CompositingReasonFinderTest,
CompositeWithBackfaceVisibilityAncestorAndPreserve3D) { … }
TEST_P(CompositingReasonFinderTest,
CompositeWithBackfaceVisibilityAncestorAndPreserve3DWithInterveningDiv) { … }
TEST_P(CompositingReasonFinderTest,
CompositeWithBackfaceVisibilityAncestorWithInterveningStackingDiv) { … }
TEST_P(CompositingReasonFinderTest,
CompositeWithBackfaceVisibilityAncestorAndFlattening) { … }
TEST_P(CompositingReasonFinderTest, CompositeWithBackfaceVisibility) { … }
TEST_P(CompositingReasonFinderTest, CompositedSVGText) { … }
TEST_P(CompositingReasonFinderTest, NotSupportedTransformAnimationsOnSVG) { … }
TEST_P(CompositingReasonFinderTest, WillChangeScrollPosition) { … }
}