author Botond Ballo <botond@mozilla.com>
Thu, 25 Apr 2019 14:33:17 +0000
changeset 530341 4f70b98aa8705b6906b6bd2a3de66d374addb177
parent 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1546139 - Restore the call to AdjustFixedOrStickyLayer() for layers fixed to the RCD-RSF. r=kats This call served two purposes: (1) scroll the fixed layer by the eVisual transform, and (2) adjust it by the fixed margins. The first purpose is now served by applying the eVisual transform to the async zoom container, but we still need the call for the second purpose. Differential Revision: https://phabricator.services.mozilla.com/D28735

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * vim: sw=2 ts=8 et :
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "PuppetBidiKeyboard.h"
#include "nsIWidget.h"

using namespace mozilla::widget;

NS_IMPL_ISUPPORTS(PuppetBidiKeyboard, nsIBidiKeyboard)

    : nsIBidiKeyboard(), mIsLangRTL(false), mHaveBidiKeyboards(false) {}

PuppetBidiKeyboard::~PuppetBidiKeyboard() {}

PuppetBidiKeyboard::Reset() { return NS_OK; }

PuppetBidiKeyboard::IsLangRTL(bool* aIsRTL) {
  *aIsRTL = mIsLangRTL;
  return NS_OK;

void PuppetBidiKeyboard::SetBidiKeyboardInfo(bool aIsLangRTL,
                                             bool aHaveBidiKeyboards) {
  mIsLangRTL = aIsLangRTL;
  mHaveBidiKeyboards = aHaveBidiKeyboards;

PuppetBidiKeyboard::GetHaveBidiKeyboards(bool* aResult) {
  *aResult = mHaveBidiKeyboards;
  return NS_OK;

// static
nsIWidget::CreateBidiKeyboardContentProcess() {
  return do_AddRef(new PuppetBidiKeyboard());