mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade to SM 39
This commit is contained in:
parent
a256f39796
commit
675267b782
205 changed files with 6546 additions and 5340 deletions
|
@ -521,6 +521,7 @@ pub struct LayoutElement<'le> {
|
|||
|
||||
impl<'le> LayoutElement<'le> {
|
||||
pub fn style_attribute(&self) -> &'le Option<PropertyDeclarationBlock> {
|
||||
use script::dom::element::ElementHelpers;
|
||||
let style: &Option<PropertyDeclarationBlock> = unsafe {
|
||||
&*self.element.style_attribute().borrow_for_layout()
|
||||
};
|
||||
|
@ -536,6 +537,7 @@ impl<'le> TElement<'le> for LayoutElement<'le> {
|
|||
|
||||
#[inline]
|
||||
fn get_namespace(self) -> &'le Namespace {
|
||||
use script::dom::element::ElementHelpers;
|
||||
self.element.namespace()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue