mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
fix compile err (internal compiler err on ARM)
This commit is contained in:
parent
da2ccb048e
commit
401c3afece
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,8 @@ use std::util::replace;
|
||||||
use gfx::render_task::BufferRequest;
|
use gfx::render_task::BufferRequest;
|
||||||
use servo_msg::compositor_msg::Tile;
|
use servo_msg::compositor_msg::Tile;
|
||||||
|
|
||||||
|
static HEADER: &'static str = "<!DOCTYPE html><html>";
|
||||||
|
|
||||||
/// Parent to all quadtree nodes. Stores variables needed at all levels. All method calls
|
/// Parent to all quadtree nodes. Stores variables needed at all levels. All method calls
|
||||||
/// at this level are in pixel coordinates.
|
/// at this level are in pixel coordinates.
|
||||||
pub struct Quadtree<T> {
|
pub struct Quadtree<T> {
|
||||||
|
@ -298,7 +300,6 @@ impl<T: Tile> Quadtree<T> {
|
||||||
|
|
||||||
/// Generate html to visualize the tree. For debugging purposes only.
|
/// Generate html to visualize the tree. For debugging purposes only.
|
||||||
pub fn get_html(&self) -> ~str {
|
pub fn get_html(&self) -> ~str {
|
||||||
static HEADER: &'static str = "<!DOCTYPE html><html>";
|
|
||||||
fmt!("%s<body>%s</body></html>", HEADER, self.root.get_html())
|
fmt!("%s<body>%s</body></html>", HEADER, self.root.get_html())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue