Clarify expectations for CefRenderHandler::GetViewRect (issue #1910)

This commit is contained in:
Marshall Greenblatt
2018-09-25 15:40:02 +02:00
parent 64cd460c73
commit 09afa3a843
17 changed files with 100 additions and 99 deletions

View File

@@ -324,13 +324,12 @@ class OSRTestHandler : public RoutingTestHandler,
}
// CefRenderHandler methods
bool GetViewRect(CefRefPtr<CefBrowser> browser, CefRect& rect) override {
void GetViewRect(CefRefPtr<CefBrowser> browser, CefRect& rect) override {
if (test_type_ == OSR_TEST_RESIZE && started()) {
rect = CefRect(0, 0, kOsrWidth * 2, kOsrHeight * 2);
return true;
return;
}
rect = CefRect(0, 0, kOsrWidth, kOsrHeight);
return true;
}
bool GetScreenPoint(CefRefPtr<CefBrowser> browser,