Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp

Issue 2737883002: Rename LayoutPart::widget to LayoutPart::frameViewBase (Closed)
Patch Set: Rename LayoutPart::widget to LayoutPart::frameViewBase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 // the LayoutObject all the way to the WebLayer. 658 // the LayoutObject all the way to the WebLayer.
659 Element* scrollableFrame = frame()->document()->getElementById("scrollable"); 659 Element* scrollableFrame = frame()->document()->getElementById("scrollable");
660 ASSERT_TRUE(scrollableFrame); 660 ASSERT_TRUE(scrollableFrame);
661 661
662 LayoutObject* layoutObject = scrollableFrame->layoutObject(); 662 LayoutObject* layoutObject = scrollableFrame->layoutObject();
663 ASSERT_TRUE(layoutObject); 663 ASSERT_TRUE(layoutObject);
664 ASSERT_TRUE(layoutObject->isLayoutPart()); 664 ASSERT_TRUE(layoutObject->isLayoutPart());
665 665
666 LayoutPart* layoutPart = toLayoutPart(layoutObject); 666 LayoutPart* layoutPart = toLayoutPart(layoutObject);
667 ASSERT_TRUE(layoutPart); 667 ASSERT_TRUE(layoutPart);
668 ASSERT_TRUE(layoutPart->widget()); 668 ASSERT_TRUE(layoutPart->frameViewBase());
669 ASSERT_TRUE(layoutPart->widget()->isFrameView()); 669 ASSERT_TRUE(layoutPart->frameViewBase()->isFrameView());
670 670
671 FrameView* innerFrameView = toFrameView(layoutPart->widget()); 671 FrameView* innerFrameView = toFrameView(layoutPart->frameViewBase());
672 LayoutViewItem innerLayoutViewItem = innerFrameView->layoutViewItem(); 672 LayoutViewItem innerLayoutViewItem = innerFrameView->layoutViewItem();
673 ASSERT_FALSE(innerLayoutViewItem.isNull()); 673 ASSERT_FALSE(innerLayoutViewItem.isNull());
674 674
675 PaintLayerCompositor* innerCompositor = innerLayoutViewItem.compositor(); 675 PaintLayerCompositor* innerCompositor = innerLayoutViewItem.compositor();
676 ASSERT_TRUE(innerCompositor->inCompositingMode()); 676 ASSERT_TRUE(innerCompositor->inCompositingMode());
677 677
678 GraphicsLayer* scrollLayer = 678 GraphicsLayer* scrollLayer =
679 innerFrameView->layoutViewportScrollableArea()->layerForScrolling(); 679 innerFrameView->layoutViewportScrollableArea()->layerForScrolling();
680 ASSERT_TRUE(scrollLayer); 680 ASSERT_TRUE(scrollLayer);
681 ASSERT_EQ(innerFrameView->layoutViewportScrollableArea(), 681 ASSERT_EQ(innerFrameView->layoutViewportScrollableArea(),
(...skipping 27 matching lines...) Expand all
709 // the LayoutObject all the way to the WebLayer. 709 // the LayoutObject all the way to the WebLayer.
710 Element* scrollableFrame = frame()->document()->getElementById("scrollable"); 710 Element* scrollableFrame = frame()->document()->getElementById("scrollable");
711 ASSERT_TRUE(scrollableFrame); 711 ASSERT_TRUE(scrollableFrame);
712 712
713 LayoutObject* layoutObject = scrollableFrame->layoutObject(); 713 LayoutObject* layoutObject = scrollableFrame->layoutObject();
714 ASSERT_TRUE(layoutObject); 714 ASSERT_TRUE(layoutObject);
715 ASSERT_TRUE(layoutObject->isLayoutPart()); 715 ASSERT_TRUE(layoutObject->isLayoutPart());
716 716
717 LayoutPart* layoutPart = toLayoutPart(layoutObject); 717 LayoutPart* layoutPart = toLayoutPart(layoutObject);
718 ASSERT_TRUE(layoutPart); 718 ASSERT_TRUE(layoutPart);
719 ASSERT_TRUE(layoutPart->widget()); 719 ASSERT_TRUE(layoutPart->frameViewBase());
720 ASSERT_TRUE(layoutPart->widget()->isFrameView()); 720 ASSERT_TRUE(layoutPart->frameViewBase()->isFrameView());
721 721
722 FrameView* innerFrameView = toFrameView(layoutPart->widget()); 722 FrameView* innerFrameView = toFrameView(layoutPart->frameViewBase());
723 LayoutViewItem innerLayoutViewItem = innerFrameView->layoutViewItem(); 723 LayoutViewItem innerLayoutViewItem = innerFrameView->layoutViewItem();
724 ASSERT_FALSE(innerLayoutViewItem.isNull()); 724 ASSERT_FALSE(innerLayoutViewItem.isNull());
725 725
726 PaintLayerCompositor* innerCompositor = innerLayoutViewItem.compositor(); 726 PaintLayerCompositor* innerCompositor = innerLayoutViewItem.compositor();
727 ASSERT_TRUE(innerCompositor->inCompositingMode()); 727 ASSERT_TRUE(innerCompositor->inCompositingMode());
728 728
729 GraphicsLayer* scrollLayer = 729 GraphicsLayer* scrollLayer =
730 innerFrameView->layoutViewportScrollableArea()->layerForScrolling(); 730 innerFrameView->layoutViewportScrollableArea()->layerForScrolling();
731 ASSERT_TRUE(scrollLayer); 731 ASSERT_TRUE(scrollLayer);
732 ASSERT_EQ(innerFrameView->layoutViewportScrollableArea(), 732 ASSERT_EQ(innerFrameView->layoutViewportScrollableArea(),
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 886
887 Element* iframe = frame()->document()->getElementById("iframe"); 887 Element* iframe = frame()->document()->getElementById("iframe");
888 ASSERT_TRUE(iframe); 888 ASSERT_TRUE(iframe);
889 889
890 LayoutObject* layoutObject = iframe->layoutObject(); 890 LayoutObject* layoutObject = iframe->layoutObject();
891 ASSERT_TRUE(layoutObject); 891 ASSERT_TRUE(layoutObject);
892 ASSERT_TRUE(layoutObject->isLayoutPart()); 892 ASSERT_TRUE(layoutObject->isLayoutPart());
893 893
894 LayoutPart* layoutPart = toLayoutPart(layoutObject); 894 LayoutPart* layoutPart = toLayoutPart(layoutObject);
895 ASSERT_TRUE(layoutPart); 895 ASSERT_TRUE(layoutPart);
896 ASSERT_TRUE(layoutPart->widget()); 896 ASSERT_TRUE(layoutPart->frameViewBase());
897 ASSERT_TRUE(layoutPart->widget()->isFrameView()); 897 ASSERT_TRUE(layoutPart->frameViewBase()->isFrameView());
898 898
899 FrameView* innerFrameView = toFrameView(layoutPart->widget()); 899 FrameView* innerFrameView = toFrameView(layoutPart->frameViewBase());
900 LayoutViewItem innerLayoutViewItem = innerFrameView->layoutViewItem(); 900 LayoutViewItem innerLayoutViewItem = innerFrameView->layoutViewItem();
901 ASSERT_FALSE(innerLayoutViewItem.isNull()); 901 ASSERT_FALSE(innerLayoutViewItem.isNull());
902 902
903 PaintLayerCompositor* innerCompositor = innerLayoutViewItem.compositor(); 903 PaintLayerCompositor* innerCompositor = innerLayoutViewItem.compositor();
904 ASSERT_TRUE(innerCompositor->inCompositingMode()); 904 ASSERT_TRUE(innerCompositor->inCompositingMode());
905 905
906 GraphicsLayer* scrollLayer = 906 GraphicsLayer* scrollLayer =
907 innerFrameView->layoutViewportScrollableArea()->layerForScrolling(); 907 innerFrameView->layoutViewportScrollableArea()->layerForScrolling();
908 ASSERT_TRUE(scrollLayer); 908 ASSERT_TRUE(scrollLayer);
909 ASSERT_EQ(innerFrameView->layoutViewportScrollableArea(), 909 ASSERT_EQ(innerFrameView->layoutViewportScrollableArea(),
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 MainThreadScrollingReason::kHasOpacityAndLCDText | 1165 MainThreadScrollingReason::kHasOpacityAndLCDText |
1166 MainThreadScrollingReason::kHasBorderRadius); 1166 MainThreadScrollingReason::kHasBorderRadius);
1167 } 1167 }
1168 1168
1169 TEST_P(StyleRelatedMainThreadScrollingReasonTest, BoxShadowTest) { 1169 TEST_P(StyleRelatedMainThreadScrollingReasonTest, BoxShadowTest) {
1170 testStyle("box-shadow", 1170 testStyle("box-shadow",
1171 MainThreadScrollingReason::kHasBoxShadowFromNonRootLayer); 1171 MainThreadScrollingReason::kHasBoxShadowFromNonRootLayer);
1172 } 1172 }
1173 1173
1174 } // namespace blink 1174 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698