Bug 1452309 [wpt PR 10300] - [css-typed-om] Add support for background properties...
[gecko.git] / editor / nsIHTMLAbsPosEditor.idl
blob60d8944a1b088f6cb4f68f2f46c93479c8e25a0c
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
7 #include "domstubs.idl"
9 [scriptable, builtinclass, uuid(91375f52-20e6-4757-9835-eb04fabe5498)]
11 interface nsIHTMLAbsPosEditor : nsISupports
13 /**
14 * this contains the absolutely positioned element currently edited
15 * or null
17 readonly attribute nsIDOMElement positionedElement;
19 /**
20 * true if Absolute Positioning handling is enabled in the editor
22 attribute boolean absolutePositioningEnabled;
25 /* Utility methods */
27 /**
28 * true if Snap To Grid is enabled in the editor.
30 attribute boolean snapToGridEnabled;
32 /**
33 * sets the grid size in pixels.
34 * @param aSizeInPixels [IN] the size of the grid in pixels
36 attribute unsigned long gridSize;
38 /* Other */
40 /**
41 * refreshes the grabber if it shown, possibly updating its position or
42 * even hiding it.
44 void refreshGrabber();