Add license headers

This commit is contained in:
Brian Anderson 2013-04-05 16:16:50 -07:00
parent 8f7ac7ba37
commit aa35482e92
94 changed files with 402 additions and 20 deletions

View file

@ -1,3 +1,12 @@
// Copyright 2013 The Servo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern mod std; extern mod std;
use std::test::{TestOpts, run_tests_console, TestDesc}; use std::test::{TestOpts, run_tests_console, TestDesc};

View file

@ -50,9 +50,12 @@ license4 = """\
licenses = [license0, license1, license2, license3, license4] licenses = [license0, license1, license2, license3, license4]
exceptions = [ exceptions = [
"rust-http-client/http_parser.c", # Joyent, BSD "rust-http-client/http_parser.c", # BSD, Joyent
"rust-http-client/http_parser.h", # Joyent, BSD "rust-http-client/http_parser.h", # BSD, Joyent
"rust-opengles/gl2.h", # Khronos, SGI Free Software B License Version 2.0 "rust-opengles/gl2.h", # SGI Free Software B License Version 2.0, Khronos Group
"servo/dom/bindings/codegen/ply/ply/yacc.py", # BSD
"servo/dom/bindings/codegen/ply/ply/__init__.py", # BSD
"servo/dom/bindings/codegen/ply/ply/lex.py", # BSD
] ]
def check_license(name, contents): def check_license(name, contents):

View file

@ -32,25 +32,21 @@ def do_license_check(name, contents):
report_error_name_no(name, 1, "incorrect license") report_error_name_no(name, 1, "incorrect license")
exceptions = [ exceptions = [
"src/cairo", "src/cairo", # Upstream
"src/libcss", "src/libcss", # Upstream
"src/libhubbub", "src/libhubbub", # Upstream
"src/libparserutils", "src/libparserutils", # Upstream
"src/libwapcaplet", "src/libwapcaplet", # Upstream
"src/mozjs", "src/mozjs", # Upstream
"src/pixman", "src/pixman", # Upstream
"src/rust/", "src/rust/", # Upstream
"src/rust-azure/src", "src/rust-azure/src", # Upstream
"src/rust-azure/include", "src/rust-azure/include", # Upstream
"src/rust-harfbuzz/harfbuzz", "src/rust-harfbuzz/harfbuzz", # Upstream
"src/skia", "src/skia", # Upstream
"src/servo/dom/bindings/codegen", "src/servo/dom/bindings/codegen", # Generated and upstream code combined with our own. Could use cleanup
"src/rust-opengles", # Need to contact copyright holders "src/rust-opengles", # Need to contact copyright holders
"src/rust-stb-image", # " "src/rust-stb-image", # "
"src/servo", # "
"src/servo-gfx", # "
"src/reftest", # "
"src/contenttest", # "
] ]
def should_check(name): def should_check(name):

View file

@ -1,3 +1,12 @@
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
import sys, os import sys, os
from selenium import webdriver from selenium import webdriver

View file

@ -1,3 +1,12 @@
// Copyright 2013 The Servo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern mod std; extern mod std;
extern mod servo; extern mod servo;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use azure::AzFloat; use azure::AzFloat;
use AzColor = azure::azure_hl::Color; use AzColor = azure::azure_hl::Color;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use azure::azure_hl::{DrawTarget}; use azure::azure_hl::{DrawTarget};
use geom::rect::Rect; use geom::rect::Rect;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use color::{Color, rgb}; use color::{Color, rgb};
use geometry::Au; use geometry::Au;
use image::base::Image; use image::base::Image;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use color::Color; use color::Color;
use font_context::FontContext; use font_context::FontContext;
use geometry::Au; use geometry::Au;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use font::{Font, FontDescriptor, FontGroup, FontStyle, SelectorPlatformIdentifier}; use font::{Font, FontDescriptor, FontGroup, FontStyle, SelectorPlatformIdentifier};
use font::{SelectorStubDummy, SpecifiedFontStyle, UsedFontStyle}; use font::{SelectorStubDummy, SpecifiedFontStyle, UsedFontStyle};
use font_list::FontList; use font_list::FontList;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use font::{CSSFontWeight, SpecifiedFontStyle}; use font::{CSSFontWeight, SpecifiedFontStyle};
use gfx_font::FontHandleMethods; use gfx_font::FontHandleMethods;
use native::FontHandle; use native::FontHandle;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern mod freetype; extern mod freetype;
extern mod fontconfig; extern mod fontconfig;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern mod freetype; extern mod freetype;
use native; use native;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern mod freetype; extern mod freetype;
extern mod fontconfig; extern mod fontconfig;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use geom::point::Point2D; use geom::point::Point2D;
use geom::rect::Rect; use geom::rect::Rect;
use geom::size::Size2D; use geom::size::Size2D;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use stb_image = stb_image::image; use stb_image = stb_image::image;
// FIXME: Images must not be copied every frame. Instead we should atomically // FIXME: Images must not be copied every frame. Instead we should atomically

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core::io::WriterUtil; use core::io::WriterUtil;
use surface; use surface;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use image::base::Image; use image::base::Image;
use resource::image_cache_task::{ImageReady, ImageNotReady, ImageFailed}; use resource::image_cache_task::{ImageReady, ImageNotReady, ImageFailed};
use resource::local_image_cache::LocalImageCache; use resource::local_image_cache::LocalImageCache;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* This file exists just to make it easier to import platform-specific /* This file exists just to make it easier to import platform-specific
implementations. implementations.

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! Configuration options for a single run of the servo application. Created //! Configuration options for a single run of the servo application. Created
//! from command line arguments. //! from command line arguments.

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/// Implementation of Quartz (CoreGraphics) fonts. /// Implementation of Quartz (CoreGraphics) fonts.
extern mod core_foundation; extern mod core_foundation;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern mod core_foundation; extern mod core_foundation;
extern mod core_graphics; extern mod core_graphics;
extern mod core_text; extern mod core_text;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern mod core_foundation; extern mod core_foundation;
extern mod core_text; extern mod core_text;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use compositor::LayerBuffer; use compositor::LayerBuffer;
use font_context::FontContext; use font_context::FontContext;
use geometry::Au; use geometry::Au;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use compositor::{LayerBuffer, LayerBufferSet}; use compositor::{LayerBuffer, LayerBufferSet};
use display_list::DisplayList; use display_list::DisplayList;
use opts::Opts; use opts::Opts;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// The task that handles all rendering/painting. // The task that handles all rendering/painting.
use azure::AzFloat; use azure::AzFloat;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core::task::spawn; use core::task::spawn;
use resource::resource_task::{Payload, Done, LoaderTask}; use resource::resource_task::{Payload, Done, LoaderTask};
use core::io::{file_reader, ReaderUtil}; use core::io::{file_reader, ReaderUtil};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core::comm::SharedChan; use core::comm::SharedChan;
use core::task::spawn; use core::task::spawn;
use resource::resource_task::{Payload, Done, LoaderTask}; use resource::resource_task::{Payload, Done, LoaderTask};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use image::base::{Image, load_from_memory}; use image::base::{Image, load_from_memory};
use resource::resource_task; use resource::resource_task;
use resource::resource_task::ResourceTask; use resource::resource_task::ResourceTask;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*! /*!
An adapter for ImageCacheTask that does local caching to avoid An adapter for ImageCacheTask that does local caching to avoid
extra message traffic, it also avoids waiting on the same image extra message traffic, it also avoids waiting on the same image

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*! /*!
A task that takes a URL and streams back the binary data A task that takes a URL and streams back the binary data

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core::comm::{Chan, Port}; use core::comm::{Chan, Port};
pub fn spawn_listener<A: Owned>(f: ~fn(Port<A>)) -> Chan<A> { pub fn spawn_listener<A: Owned>(f: ~fn(Port<A>)) -> Chan<A> {

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#[link(name = "servo_gfx", #[link(name = "servo_gfx",
vers = "0.1", vers = "0.1",
uuid = "0106bb54-6ea9-45bf-a39e-a738621f15e5", uuid = "0106bb54-6ea9-45bf-a39e-a738621f15e5",

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use geom::size::Size2D; use geom::size::Size2D;
#[deriving(Eq)] #[deriving(Eq)]

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use geometry::Au; use geometry::Au;
use servo_gfx_util::range::Range; use servo_gfx_util::range::Range;
use servo_gfx_util::vec::*; use servo_gfx_util::vec::*;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern mod harfbuzz; extern mod harfbuzz;
use geom::Point2D; use geom::Point2D;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* This file exists just to make it easier to import things inside of /* This file exists just to make it easier to import things inside of
./text/ without specifying the file they came out of imports. ./text/ without specifying the file they came out of imports.

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** /**
Shaper encapsulates a specific shaper, such as Harfbuzz, Shaper encapsulates a specific shaper, such as Harfbuzz,
Uniscribe, Pango, or Coretext. Uniscribe, Pango, or Coretext.

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use font_context::FontContext; use font_context::FontContext;
use geometry::Au; use geometry::Au;
use text::glyph::{BreakTypeNormal, GlyphStore}; use text::glyph::{BreakTypeNormal, GlyphStore};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
enum CompressionMode { enum CompressionMode {
CompressNone, CompressNone,
CompressWhitespace, CompressWhitespace,

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
pub trait Cache<K: Copy + Eq, V: Copy> { pub trait Cache<K: Copy + Eq, V: Copy> {
fn new(size: uint) -> Self; fn new(size: uint) -> Self;
fn insert(&mut self, key: &K, value: V); fn insert(&mut self, key: &K, value: V);

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
enum RangeRelation { enum RangeRelation {
OverlapsBegin(/* overlap */ uint), OverlapsBegin(/* overlap */ uint),
OverlapsEnd(/* overlap */ uint), OverlapsEnd(/* overlap */ uint),

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Timing functions. // Timing functions.
use std::time::precise_time_ns; use std::time::precise_time_ns;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use std::net::url; use std::net::url;
use std::net::url::Url; use std::net::url::Url;
use core::hashmap::HashMap; use core::hashmap::HashMap;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core::cmp::{Ord, Eq}; use core::cmp::{Ord, Eq};
pub trait BinarySearchMethods<T: Ord + Eq> { pub trait BinarySearchMethods<T: Ord + Eq> {

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*! /*!
The content task is the main task that runs JavaScript and spawns layout The content task is the main task that runs JavaScript and spawns layout
tasks. tasks.

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
type name_pool = { type name_pool = {
}; };

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// High-level interface to CSS selector matching. // High-level interface to CSS selector matching.
use css::node_util::NodeUtil; use css::node_util::NodeUtil;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Style retrieval from DOM elements. // Style retrieval from DOM elements.
use css::node_util::NodeUtil; use css::node_util::NodeUtil;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::node::AbstractNode; use dom::node::AbstractNode;
use newcss::complete::CompleteSelectResults; use newcss::complete::CompleteSelectResults;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! CSS library requires that DOM nodes be convertable to *c_void through this trait //! CSS library requires that DOM nodes be convertable to *c_void through this trait
extern mod netsurfcss; extern mod netsurfcss;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use std::net::url::Url; use std::net::url::Url;
use url_from_str = std::net::url::from_str; use url_from_str = std::net::url::from_str;
use core::cell::Cell; use core::cell::Cell;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/// ///
/// Implementation of the callbacks that the CSS selector engine uses to query the DOM. /// Implementation of the callbacks that the CSS selector engine uses to query the DOM.
/// ///

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use content::content_task::task_from_context; use content::content_task::task_from_context;
use dom::bindings::utils::{CacheableWrapper, WrapperCache, BindingObject, OpaqueBindingReference}; use dom::bindings::utils::{CacheableWrapper, WrapperCache, BindingObject, OpaqueBindingReference};
use dom::bindings::codegen::ClientRectBinding; use dom::bindings::codegen::ClientRectBinding;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use content::content_task::task_from_context; use content::content_task::task_from_context;
use dom::bindings::clientrect::{ClientRect, ClientRectImpl}; use dom::bindings::clientrect::{ClientRect, ClientRectImpl};
use dom::bindings::codegen::ClientRectListBinding; use dom::bindings::codegen::ClientRectListBinding;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use js::jsapi::JSVal; use js::jsapi::JSVal;
use js::glue::bindgen::{RUST_INT_TO_JSVAL, RUST_JSVAL_TO_INT}; use js::glue::bindgen::{RUST_INT_TO_JSVAL, RUST_JSVAL_TO_INT};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use js::rust::{Compartment, jsobj}; use js::rust::{Compartment, jsobj};
use js::{JS_ARGV, JSPROP_ENUMERATE, JSPROP_SHARED, use js::{JS_ARGV, JSPROP_ENUMERATE, JSPROP_SHARED,
JSVAL_NULL, JS_THIS_OBJECT, JS_SET_RVAL, JSPROP_NATIVE_ACCESSORS}; JSVAL_NULL, JS_THIS_OBJECT, JS_SET_RVAL, JSPROP_NATIVE_ACCESSORS};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use content::content_task::task_from_context; use content::content_task::task_from_context;
use dom::bindings::utils::{domstring_to_jsval, WrapNewBindingObject}; use dom::bindings::utils::{domstring_to_jsval, WrapNewBindingObject};
use dom::bindings::utils::{str, CacheableWrapper, DOM_OBJECT_SLOT}; use dom::bindings::utils::{str, CacheableWrapper, DOM_OBJECT_SLOT};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use content::content_task::task_from_context; use content::content_task::task_from_context;
use dom::node::AbstractNode; use dom::node::AbstractNode;
use dom::bindings::codegen::HTMLCollectionBinding; use dom::bindings::codegen::HTMLCollectionBinding;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::utils::{CacheableWrapper, WrapperCache}; use dom::bindings::utils::{CacheableWrapper, WrapperCache};
use dom::bindings::utils::{DOM_OBJECT_SLOT}; use dom::bindings::utils::{DOM_OBJECT_SLOT};
use dom::node::{AbstractNode, Node, ElementNodeTypeId, TextNodeTypeId, CommentNodeTypeId}; use dom::node::{AbstractNode, Node, ElementNodeTypeId, TextNodeTypeId, CommentNodeTypeId};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use js::jsapi::{JSContext, jsid, JSPropertyDescriptor, JSObject, JSString, jschar}; use js::jsapi::{JSContext, jsid, JSPropertyDescriptor, JSObject, JSString, jschar};
use js::jsapi::bindgen::{JS_GetPropertyDescriptorById, JS_NewUCString, JS_malloc, JS_free}; use js::jsapi::bindgen::{JS_GetPropertyDescriptorById, JS_NewUCString, JS_malloc, JS_free};
use js::glue::bindgen::{RUST_JSVAL_IS_VOID, RUST_JSVAL_TO_OBJECT, GetProxyExtra}; use js::glue::bindgen::{RUST_JSVAL_IS_VOID, RUST_JSVAL_TO_OBJECT, GetProxyExtra};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use js; use js;
use js::rust::Compartment; use js::rust::Compartment;
use js::{JSCLASS_HAS_RESERVED_SLOTS, JSPROP_ENUMERATE, JSVAL_NULL, use js::{JSCLASS_HAS_RESERVED_SLOTS, JSPROP_ENUMERATE, JSVAL_NULL,

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// DOM bindings for the Window object. // DOM bindings for the Window object.
use dom::bindings::utils::{rust_box, squirrel_away, CacheableWrapper}; use dom::bindings::utils::{rust_box, squirrel_away, CacheableWrapper};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::htmlcollection::HTMLCollection; use dom::bindings::htmlcollection::HTMLCollection;
use dom::bindings::utils::{DOMString, WrapperCache, str}; use dom::bindings::utils::{DOMString, WrapperCache, str};
use dom::node::AbstractNode; use dom::node::AbstractNode;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// //
// Element nodes. // Element nodes.
// //

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
pub enum Event { pub enum Event {
ResizeEvent(uint, uint, comm::Chan<()>), ResizeEvent(uint, uint, comm::Chan<()>),
ReflowEvent ReflowEvent

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// //
// The core DOM types. Defines the basic DOM hierarchy as well as all the HTML elements. // The core DOM types. Defines the basic DOM hierarchy as well as all the HTML elements.
// //

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use content::content_task::{ControlMsg, Timer, ExitMsg}; use content::content_task::{ControlMsg, Timer, ExitMsg};
use dom::bindings::utils::WrapperCache; use dom::bindings::utils::WrapperCache;
use js::jsapi::JSVal; use js::jsapi::JSVal;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use content::content_task::{ContentTask, ExecuteMsg, ParseMsg}; use content::content_task::{ContentTask, ExecuteMsg, ParseMsg};
use content::content_task; use content::content_task;
use dom::event::Event; use dom::event::Event;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*! /*!
Some little helpers for hooking up the HTML parser with the CSS parser Some little helpers for hooking up the HTML parser with the CSS parser
*/ */

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::element::*; use dom::element::*;
use dom::node::{AbstractNode, Comment, Doctype, Element, ElementNodeTypeId, Node, Text}; use dom::node::{AbstractNode, Comment, Doctype, Element, ElementNodeTypeId, Node, Text};
use html::cssparse::{InlineProvenance, StylesheetProvenance, UrlProvenance, spawn_css_parser}; use html::cssparse::{InlineProvenance, StylesheetProvenance, UrlProvenance, spawn_css_parser};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* This file exists just to make it easier to import things inside of /* This file exists just to make it easier to import things inside of
./images/ without specifying the file they came out of imports. ./images/ without specifying the file they came out of imports.

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** /**
Code for managing the DOM aux pointer Code for managing the DOM aux pointer
*/ */

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Block layout. // Block layout.
use core::cell::Cell; use core::cell::Cell;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Fundamental layout structures and algorithms. */ /* Fundamental layout structures and algorithms. */
use css::node_style::StyledNode; use css::node_style::StyledNode;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** Creates CSS boxes from a DOM. */ /** Creates CSS boxes from a DOM. */
use dom::element::*; use dom::element::*;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use geom::rect::Rect; use geom::rect::Rect;
use gfx::font_context::FontContext; use gfx::font_context::FontContext;
use gfx::geometry::Au; use gfx::geometry::Au;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
pub trait BoxedMutDebugMethods { pub trait BoxedMutDebugMethods {
fn dump(@mut self); fn dump(@mut self);
fn dump_indent(@mut self, ident: uint); fn dump_indent(@mut self, ident: uint);

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/// ///
/// Constructs display lists from render boxes. /// Constructs display lists from render boxes.
/// ///

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core; use core;
use core::cell::Cell; use core::cell::Cell;
use dom::node::AbstractNode; use dom::node::AbstractNode;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core; use core;
use core::cell::Cell; use core::cell::Cell;
use dom::node::AbstractNode; use dom::node::AbstractNode;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/// The layout task. Performs layout on the DOM, builds display lists and sends them to be /// The layout task. Performs layout on the DOM, builds display lists and sends them to be
/// rendered. /// rendered.

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core::cell::Cell; use core::cell::Cell;
use geom::point::Point2D; use geom::point::Point2D;
use geom::rect::Rect; use geom::rect::Rect;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** Text layout. */ /** Text layout. */
use layout::box::{TextBox, RenderBox, RenderBoxData, UnscannedTextBox}; use layout::box::{TextBox, RenderBox, RenderBoxData, UnscannedTextBox};

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use layout::flow::{FlowContext, FlowTree}; use layout::flow::{FlowContext, FlowTree};
/** Trait for running tree-based traversals over layout contexts */ /** Trait for running tree-based traversals over layout contexts */

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
{ {
macro_rules! move_ref( macro_rules! move_ref(
{ $x:expr } => { unsafe { let y <- *ptr::addr_of(*$x); y } } { $x:expr } => { unsafe { let y <- *ptr::addr_of(*$x); y } }

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
export uri, input_stream, channel, io_service, file_channel; export uri, input_stream, channel, io_service, file_channel;
import uri::uri; import uri::uri;

View file

@ -1 +1,5 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use ShareGlContext = sharegl::platform::Context; use ShareGlContext = sharegl::platform::Context;
use dom::event::Event; use dom::event::Event;
use platform::resize_rate_limiter::ResizeRateLimiter; use platform::resize_rate_limiter::ResizeRateLimiter;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*! /*!
A little class that rate limits the number of resize events sent to the content task A little class that rate limits the number of resize events sent to the content task
based on how fast content dispatches those events. It waits until each event is handled based on how fast content dispatches those events. It waits until each event is handled

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#[link(name = "servo", #[link(name = "servo",
vers = "0.1", vers = "0.1",
uuid = "637ffc98-9058-471d-9de7-abfc49ef0549", uuid = "637ffc98-9058-471d-9de7-abfc49ef0549",

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
pub use gfx::util::cache; pub use gfx::util::cache;
pub use gfx::util::time; pub use gfx::util::time;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use core::cell::Cell; use core::cell::Cell;
use core::comm::{Chan, Port}; use core::comm::{Chan, Port};
use core::task; use core::task;

View file

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// A generic tree datatype. // A generic tree datatype.
// //
// TODO: Use traits. // TODO: Use traits.