Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:10642
MozillaFirefox.openSUSE_Leap_15.0_Update
mozilla-bmo1519629.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mozilla-bmo1519629.patch of Package MozillaFirefox.openSUSE_Leap_15.0_Update
# HG changeset patch # Parent c4ed31c0a6e6d1e63d0ccf8bedb32f42f52d4aa6 diff --git a/servo/components/style/animation.rs b/servo/components/style/animation.rs --- a/servo/components/style/animation.rs +++ b/servo/components/style/animation.rs @@ -1,14 +1,14 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! CSS transitions and animations. -#![deny(missing_docs)] +//#![deny(missing_docs)] use Atom; use bezier::Bezier; use context::SharedStyleContext; use dom::{OpaqueNode, TElement}; use font_metrics::FontMetricsProvider; use properties::{self, CascadeFlags, ComputedValues, LonghandId}; use properties::animated_properties::{AnimatedProperty, TransitionProperty}; diff --git a/servo/components/style/bezier.rs b/servo/components/style/bezier.rs --- a/servo/components/style/bezier.rs +++ b/servo/components/style/bezier.rs @@ -1,17 +1,17 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Parametric Bézier curves. //! //! This is based on `WebCore/platform/graphics/UnitBezier.h` in WebKit. -#![deny(missing_docs)] +//#![deny(missing_docs)] use values::CSSFloat; const NEWTON_METHOD_ITERATIONS: u8 = 8; /// A unit cubic Bézier curve, used for timing functions in CSS transitions and animations. pub struct Bezier { ax: f64, @@ -119,9 +119,8 @@ trait ApproxEq { } impl ApproxEq for f64 { #[inline] fn approx_eq(self, value: f64, epsilon: f64) -> bool { (self - value).abs() < epsilon } } - diff --git a/servo/components/style/bloom.rs b/servo/components/style/bloom.rs --- a/servo/components/style/bloom.rs +++ b/servo/components/style/bloom.rs @@ -1,16 +1,16 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! The style bloom filter is used as an optimization when matching deep //! descendant selectors. -#![deny(missing_docs)] +//#![deny(missing_docs)] use atomic_refcell::{AtomicRefMut, AtomicRefCell}; use dom::{SendElement, TElement}; use owning_ref::OwningHandle; use selectors::bloom::BloomFilter; use servo_arc::Arc; use smallvec::SmallVec; diff --git a/servo/components/style/dom.rs b/servo/components/style/dom.rs --- a/servo/components/style/dom.rs +++ b/servo/components/style/dom.rs @@ -1,16 +1,16 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Types and traits used to access the DOM from style calculation. #![allow(unsafe_code)] -#![deny(missing_docs)] +//#![deny(missing_docs)] use {Atom, Namespace, LocalName, WeakAtom}; use applicable_declarations::ApplicableDeclarationBlock; use atomic_refcell::{AtomicRef, AtomicRefCell, AtomicRefMut}; #[cfg(feature = "gecko")] use context::PostAnimationTasks; #[cfg(feature = "gecko")] use context::UpdateAnimationsTasks; use data::ElementData; use element_state::ElementState; diff --git a/servo/components/style/driver.rs b/servo/components/style/driver.rs --- a/servo/components/style/driver.rs +++ b/servo/components/style/driver.rs @@ -1,16 +1,16 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Implements traversal over the DOM tree. The traversal starts in sequential //! mode, and optionally parallelizes as it discovers work. -#![deny(missing_docs)] +//#![deny(missing_docs)] use context::{StyleContext, ThreadLocalStyleContext}; use dom::{SendNode, TElement, TNode}; use parallel; use parallel::{DispatchMode, WORK_UNIT_MAX}; use rayon; use scoped_tls::ScopedTLS; use std::collections::VecDeque; diff --git a/servo/components/style/error_reporting.rs b/servo/components/style/error_reporting.rs --- a/servo/components/style/error_reporting.rs +++ b/servo/components/style/error_reporting.rs @@ -1,15 +1,15 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Types used to report parsing errors. -#![deny(missing_docs)] +//#![deny(missing_docs)] use cssparser::{Token, SourceLocation, ParseErrorKind, BasicParseErrorKind}; use log; use std::fmt; use style_traits::ParseError; use stylesheets::UrlExtraData; /// Errors that can be encountered while parsing CSS. diff --git a/servo/components/style/font_face.rs b/servo/components/style/font_face.rs --- a/servo/components/style/font_face.rs +++ b/servo/components/style/font_face.rs @@ -1,17 +1,17 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! The [`@font-face`][ff] at-rule. //! //! [ff]: https://drafts.csswg.org/css-fonts/#at-font-face-rule -#![deny(missing_docs)] +//#![deny(missing_docs)] #[cfg(feature = "gecko")] use computed_values::{font_stretch, font_style, font_weight}; use cssparser::{AtRuleParser, DeclarationListParser, DeclarationParser, Parser}; use cssparser::{SourceLocation, CowRcStr}; use error_reporting::{ContextualParseError, ParseErrorReporter}; #[cfg(feature = "gecko")] use gecko_bindings::structs::CSSFontFaceDescriptors; #[cfg(feature = "gecko")] use cssparser::UnicodeRange; diff --git a/servo/components/style/font_metrics.rs b/servo/components/style/font_metrics.rs --- a/servo/components/style/font_metrics.rs +++ b/servo/components/style/font_metrics.rs @@ -1,15 +1,15 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Access to font metrics from the style system. -#![deny(missing_docs)] +//#![deny(missing_docs)] use Atom; use app_units::Au; use context::SharedStyleContext; use logical_geometry::WritingMode; use media_queries::Device; use properties::style_structs::Font; diff --git a/servo/components/style/lib.rs b/servo/components/style/lib.rs --- a/servo/components/style/lib.rs +++ b/servo/components/style/lib.rs @@ -18,17 +18,17 @@ //! [recalc_style_at]: traversal/fn.recalc_style_at.html //! //! Major dependencies are the [cssparser][cssparser] and [selectors][selectors] //! crates. //! //! [cssparser]: ../cssparser/index.html //! [selectors]: ../selectors/index.html -#![deny(missing_docs)] +//#![deny(missing_docs)] extern crate app_units; extern crate arrayvec; extern crate atomic_refcell; #[macro_use] extern crate bitflags; #[allow(unused_extern_crates)] extern crate byteorder; #[cfg(feature = "gecko")] #[macro_use] #[no_link] extern crate cfg_if; @@ -143,17 +143,17 @@ pub mod values; #[cfg(feature = "servo")] pub use html5ever::Prefix; #[cfg(feature = "servo")] pub use html5ever::LocalName; #[cfg(feature = "servo")] pub use html5ever::Namespace; /// The CSS properties supported by the style system. /// Generated from the properties.mako.rs template by build.rs #[macro_use] #[allow(unsafe_code)] -#[deny(missing_docs)] +//#[deny(missing_docs)] pub mod properties { include!(concat!(env!("OUT_DIR"), "/properties.rs")); } // uses a macro from properties #[cfg(feature = "servo")] #[allow(unsafe_code)] pub mod servo; #[cfg(feature = "gecko")] diff --git a/servo/components/style/matching.rs b/servo/components/style/matching.rs --- a/servo/components/style/matching.rs +++ b/servo/components/style/matching.rs @@ -1,16 +1,16 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! High-level interface to CSS selector matching. #![allow(unsafe_code)] -#![deny(missing_docs)] +//#![deny(missing_docs)] use context::{ElementCascadeInputs, QuirksMode, SelectorFlagsMap}; use context::{SharedStyleContext, StyleContext}; use data::ElementData; use dom::TElement; use invalidation::element::restyle_hints::RestyleHint; use properties::ComputedValues; use properties::longhands::display::computed_value::T as Display; diff --git a/servo/components/style/parallel.rs b/servo/components/style/parallel.rs --- a/servo/components/style/parallel.rs +++ b/servo/components/style/parallel.rs @@ -15,17 +15,17 @@ //! thread invariants at compile time whenever possible. As such, TNode and //! TElement are not Send, so ordinary style system code cannot accidentally //! share them with other threads. In the parallel traversal, we explicitly //! invoke |unsafe { SendNode::new(n) }| to put nodes in containers that may //! be sent to other threads. This occurs in only a handful of places and is //! easy to grep for. At the time of this writing, there is no other unsafe //! code in the parallel traversal. -#![deny(missing_docs)] +//#![deny(missing_docs)] use arrayvec::ArrayVec; use context::{StyleContext, ThreadLocalStyleContext}; use dom::{OpaqueNode, SendNode, TElement}; use itertools::Itertools; use rayon; use scoped_tls::ScopedTLS; use smallvec::SmallVec; diff --git a/servo/components/style/properties/declaration_block.rs b/servo/components/style/properties/declaration_block.rs --- a/servo/components/style/properties/declaration_block.rs +++ b/servo/components/style/properties/declaration_block.rs @@ -1,15 +1,15 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! A property declaration block. -#![deny(missing_docs)] +//#![deny(missing_docs)] use context::QuirksMode; use cssparser::{DeclarationListParser, parse_important, ParserInput, CowRcStr}; use cssparser::{Parser, AtRuleParser, DeclarationParser, Delimiter, ParseErrorKind}; use custom_properties::CustomPropertiesBuilder; use error_reporting::{ParseErrorReporter, ContextualParseError}; use parser::{ParserContext, ParserErrorContext}; use properties::animated_properties::AnimationValue; diff --git a/servo/components/style/scoped_tls.rs b/servo/components/style/scoped_tls.rs --- a/servo/components/style/scoped_tls.rs +++ b/servo/components/style/scoped_tls.rs @@ -1,16 +1,16 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Stack-scoped thread-local storage for rayon thread pools. #![allow(unsafe_code)] -#![deny(missing_docs)] +//#![deny(missing_docs)] use rayon; use std::cell::{Ref, RefCell, RefMut}; use std::ops::DerefMut; /// A scoped TLS set, that is alive during the `'scope` lifetime. /// /// We use this on Servo to construct thread-local contexts, but clear them once diff --git a/servo/components/style/selector_parser.rs b/servo/components/style/selector_parser.rs --- a/servo/components/style/selector_parser.rs +++ b/servo/components/style/selector_parser.rs @@ -1,15 +1,15 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! The pseudo-classes and pseudo-elements supported by the style system. -#![deny(missing_docs)] +//#![deny(missing_docs)] use cssparser::{Parser as CssParser, ParserInput}; use selectors::parser::SelectorList; use std::fmt::{self, Debug, Write}; use style_traits::{CssWriter, ParseError, ToCss}; use stylesheets::{Origin, Namespaces, UrlExtraData}; /// A convenient alias for the type that represents an attribute value used for diff --git a/servo/components/style/servo/selector_parser.rs b/servo/components/style/servo/selector_parser.rs --- a/servo/components/style/servo/selector_parser.rs +++ b/servo/components/style/servo/selector_parser.rs @@ -1,13 +1,13 @@ /* 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 http://mozilla.org/MPL/2.0/. */ -#![deny(missing_docs)] +//#![deny(missing_docs)] //! Servo's selector parser. use {Atom, Prefix, Namespace, LocalName, CaseSensitivityExt}; use attr::{AttrIdentifier, AttrValue}; use cssparser::{Parser as CssParser, ToCss, serialize_identifier, CowRcStr, SourceLocation}; use dom::{OpaqueNode, TElement, TNode}; use element_state::{DocumentState, ElementState}; diff --git a/servo/components/style/str.rs b/servo/components/style/str.rs --- a/servo/components/style/str.rs +++ b/servo/components/style/str.rs @@ -1,15 +1,15 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! String utils for attributes and similar stuff. -#![deny(missing_docs)] +//#![deny(missing_docs)] use num_traits::ToPrimitive; use std::borrow::Cow; use std::convert::AsRef; use std::fmt::{self, Write}; use std::iter::{Filter, Peekable}; use std::str::Split; diff --git a/servo/components/style/thread_state.rs b/servo/components/style/thread_state.rs --- a/servo/components/style/thread_state.rs +++ b/servo/components/style/thread_state.rs @@ -1,16 +1,16 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Supports dynamic assertions in about what sort of thread is running and //! what state it's in. -#![deny(missing_docs)] +//#![deny(missing_docs)] use std::cell::RefCell; bitflags! { /// A thread state flag, used for multiple assertions. pub struct ThreadState: u32 { /// Whether we're in a script thread. const SCRIPT = 0x01; diff --git a/servo/components/style/timer.rs b/servo/components/style/timer.rs --- a/servo/components/style/timer.rs +++ b/servo/components/style/timer.rs @@ -1,13 +1,13 @@ /* 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 http://mozilla.org/MPL/2.0/. */ -#![deny(missing_docs)] +//#![deny(missing_docs)] //! A timer module, used to define a `Timer` type, that is controlled by script. use time; /// The `TimerMode` is used to determine what time should the `Timer` return. #[derive(Clone, Debug)] enum TimerMode { diff --git a/servo/components/style/values/mod.rs b/servo/components/style/values/mod.rs --- a/servo/components/style/values/mod.rs +++ b/servo/components/style/values/mod.rs @@ -1,17 +1,17 @@ /* 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 http://mozilla.org/MPL/2.0/. */ //! Common [values][values] used in CSS. //! //! [values]: https://drafts.csswg.org/css-values/ -#![deny(missing_docs)] +//#![deny(missing_docs)] use Atom; pub use cssparser::{RGBA, Token, Parser, serialize_identifier, CowRcStr, SourceLocation}; use parser::{Parse, ParserContext}; use selectors::parser::SelectorParseErrorKind; use std::fmt::{self, Debug, Write}; use std::hash; use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss}; @@ -225,9 +225,8 @@ impl ToCss for KeyframesName { W: Write, { match *self { KeyframesName::Ident(ref ident) => ident.to_css(dest), KeyframesName::QuotedString(ref atom) => atom.to_string().to_css(dest), } } } - diff --git a/servo/components/style_traits/lib.rs b/servo/components/style_traits/lib.rs --- a/servo/components/style_traits/lib.rs +++ b/servo/components/style_traits/lib.rs @@ -4,17 +4,17 @@ //! This module contains shared types and messages for use by devtools/script. //! The traits are here instead of in script so that the devtools crate can be //! modified independently of the rest of Servo. #![crate_name = "style_traits"] #![crate_type = "rlib"] -#![deny(unsafe_code, missing_docs)] +#![deny(unsafe_code)] extern crate app_units; #[macro_use] extern crate bitflags; #[macro_use] extern crate cssparser; extern crate euclid; extern crate malloc_size_of; #[macro_use] extern crate malloc_size_of_derive; extern crate selectors; diff --git a/servo/components/style_traits/values.rs b/servo/components/style_traits/values.rs --- a/servo/components/style_traits/values.rs +++ b/servo/components/style_traits/values.rs @@ -130,34 +130,16 @@ where if !prefix.is_empty() { self.inner.write_str(prefix)?; } } self.inner.write_char(c) } } -#[macro_export] -macro_rules! serialize_function { - ($dest: expr, $name: ident($( $arg: expr, )+)) => { - serialize_function!($dest, $name($($arg),+)) - }; - ($dest: expr, $name: ident($first_arg: expr $( , $arg: expr )*)) => { - { - $dest.write_str(concat!(stringify!($name), "("))?; - $first_arg.to_css($dest)?; - $( - $dest.write_str(", ")?; - $arg.to_css($dest)?; - )* - $dest.write_char(')') - } - } -} - /// Convenience wrapper to serialise CSS values separated by a given string. pub struct SequenceWriter<'a, 'b: 'a, W: 'b> { inner: &'a mut CssWriter<'b, W>, separator: &'static str, } impl<'a, 'b, W> SequenceWriter<'a, 'b, W> where @@ -399,17 +381,16 @@ impl_to_css_for_predefined_type!(f32); impl_to_css_for_predefined_type!(i32); impl_to_css_for_predefined_type!(u16); impl_to_css_for_predefined_type!(u32); impl_to_css_for_predefined_type!(::cssparser::Token<'a>); impl_to_css_for_predefined_type!(::cssparser::RGBA); impl_to_css_for_predefined_type!(::cssparser::Color); impl_to_css_for_predefined_type!(::cssparser::UnicodeRange); -#[macro_export] macro_rules! define_css_keyword_enum { (pub enum $name:ident { $($variant:ident = $css:expr,)+ }) => { #[allow(missing_docs)] #[cfg_attr(feature = "servo", derive(Deserialize, Serialize))] #[derive(Clone, Copy, Debug, Eq, Hash, MallocSizeOf, PartialEq)] pub enum $name { $($variant),+ }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor