mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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> {
|
||||
pub fn from_layout_js(n: LayoutJS<Node>) -> LayoutNode<'ln> {
|
||||
fn from_layout_js(n: LayoutJS<Node>) -> LayoutNode<'ln> {
|
||||
LayoutNode {
|
||||
node: n,
|
||||
chain: PhantomData,
|
||||
|
@ -360,7 +360,7 @@ pub struct 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 {
|
||||
document: doc,
|
||||
chain: PhantomData,
|
||||
|
@ -389,7 +389,7 @@ pub struct 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 {
|
||||
element: el,
|
||||
chain: PhantomData,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue