Move the state getters to LayoutElementHelpers.

This commit is contained in:
Ms2ger 2015-07-23 20:30:59 +02:00
parent 849eb7837a
commit 487eef88e3
2 changed files with 28 additions and 31 deletions

View file

@ -469,16 +469,12 @@ impl<'le> ::selectors::Element for LayoutElement<'le> {
#[inline]
fn get_checked_state(&self) -> bool {
unsafe {
(*self.element.unsafe_get()).get_checked_state_for_layout()
}
self.element.get_checked_state_for_layout()
}
#[inline]
fn get_indeterminate_state(&self) -> bool {
unsafe {
(*self.element.unsafe_get()).get_indeterminate_state_for_layout()
}
self.element.get_indeterminate_state_for_layout()
}
#[inline]