/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Flags to pass to PresShell::SetCapturingContent(). enumclass CaptureFlags {
None = 0, // When assigning capture, ignore whether capture is allowed or not.
IgnoreAllowedState = 1 << 0, // Set if events should be targeted at the capturing content or its children.
RetargetToElement = 1 << 1, // Set if the current capture wants drags to be prevented.
PreventDragStart = 1 << 2, // Set when the mouse is pointer locked, and events are sent to locked // element.
PointerLock = 1 << 3,
};
enumclass ResizeReflowOptions : uint32_t {
NoOption = 0, // the resulting BSize can be less than the given one, producing // shrink-to-fit sizing in the block dimension
BSizeLimit = 1 << 0,
};
enumclass IntrinsicDirty { // Don't mark any intrinsic inline sizes dirty.
None, // Mark intrinsic inline sizes dirty on aFrame and its ancestors.
FrameAndAncestors, // Mark intrinsic inline sizes dirty on aFrame, its ancestors, and its // descendants.
FrameAncestorsAndDescendants,
};
enumclass ReflowRootHandling {
PositionOrSizeChange, // aFrame is changing position or size
NoPositionOrSizeChange, // ... NOT changing ...
InferFromBitToAdd, // is changing iff (aBitToAdd == NS_FRAME_IS_DIRTY)
// Note: With IntrinsicDirty::FrameAncestorsAndDescendants, these can also // apply to out-of-flows in addition to aFrame.
};
// Indicates where to scroll on a given axis. struct WhereToScroll { // The percentage of the scroll axis that we're scrolling to. // Nothing() represents "scroll to nearest".
Maybe<int16_t> mPercentage; // True if the caller requested "auto", meaning snap alignment should be used // if the target has one, with a direction-dependent fallback otherwise. bool mIsAuto = false;
// Default is nearest.
constexpr WhereToScroll() = default;
// This is a private enum class of PresShell, but currently, // MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS isn't available in class definition. // Therefore, we need to put this here. enumclass RenderingStateFlags : uint8_t {
None = 0,
IgnoringViewportScrolling = 1 << 0,
DrawWindowNotFlushing = 1 << 1,
};
// The state of the dynamic toolbar on Mobile. enumclass DynamicToolbarState {
None, // No dynamic toolbar, i.e. the toolbar is static or there is // no available toolbar.
Expanded, // The dynamic toolbar is expanded to the maximum height.
InTransition, // The dynamic toolbar is being shown/hidden.
Collapsed, // The dynamic toolbar is collapsed to zero height.
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.