/* 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/. */ "use strict"; const { KeyCodes } = require("resource://devtools/client/shared/keycodes.js"); const { flashElementOn, flashElementOff, } = require("resource://devtools/client/inspector/markup/utils.js"); loader.lazyRequireGetter( this, "wrapMoveFocus", "resource://devtools/client/shared/focus.js", true ); const DRAG_DROP_MIN_INITIAL_DISTANCE = 10; const TYPES = { TEXT_CONTAINER: "textcontainer", ELEMENT_CONTAINER: "elementcontainer", READ_ONLY_CONTAINER: "readonlycontainer", }; /** * The main structure for storing a document node in the markup * tree. Manages creation of the editor for the node and * a