Bug 1552714 - Merge L10nUtils.webidl into DOMOverlays.webidl. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D33196

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Zibi Braniecki 2019-06-06 16:32:37 +00:00
Родитель fdd3cb9cbd
Коммит 37d6923b94
7 изменённых файлов: 10 добавлений и 31 удалений

Просмотреть файл

@ -3,6 +3,16 @@
* 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/. */
dictionary AttributeNameValue {
required DOMString name;
required DOMString value;
};
dictionary L10nValue {
DOMString? value = null;
sequence<AttributeNameValue>? attributes = null;
};
dictionary DOMOverlaysError {
short code;
DOMString translatedElementName;

Просмотреть файл

@ -10,7 +10,6 @@
#include "mozilla/dom/DOMLocalizationBinding.h"
#include "mozilla/dom/DocumentL10nBinding.h"
#include "mozilla/dom/DOMOverlaysBinding.h"
#include "mozilla/dom/L10nUtilsBinding.h"
#include "mozilla/dom/l10n/Mutations.h"
class nsIGlobalObject;

Просмотреть файл

@ -2,7 +2,6 @@
#define mozilla_dom_l10n_DOMOverlays_h__
#include "mozilla/dom/Element.h"
#include "mozilla/dom/L10nUtilsBinding.h"
#include "mozilla/dom/DOMOverlaysBinding.h"
namespace mozilla {

Просмотреть файл

@ -6,7 +6,6 @@
#include "DocumentL10n.h"
#include "mozilla/dom/DocumentL10nBinding.h"
#include "mozilla/dom/L10nUtilsBinding.h"
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/ScriptSettings.h"
#include "nsQueryObject.h"

Просмотреть файл

@ -8,7 +8,6 @@
#include "mozilla/dom/Document.h"
#include "mozilla/dom/DOMOverlaysBinding.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/L10nUtilsBinding.h"
#include "mozilla/NullPrincipal.h"
#include "nsNetUtil.h"

Просмотреть файл

@ -1,26 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/.
*/
/**
* The following dictionaries are for Mozilla use only. They allow startup
* localization runtime to work around the performance cost of Stylo having
* to resolve XBL bindings in order to localize DOM in JS.
*
* Instead, we use `Node.localize` method which handles scanning for localizable
* elements and applies the result translations without having to create
* JS reflections for them.
*
* For details on the implementation of the API, see `Node.webidl`.
*/
dictionary AttributeNameValue {
required DOMString name;
required DOMString value;
};
dictionary L10nValue {
DOMString? value = null;
sequence<AttributeNameValue>? attributes = null;
};

Просмотреть файл

@ -635,7 +635,6 @@ WEBIDL_FILES = [
'KeyframeAnimationOptions.webidl',
'KeyframeEffect.webidl',
'KeyIdsInitData.webidl',
'L10nUtils.webidl',
'LegacyQueryInterface.webidl',
'LinkStyle.webidl',
'LoadURIOptions.webidl',