| Index: Source/web/tests/WebViewTest.cpp
|
| diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
|
| index c23261df002ea70ffe947c29c9e1f2a04e12d169..6fdc756c6e15722f85ae5053fd9ed6cc1b749837 100644
|
| --- a/Source/web/tests/WebViewTest.cpp
|
| +++ b/Source/web/tests/WebViewTest.cpp
|
| @@ -304,20 +304,14 @@
|
| EXPECT_EQ(kTransparent, webView->backgroundColor());
|
|
|
| LocalFrame* frame = webView->mainFrameImpl()->frame();
|
| - // The prepareForDestruction() and prepareForDetach() calls are a hack to
|
| - // prevent createView() from violating invariants about frame state during
|
| - // navigation/detach.
|
| - frame->document()->prepareForDestruction();
|
|
|
| // Creating a new frame view with the background color having 0 alpha.
|
| frame->createView(IntSize(1024, 768), Color::transparent, true);
|
| EXPECT_EQ(kTransparent, frame->view()->baseBackgroundColor());
|
| - frame->view()->prepareForDetach();
|
|
|
| Color kTransparentRed(100, 0, 0, 0);
|
| frame->createView(IntSize(1024, 768), kTransparentRed, true);
|
| EXPECT_EQ(kTransparentRed, frame->view()->baseBackgroundColor());
|
| - frame->view()->prepareForDetach();
|
| }
|
|
|
| TEST_F(WebViewTest, SetBaseBackgroundColorBeforeMainFrame)
|
|
|