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

Unified Diff: components/html_viewer/html_document.cc

Issue 1149083010: Mandoline: Remove native_viewport.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Windows Build I hope Created 5 years, 6 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
« no previous file with comments | « components/html_viewer/DEPS ('k') | components/view_manager/connection_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_document.cc
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
index 80f213023f8a59116f017d8847b0233465f6b2fd..441de8456231d956bc9c54ab2a437521752b343e 100644
--- a/components/html_viewer/html_document.cc
+++ b/components/html_viewer/html_document.cc
@@ -26,6 +26,7 @@
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/application/public/cpp/connect.h"
#include "mojo/application/public/interfaces/shell.mojom.h"
+#include "mojo/converters/geometry/geometry_type_converters.h"
#include "skia/ext/refptr.h"
#include "third_party/WebKit/public/platform/Platform.h"
#include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h"
@@ -247,9 +248,9 @@ void HTMLDocument::InitSetupAndLoadIfNecessary() {
return;
if (!web_view_) {
- setup_->InitIfNecessary(gfx::Size(root_->viewport_metrics().size->width,
- root_->viewport_metrics().size->height),
- root_->viewport_metrics().device_pixel_ratio);
+ setup_->InitIfNecessary(
+ root_->viewport_metrics().size_in_pixels.To<gfx::Size>(),
+ root_->viewport_metrics().device_pixel_ratio);
Load(response_.Pass());
}
« no previous file with comments | « components/html_viewer/DEPS ('k') | components/view_manager/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698