author Kris Maglione <>
Wed, 13 Feb 2019 20:50:10 -0800
changeset 516999 68cffca6927a90ace041bd3f938954fab0d0c586
parent 505383 6f3709b3878117466168c40affa7bca0b60cf75b
child 525084 ba4174dac8c6af15e8102d3935cefced4280dffd
permissions -rw-r--r--
Bug 1524687: Follow-up: Fix sporadic Windows PGO build bustages. r=bustage CLOSED TREE

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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 */

/* a list of all Servo Box<T> types used across bindings, for preprocessing */

// The first argument is the name of the Servo type used inside the Box.
// This doesn't need to be accurate; it's only used to generate nice looking
// FFI function names.
// The second argument is the name of an opaque Gecko type that will
// correspond to the Servo type used inside the Box.  The convention for the
// the name of the opaque Gecko type is "RawServo{Type}", where {Type} is
// the name of the Servo type or something close to it.
// See the comment at the top of ServoBindingTypes.h for how to use these.
// If you add an entry to this file, you should also add impls of HasFFI
// (with FFIType equal to ::gecko_bindings::structs::RawServo{Type}),
// HasSimpleFFI, and HasBoxFFI to the Servo type. You will also need to
// add a Servo_{FriendlyServoName}_Drop function to servo/ports/gecko/
// TODO(heycam): Do some of this automatically.

// clang-format off
// Needs to be a on single line
SERVO_BOXED_TYPE(StyleSet, RawServoStyleSet)
SERVO_BOXED_TYPE(AuthorStyles, RawServoAuthorStyles)
SERVO_BOXED_TYPE(SelectorList, RawServoSelectorList)
SERVO_BOXED_TYPE(SourceSizeList, RawServoSourceSizeList)
SERVO_BOXED_TYPE(UseCounters, StyleUseCounters)
// clang-format on