aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/wrapper.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-07-23 20:30:59 +0200
committerMs2ger <ms2ger@gmail.com>2015-07-23 20:30:59 +0200
commit487eef88e314874a275ebc25e8e4658186f68dff (patch)
treed9dfe322c05ac89902acd82a3aa801a5ca7ecd8e /components/layout/wrapper.rs
parent849eb7837a80acfd81fb3840f166ba754ea38b76 (diff)
downloadservo-487eef88e314874a275ebc25e8e4658186f68dff.tar.gz
servo-487eef88e314874a275ebc25e8e4658186f68dff.zip
Move the state getters to LayoutElementHelpers.
Diffstat (limited to 'components/layout/wrapper.rs')
-rw-r--r--components/layout/wrapper.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs
index 35bb53865f2..e856dcf3e51 100644
--- a/components/layout/wrapper.rs
+++ b/components/layout/wrapper.rs
@@ -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]