mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
Auto merge of #8549 - Ms2ger:privatize, r=pcwalton
Privatize from_layout_js functions. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8549) <!-- Reviewable:end -->
This commit is contained in:
commit
cedaac8dbe
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