mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Move the initialize_data method out of the TNode trait.
This reduces the dependency of TNode implementations on layout types.
This commit is contained in:
parent
ae5cb0ceb0
commit
e723d72570
3 changed files with 22 additions and 29 deletions
|
@ -86,12 +86,6 @@ pub trait TNode : Sized + Copy + Clone {
|
|||
/// Converts self into an `OpaqueNode`.
|
||||
fn opaque(&self) -> OpaqueNode;
|
||||
|
||||
/// Initializes style and layout data for the node. No-op if the data is already
|
||||
/// initialized.
|
||||
///
|
||||
/// FIXME(pcwalton): Do this as part of fragment building instead of in a traversal.
|
||||
fn initialize_data(self);
|
||||
|
||||
/// While doing a reflow, the node at the root has no parent, as far as we're
|
||||
/// concerned. This method returns `None` at the reflow root.
|
||||
fn layout_parent_node(self, reflow_root: OpaqueNode) -> Option<Self>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue