Deny unsafe code in style.

This commit is contained in:
Ms2ger 2015-12-29 13:12:52 +01:00
parent 3f407ea3d6
commit 2fa45aa064
4 changed files with 9 additions and 0 deletions

View file

@ -197,6 +197,7 @@ impl StyleSharingCandidate {
/// Attempts to create a style sharing candidate from this node. Returns
/// the style sharing candidate or `None` if this node is ineligible for
/// style sharing.
#[allow(unsafe_code)]
fn new<'le, E: TElement<'le>>(element: &E) -> Option<StyleSharingCandidate> {
let parent_element = match element.parent_element() {
None => return None,