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
b1c068b203
commit
4e47d59165
10 changed files with 94 additions and 96 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