| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/layout/LayoutTestHelper.h" | 5 #include "core/layout/LayoutTestHelper.h" |
| 6 #include "core/layout/LayoutTreeAsText.h" | 6 #include "core/layout/LayoutTreeAsText.h" |
| 7 #include "core/layout/api/LayoutViewItem.h" | 7 #include "core/layout/api/LayoutViewItem.h" |
| 8 #include "core/paint/ObjectPaintProperties.h" | 8 #include "core/paint/ObjectPaintProperties.h" |
| 9 #include "core/paint/PaintPropertyTreePrinter.h" | 9 #include "core/paint/PaintPropertyTreePrinter.h" |
| 10 #include "platform/graphics/paint/GeometryMapper.h" | 10 #include "platform/graphics/paint/GeometryMapper.h" |
| (...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2619 | 2619 |
| 2620 EXPECT_TRUE(frameScroll()->hasMainThreadScrollingReasons( | 2620 EXPECT_TRUE(frameScroll()->hasMainThreadScrollingReasons( |
| 2621 MainThreadScrollingReason::kThreadedScrollingDisabled)); | 2621 MainThreadScrollingReason::kThreadedScrollingDisabled)); |
| 2622 EXPECT_TRUE(overflowA->layoutObject() | 2622 EXPECT_TRUE(overflowA->layoutObject() |
| 2623 ->paintProperties() | 2623 ->paintProperties() |
| 2624 ->scroll() | 2624 ->scroll() |
| 2625 ->hasMainThreadScrollingReasons( | 2625 ->hasMainThreadScrollingReasons( |
| 2626 MainThreadScrollingReason::kThreadedScrollingDisabled)); | 2626 MainThreadScrollingReason::kThreadedScrollingDisabled)); |
| 2627 } | 2627 } |
| 2628 | 2628 |
| 2629 TEST_P(PaintPropertyTreeBuilderTest, | 2629 // Disabled due to missing main thread scrolling property invalidation support. |
| 2630 BackgroundAttachmentFixedMainThreadScrollReasonsWithNestedScrollers) { | 2630 // See: https://crbug.com/664672 |
| 2631 TEST_P( |
| 2632 PaintPropertyTreeBuilderTest, |
| 2633 DISABLED_BackgroundAttachmentFixedMainThreadScrollReasonsWithNestedScrollers
) { |
| 2631 setBodyInnerHTML( | 2634 setBodyInnerHTML( |
| 2632 "<style>" | 2635 "<style>" |
| 2633 " #overflowA {" | 2636 " #overflowA {" |
| 2634 " position: absolute;" | 2637 " position: absolute;" |
| 2635 " overflow: scroll;" | 2638 " overflow: scroll;" |
| 2636 " width: 20px;" | 2639 " width: 20px;" |
| 2637 " height: 20px;" | 2640 " height: 20px;" |
| 2638 " }" | 2641 " }" |
| 2639 " #overflowB {" | 2642 " #overflowB {" |
| 2640 " position: absolute;" | 2643 " position: absolute;" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2705 ->hasMainThreadScrollingReasons( | 2708 ->hasMainThreadScrollingReasons( |
| 2706 MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects)); | 2709 MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects)); |
| 2707 EXPECT_FALSE( | 2710 EXPECT_FALSE( |
| 2708 overflowB->layoutObject() | 2711 overflowB->layoutObject() |
| 2709 ->paintProperties() | 2712 ->paintProperties() |
| 2710 ->scroll() | 2713 ->scroll() |
| 2711 ->hasMainThreadScrollingReasons( | 2714 ->hasMainThreadScrollingReasons( |
| 2712 MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects)); | 2715 MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects)); |
| 2713 } | 2716 } |
| 2714 | 2717 |
| 2715 TEST_P(PaintPropertyTreeBuilderTest, | 2718 // Disabled due to missing main thread scrolling property invalidation support. |
| 2716 BackgroundAttachmentFixedMainThreadScrollReasonsWithFixedScroller) { | 2719 // See: https://crbug.com/664672 |
| 2720 TEST_P( |
| 2721 PaintPropertyTreeBuilderTest, |
| 2722 DISABLED_BackgroundAttachmentFixedMainThreadScrollReasonsWithFixedScroller)
{ |
| 2717 setBodyInnerHTML( | 2723 setBodyInnerHTML( |
| 2718 "<style>" | 2724 "<style>" |
| 2719 " #overflowA {" | 2725 " #overflowA {" |
| 2720 " position: absolute;" | 2726 " position: absolute;" |
| 2721 " overflow: scroll;" | 2727 " overflow: scroll;" |
| 2722 " width: 20px;" | 2728 " width: 20px;" |
| 2723 " height: 20px;" | 2729 " height: 20px;" |
| 2724 " }" | 2730 " }" |
| 2725 " #overflowB {" | 2731 " #overflowB {" |
| 2726 " position: fixed;" | 2732 " position: fixed;" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2910 EXPECT_EQ(framePreTranslation(), | 2916 EXPECT_EQ(framePreTranslation(), |
| 2911 childProperties->paintOffsetTranslation()->parent()); | 2917 childProperties->paintOffsetTranslation()->parent()); |
| 2912 EXPECT_EQ(childProperties->paintOffsetTranslation(), | 2918 EXPECT_EQ(childProperties->paintOffsetTranslation(), |
| 2913 childPaintState.transform()); | 2919 childPaintState.transform()); |
| 2914 // This will change once we added clip expansion node. | 2920 // This will change once we added clip expansion node. |
| 2915 EXPECT_EQ(filterProperties->effect()->outputClip(), childPaintState.clip()); | 2921 EXPECT_EQ(filterProperties->effect()->outputClip(), childPaintState.clip()); |
| 2916 EXPECT_EQ(filterProperties->effect(), childPaintState.effect()); | 2922 EXPECT_EQ(filterProperties->effect(), childPaintState.effect()); |
| 2917 } | 2923 } |
| 2918 | 2924 |
| 2919 } // namespace blink | 2925 } // namespace blink |
| OLD | NEW |