Upgrade to bitflags 0.6.0 and selectors 0.5.6

Types generated by `bitflags!` are now private by default.  This PR marks them
`pub` where necessary.
This commit is contained in:
Matt Brubeck 2016-04-29 10:45:48 -07:00
parent d3f55fbf60
commit 1e23d90631
29 changed files with 77 additions and 90 deletions

View file

@ -18,7 +18,7 @@ plugins = {path = "../plugins"}
util = {path = "../util"}
style_traits = {path = "../style_traits"}
app_units = {version = "0.2.3", features = ["plugins"]}
bitflags = "0.3"
bitflags = "0.6.0"
cssparser = {version = "0.5.5", features = ["heap_size", "serde-serialization"]}
encoding = "0.2"
euclid = {version = "0.6.4", features = ["plugins"]}

View file

@ -5,7 +5,7 @@
bitflags! {
#[doc = "Event-based element states."]
#[derive(HeapSizeOf)]
flags ElementState: u8 {
pub flags ElementState: u8 {
#[doc = "The mouse is down on this element. \
https://html.spec.whatwg.org/multipage/#selector-active \
FIXME(#7333): set/unset this when appropriate"]

View file

@ -23,7 +23,7 @@ pub enum InlineBaseDirection {
bitflags!(
#[derive(HeapSizeOf, RustcEncodable)]
flags WritingMode: u8 {
pub flags WritingMode: u8 {
const FLAG_RTL = 1 << 0,
const FLAG_VERTICAL = 1 << 1,
const FLAG_VERTICAL_LR = 1 << 2,

View file

@ -20,7 +20,7 @@ use string_cache::{Atom, Namespace};
/// short-circuit work we know is unnecessary.
bitflags! {
flags RestyleHint: u8 {
pub flags RestyleHint: u8 {
#[doc = "Rerun selector matching on the element."]
const RESTYLE_SELF = 0x01,
#[doc = "Rerun selector matching on all of the element's descendants."]