mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rename some 'new' functions to 'new_inherited'.
This commit is contained in:
parent
3fe50711d4
commit
7f4283f4bc
8 changed files with 10 additions and 10 deletions
|
@ -15,9 +15,9 @@ pub struct CharacterData {
|
|||
}
|
||||
|
||||
impl CharacterData {
|
||||
pub fn new(id: NodeTypeId, data: ~str, document: AbstractDocument) -> CharacterData {
|
||||
pub fn new_inherited(id: NodeTypeId, data: ~str, document: AbstractDocument) -> CharacterData {
|
||||
CharacterData {
|
||||
node: Node::new(id, document),
|
||||
node: Node::new_inherited(id, document),
|
||||
data: data
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue