Enum style::properties::longhands::display::SpecifiedValue
[−]
[src]
pub enum SpecifiedValue { Inline, Block, InlineBlock, Table, InlineTable, TableRowGroup, TableHeaderGroup, TableFooterGroup, TableRow, TableColumnGroup, TableColumn, TableCell, TableCaption, ListItem, None, Flex, InlineFlex, }
Variants
Inline
Block
InlineBlock
Table
InlineTable
TableRowGroup
TableHeaderGroup
TableRow
TableColumnGroup
TableColumn
TableCell
TableCaption
ListItem
None
Flex
InlineFlex
Methods
impl Display
[src]
pub fn is_item_container(&self) -> bool
[src]
Returns whether this "display" value is the display of a flex or grid container.
This is used to implement various style fixups.
pub fn is_line_participant(&self) -> bool
[src]
Returns whether an element with this display type is a line participant, which means it may lay its children on the same line as itself.
pub fn should_ignore_parsed_value(
_old_display: Self,
_new_display: Self
) -> bool
[src]
_old_display: Self,
_new_display: Self
) -> bool
Whether new_display
should be ignored, given a previous
old_display
value.
This is used to ignore display: -moz-box
declarations after an
equivalent display: -webkit-box
declaration, since the former
has a vastly different meaning. See bug 1107378 and bug 1407701.
FIXME(emilio): This is a pretty decent hack, we should try to remove it.
pub fn equivalent_block_display(&self, _is_root_element: bool) -> Self
[src]
Convert this display into an equivalent block display.
Also used for style adjustments.
Trait Implementations
impl Clone for SpecifiedValue
[src]
fn clone(&self) -> SpecifiedValue
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SpecifiedValue
[src]
impl Debug for SpecifiedValue
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for SpecifiedValue
[src]
impl Hash for SpecifiedValue
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl MallocSizeOf for SpecifiedValue
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl PartialEq for SpecifiedValue
[src]
fn eq(&self, __arg_0: &SpecifiedValue) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl ToComputedValue for SpecifiedValue
[src]
type ComputedValue = SpecifiedValue
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more