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

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

Issue 2940863005: Move loading methods from WebFrame to WebLocalFrame. (Closed)
Patch Set: Created 3 years, 6 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ->RootGraphicsLayer()); 80 ->RootGraphicsLayer());
81 } 81 }
82 82
83 ~ScrollingCoordinatorTest() override { 83 ~ScrollingCoordinatorTest() override {
84 Platform::Current() 84 Platform::Current()
85 ->GetURLLoaderMockFactory() 85 ->GetURLLoaderMockFactory()
86 ->UnregisterAllURLsAndClearMemoryCache(); 86 ->UnregisterAllURLsAndClearMemoryCache();
87 } 87 }
88 88
89 void NavigateTo(const std::string& url) { 89 void NavigateTo(const std::string& url) {
90 FrameTestHelpers::LoadFrame(GetWebView()->MainFrame(), url); 90 FrameTestHelpers::LoadFrame(GetWebView()->MainFrameImpl(), url);
91 } 91 }
92 92
93 void LoadHTML(const std::string& html) { 93 void LoadHTML(const std::string& html) {
94 FrameTestHelpers::LoadHTMLString(GetWebView()->MainFrameImpl(), html, 94 FrameTestHelpers::LoadHTMLString(GetWebView()->MainFrameImpl(), html,
95 URLTestHelpers::ToKURL("about:blank")); 95 URLTestHelpers::ToKURL("about:blank"));
96 } 96 }
97 97
98 void ForceFullCompositingUpdate() { 98 void ForceFullCompositingUpdate() {
99 GetWebView()->UpdateAllLifecyclePhases(); 99 GetWebView()->UpdateAllLifecyclePhases();
100 } 100 }
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 ForceFullCompositingUpdate(); 1260 ForceFullCompositingUpdate();
1261 PaintLayerScrollableArea* scrollable_area2 = 1261 PaintLayerScrollableArea* scrollable_area2 =
1262 ToLayoutBoxModelObject(container2->GetLayoutObject()) 1262 ToLayoutBoxModelObject(container2->GetLayoutObject())
1263 ->GetScrollableArea(); 1263 ->GetScrollableArea();
1264 ASSERT_TRUE(scrollable_area2); 1264 ASSERT_TRUE(scrollable_area2);
1265 EXPECT_TRUE(scrollable_area2->GetNonCompositedMainThreadScrollingReasons() & 1265 EXPECT_TRUE(scrollable_area2->GetNonCompositedMainThreadScrollingReasons() &
1266 MainThreadScrollingReason::kHasBorderRadius); 1266 MainThreadScrollingReason::kHasBorderRadius);
1267 } 1267 }
1268 1268
1269 } // namespace blink 1269 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698