michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: interface CaretPosition { michael@0: michael@0: /** michael@0: * The offsetNode could potentially be null due to anonymous content. michael@0: */ michael@0: readonly attribute Node? offsetNode; michael@0: readonly attribute unsigned long offset; michael@0: michael@0: }; michael@0: michael@0: /** michael@0: * Gecko specific methods and properties for CaretPosition. michael@0: */ michael@0: partial interface CaretPosition { michael@0: DOMRect? getClientRect(); michael@0: };