зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #8549 - Privatize from_layout_js functions (from Ms2ger:privatize); r=pcwalton
Source-Repo: https://github.com/servo/servo Source-Revision: cedaac8dbe44e23b7bb7335c470e9e48ee1e6139
This commit is contained in:
Родитель
64aafda294
Коммит
d0c495b6fd
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче