Update to Chromium revision a106f0ab (#464641)

- Remove CefWindowInfo.transparent_painting_enabled. Set
  CefBrowserSettings.background_color to an opaque or transparent
  value instead.
This commit is contained in:
Marshall Greenblatt
2017-04-20 15:28:17 -04:00
parent 2f6475c0d8
commit 3f71138d64
151 changed files with 2756 additions and 2295 deletions

View File

@@ -1092,19 +1092,22 @@ class OSRTestHandler : public RoutingTestHandler,
CefWindowInfo windowInfo;
CefBrowserSettings settings;
const bool transparent = (test_type_ == OSR_TEST_TRANSPARENCY);
if (test_type_ != OSR_TEST_TRANSPARENCY) {
// Explicitly set an opaque background color to disable transparency.
settings.background_color = CefColorSetARGB(255, 255, 255, 255);
}
#if defined(OS_WIN)
windowInfo.SetAsWindowless(GetDesktopWindow(), transparent);
windowInfo.SetAsWindowless(GetDesktopWindow());
#elif defined(OS_MACOSX)
// An actual vies is needed only for the ContextMenu test. The menu runner
// checks if the view is not nil before showing the context menu.
if (test_type_ == OSR_TEST_CONTEXT_MENU)
windowInfo.SetAsWindowless(osr_unittests::GetFakeView(), transparent);
windowInfo.SetAsWindowless(osr_unittests::GetFakeView());
else
windowInfo.SetAsWindowless(kNullWindowHandle, transparent);
windowInfo.SetAsWindowless(kNullWindowHandle);
#elif defined(OS_LINUX)
windowInfo.SetAsWindowless(kNullWindowHandle, transparent);
windowInfo.SetAsWindowless(kNullWindowHandle);
#else
#error "Unsupported platform"
#endif