#include "third_party/blink/renderer/platform/graphics/paint/geometry_mapper.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/graphics/box_reflection.h"
#include "third_party/blink/renderer/platform/graphics/filters/paint_filter_builder.h"
#include "third_party/blink/renderer/platform/graphics/paint/clip_paint_property_node.h"
#include "third_party/blink/renderer/platform/graphics/paint/effect_paint_property_node.h"
#include "third_party/blink/renderer/platform/graphics/paint/transform_paint_property_node.h"
#include "third_party/blink/renderer/platform/testing/paint_property_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/paint_test_configurations.h"
#include "ui/gfx/geometry/test/geometry_util.h"
namespace blink {
class GeometryMapperTest : public testing::Test,
public PaintTestConfigurations { … };
INSTANTIATE_PAINT_TEST_SUITE_P(…);
#define EXPECT_CLIP_RECT_NEAR(expected, actual, tolerance) …
#define EXPECT_CLIP_RECT_EQ(expected, actual) …
void GeometryMapperTest::CheckLocalToAncestorVisualRect() { … }
void GeometryMapperTest::CheckLocalToAncestorClipRect() { … }
void GeometryMapperTest::CheckSourceToDestinationRect() { … }
void GeometryMapperTest::CheckSourceToDestinationProjection() { … }
void GeometryMapperTest::CheckCachedClip() { … }
void GeometryMapperTest::CheckMappings() { … }
void GeometryMapperTest::CheckOverlap(const gfx::RectF& rect1,
const PropertyTreeState& state1,
const gfx::RectF& rect2,
const PropertyTreeState& state2) { … }
TEST_P(GeometryMapperTest, Root) { … }
TEST_P(GeometryMapperTest, IdentityTransform) { … }
TEST_P(GeometryMapperTest, TranslationTransform) { … }
TEST_P(GeometryMapperTest, TranslationTransformWithAlias) { … }
TEST_P(GeometryMapperTest, RotationAndScaleTransform) { … }
TEST_P(GeometryMapperTest, RotationAndScaleTransformWithAlias) { … }
TEST_P(GeometryMapperTest, RotationAndScaleTransformWithTransformOrigin) { … }
TEST_P(GeometryMapperTest, NestedTransforms) { … }
TEST_P(GeometryMapperTest, NestedTransformsFlattening) { … }
TEST_P(GeometryMapperTest, NestedTransformsScaleAndTranslation) { … }
TEST_P(GeometryMapperTest, NestedTransformsIntermediateDestination) { … }
TEST_P(GeometryMapperTest, SimpleClip) { … }
TEST_P(GeometryMapperTest, UsesLayoutClipRect) { … }
TEST_P(GeometryMapperTest, SimpleClipWithAlias) { … }
TEST_P(GeometryMapperTest, SimpleClipOverlayScrollbars) { … }
TEST_P(GeometryMapperTest, SimpleClipInclusiveIntersect) { … }
TEST_P(GeometryMapperTest, SimpleClipPlusOpacity) { … }
TEST_P(GeometryMapperTest, SimpleClipPlusOpacityInclusiveIntersect) { … }
TEST_P(GeometryMapperTest, RoundedClip) { … }
TEST_P(GeometryMapperTest, ClipPath) { … }
TEST_P(GeometryMapperTest, TwoClips) { … }
TEST_P(GeometryMapperTest, TwoClipsTransformAbove) { … }
TEST_P(GeometryMapperTest, ClipBeforeTransform) { … }
TEST_P(GeometryMapperTest, ExpandVisualRectWithClipBeforeAnimatingTransform) { … }
TEST_P(GeometryMapperTest, ExpandVisualRectWithClipBeforeSticky) { … }
TEST_P(GeometryMapperTest, ClipAfterTransform) { … }
TEST_P(GeometryMapperTest, ExpandVisualRectWithClipAfterAnimatingTransform) { … }
TEST_P(GeometryMapperTest, ExpandVisualRectWithClipAfterSticky) { … }
TEST_P(GeometryMapperTest, TwoClipsWithTransformBetween) { … }
TEST_P(GeometryMapperTest,
ExpandVisualRectWithTwoClipsWithAnimatingTransformBetween) { … }
TEST_P(GeometryMapperTest, ExpandVisualRectWithTwoClipsWithStickyBetween) { … }
TEST_P(GeometryMapperTest, SiblingTransforms) { … }
TEST_P(GeometryMapperTest, SiblingTransformsWithClip) { … }
TEST_P(GeometryMapperTest, FilterWithClipsAndTransforms) { … }
TEST_P(GeometryMapperTest, FilterWithClipsAndTransformsWithAlias) { … }
TEST_P(GeometryMapperTest,
ExpandVisualRectWithTwoClipsWithAnimatingFilterBetween) { … }
TEST_P(GeometryMapperTest, Reflection) { … }
TEST_P(GeometryMapperTest, IgnoreFilters) { … }
TEST_P(GeometryMapperTest, Precision) { … }
TEST_P(GeometryMapperTest, MightOverlap) { … }
TEST_P(GeometryMapperTest, MightOverlapCommonClipAncestor) { … }
TEST_P(GeometryMapperTest, MightOverlapFixed) { … }
TEST_P(GeometryMapperTest, MightOverlapFixedWithScale) { … }
TEST_P(GeometryMapperTest, MightOverlapWithScrollingClip) { … }
TEST_P(GeometryMapperTest, MightOverlapWithScrollingClipAndScale) { … }
TEST_P(GeometryMapperTest, MightOverlapScroll) { … }
}