mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Privatize from_layout_js functions.
This commit is contained in:
parent
f8c2c3c3e4
commit
3fb16cc017
1 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ impl<'a> PartialEq for LayoutNode<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'ln> LayoutNode<'ln> {
|
impl<'ln> LayoutNode<'ln> {
|
||||||
pub fn from_layout_js(n: LayoutJS<Node>) -> LayoutNode<'ln> {
|
fn from_layout_js(n: LayoutJS<Node>) -> LayoutNode<'ln> {
|
||||||
LayoutNode {
|
LayoutNode {
|
||||||
node: n,
|
node: n,
|
||||||
chain: PhantomData,
|
chain: PhantomData,
|
||||||
|
@ -360,7 +360,7 @@ pub struct LayoutDocument<'le> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'le> LayoutDocument<'le> {
|
impl<'le> LayoutDocument<'le> {
|
||||||
pub fn from_layout_js(doc: LayoutJS<Document>) -> LayoutDocument<'le> {
|
fn from_layout_js(doc: LayoutJS<Document>) -> LayoutDocument<'le> {
|
||||||
LayoutDocument {
|
LayoutDocument {
|
||||||
document: doc,
|
document: doc,
|
||||||
chain: PhantomData,
|
chain: PhantomData,
|
||||||
|
@ -389,7 +389,7 @@ pub struct LayoutElement<'le> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'le> LayoutElement<'le> {
|
impl<'le> LayoutElement<'le> {
|
||||||
pub fn from_layout_js(el: LayoutJS<Element>) -> LayoutElement<'le> {
|
fn from_layout_js(el: LayoutJS<Element>) -> LayoutElement<'le> {
|
||||||
LayoutElement {
|
LayoutElement {
|
||||||
element: el,
|
element: el,
|
||||||
chain: PhantomData,
|
chain: PhantomData,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue