mirror of
https://github.com/servo/servo.git
synced 2025-06-26 01:54:33 +01:00
Make Document a Node.
This commit is contained in:
parent
cc76a2188e
commit
99a36cbeb6
10 changed files with 96 additions and 120 deletions
|
@ -274,7 +274,7 @@ impl Page {
|
|||
/// This function fails if there is no root frame.
|
||||
fn reflow(&mut self, goal: ReflowGoal, script_chan: ScriptChan, compositor: @ScriptListener) {
|
||||
let root = match self.frame {
|
||||
None => fail!(~"Tried to relayout with no root frame!"),
|
||||
None => return,
|
||||
Some(ref frame) => {
|
||||
frame.document.document().GetDocumentElement()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue