| 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());
|
| }
|
|
|