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

Unified Diff: third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp

Issue 2811793005: Rename LocalFrame::Script() to GetScriptController() (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
index 88be435efdc1a36e5872d89e5d932bf0007d31b3..8a831b9ccedca8804e57cf090033e5fdcdf8f5d6 100644
--- a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
@@ -805,7 +805,7 @@ TEST_P(FrameThrottlingTest, DumpThrottledFrame) {
EXPECT_TRUE(frame_element->contentDocument()->View()->CanThrottleRendering());
LocalFrame* local_frame = ToLocalFrame(frame_element->ContentFrame());
- local_frame->Script().ExecuteScriptInMainWorld(
+ local_frame->GetScriptController().ExecuteScriptInMainWorld(
"document.body.innerHTML = 'throttled'");
EXPECT_FALSE(Compositor().NeedsBeginFrame());
@@ -996,7 +996,7 @@ TEST_P(FrameThrottlingTest, SynchronousLayoutInAnimationFrameCallback) {
auto* second_frame_element =
toHTMLIFrameElement(GetDocument().GetElementById("second"));
LocalFrame* local_frame = ToLocalFrame(second_frame_element->ContentFrame());
- local_frame->Script().ExecuteScriptInMainWorld(
+ local_frame->GetScriptController().ExecuteScriptInMainWorld(
"window.requestAnimationFrame(function() {\n"
" var throttledFrame = window.parent.frames.first;\n"
" throttledFrame.document.documentElement.style = 'margin: 50px';\n"
@@ -1030,7 +1030,7 @@ TEST_P(FrameThrottlingTest, AllowOneAnimationFrame) {
LocalFrame* local_frame = ToLocalFrame(frame_element->ContentFrame());
v8::HandleScope scope(v8::Isolate::GetCurrent());
v8::Local<v8::Value> result =
- local_frame->Script().ExecuteScriptInMainWorldAndReturnValue(
+ local_frame->GetScriptController().ExecuteScriptInMainWorldAndReturnValue(
ScriptSourceCode("window.didRaf;"));
EXPECT_TRUE(result->IsTrue());
}
« no previous file with comments | « third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp ('k') | third_party/WebKit/Source/web/tests/ResizeObserverTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698