mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Call content::WebContentsObserver first
This commit is contained in:
@@ -20,10 +20,10 @@ namespace atom {
|
||||
|
||||
WebContentsZoomController::WebContentsZoomController(
|
||||
content::WebContents* web_contents)
|
||||
: old_process_id_(-1),
|
||||
: content::WebContentsObserver(web_contents),
|
||||
old_process_id_(-1),
|
||||
old_view_id_(-1),
|
||||
embedder_zoom_controller_(nullptr),
|
||||
content::WebContentsObserver(web_contents) {
|
||||
embedder_zoom_controller_(nullptr) {
|
||||
default_zoom_factor_ = content::kEpsilon;
|
||||
host_zoom_map_ = content::HostZoomMap::GetForWebContents(web_contents);
|
||||
zoom_subscription_ = host_zoom_map_->AddZoomLevelChangedCallback(base::Bind(
|
||||
|
||||
Reference in New Issue
Block a user