From aa35482e921a4a3fc3ffa2964982cac4d9f01aac Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 5 Apr 2013 16:16:50 -0700 Subject: [PATCH] Add license headers --- src/contenttest/contenttest.rs | 9 +++++++ src/etc/licenseck.py | 9 ++++--- src/etc/tidy.py | 30 +++++++++------------ src/reftest/rasterize.py | 9 +++++++ src/reftest/reftest.rs | 9 +++++++ src/servo-gfx/color.rs | 4 +++ src/servo-gfx/compositor.rs | 4 +++ src/servo-gfx/display_list.rs | 4 +++ src/servo-gfx/font.rs | 4 +++ src/servo-gfx/font_context.rs | 4 +++ src/servo-gfx/font_list.rs | 4 +++ src/servo-gfx/fontconfig/font_list.rs | 4 +++ src/servo-gfx/freetype_impl/font.rs | 4 +++ src/servo-gfx/freetype_impl/font_context.rs | 4 +++ src/servo-gfx/geometry.rs | 4 +++ src/servo-gfx/image/base.rs | 4 +++ src/servo-gfx/image/encode/tga.rs | 4 +++ src/servo-gfx/image/holder.rs | 4 +++ src/servo-gfx/native.rs | 4 +++ src/servo-gfx/opts.rs | 4 +++ src/servo-gfx/quartz/font.rs | 4 +++ src/servo-gfx/quartz/font_context.rs | 4 +++ src/servo-gfx/quartz/font_list.rs | 4 +++ src/servo-gfx/render_context.rs | 4 +++ src/servo-gfx/render_layers.rs | 4 +++ src/servo-gfx/render_task.rs | 4 +++ src/servo-gfx/resource/file_loader.rs | 4 +++ src/servo-gfx/resource/http_loader.rs | 4 +++ src/servo-gfx/resource/image_cache_task.rs | 4 +++ src/servo-gfx/resource/local_image_cache.rs | 4 +++ src/servo-gfx/resource/resource_task.rs | 4 +++ src/servo-gfx/resource/util.rs | 4 +++ src/servo-gfx/servo_gfx.rc | 4 +++ src/servo-gfx/surface.rs | 4 +++ src/servo-gfx/text/glyph.rs | 4 +++ src/servo-gfx/text/harfbuzz/shaper.rs | 4 +++ src/servo-gfx/text/mod.rs | 4 +++ src/servo-gfx/text/shaper.rs | 4 +++ src/servo-gfx/text/text_run.rs | 4 +++ src/servo-gfx/text/util.rs | 4 +++ src/servo-gfx/util/cache.rs | 4 +++ src/servo-gfx/util/range.rs | 4 +++ src/servo-gfx/util/time.rs | 4 +++ src/servo-gfx/util/url.rs | 4 +++ src/servo-gfx/util/vec.rs | 4 +++ src/servo/content/content_task.rs | 4 +++ src/servo/content/jsnames.rs | 4 +++ src/servo/css/matching.rs | 4 +++ src/servo/css/node_style.rs | 4 +++ src/servo/css/node_util.rs | 4 +++ src/servo/css/node_void_ptr.rs | 4 +++ src/servo/css/select.rs | 4 +++ src/servo/css/select_handler.rs | 4 +++ src/servo/dom/bindings/clientrect.rs | 4 +++ src/servo/dom/bindings/clientrectlist.rs | 4 +++ src/servo/dom/bindings/conversions.rs | 4 +++ src/servo/dom/bindings/document.rs | 4 +++ src/servo/dom/bindings/element.rs | 4 +++ src/servo/dom/bindings/htmlcollection.rs | 4 +++ src/servo/dom/bindings/node.rs | 4 +++ src/servo/dom/bindings/proxyhandler.rs | 4 +++ src/servo/dom/bindings/utils.rs | 4 +++ src/servo/dom/bindings/window.rs | 4 +++ src/servo/dom/document.rs | 4 +++ src/servo/dom/element.rs | 4 +++ src/servo/dom/event.rs | 4 +++ src/servo/dom/node.rs | 4 +++ src/servo/dom/window.rs | 4 +++ src/servo/engine.rs | 4 +++ src/servo/html/cssparse.rs | 4 +++ src/servo/html/hubbub_html_parser.rs | 4 +++ src/servo/image.rs | 4 +++ src/servo/layout/aux.rs | 4 +++ src/servo/layout/block.rs | 4 +++ src/servo/layout/box.rs | 4 +++ src/servo/layout/box_builder.rs | 4 +++ src/servo/layout/context.rs | 4 +++ src/servo/layout/debug.rs | 4 +++ src/servo/layout/display_list_builder.rs | 4 +++ src/servo/layout/flow.rs | 4 +++ src/servo/layout/inline.rs | 4 +++ src/servo/layout/layout_task.rs | 4 +++ src/servo/layout/root.rs | 4 +++ src/servo/layout/text.rs | 4 +++ src/servo/layout/traverse.rs | 4 +++ src/servo/macros.rs | 4 +++ src/servo/net.rs | 4 +++ src/servo/platform/base.rs | 4 +++ src/servo/platform/osmain.rs | 4 +++ src/servo/platform/resize_rate_limiter.rs | 4 +++ src/servo/servo.rc | 4 +++ src/servo/util/mod.rs | 4 +++ src/servo/util/task.rs | 4 +++ src/servo/util/tree.rs | 4 +++ 94 files changed, 402 insertions(+), 20 deletions(-) diff --git a/src/contenttest/contenttest.rs b/src/contenttest/contenttest.rs index bec1d2ea1603..0815cf439e0d 100644 --- a/src/contenttest/contenttest.rs +++ b/src/contenttest/contenttest.rs @@ -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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + extern mod std; use std::test::{TestOpts, run_tests_console, TestDesc}; diff --git a/src/etc/licenseck.py b/src/etc/licenseck.py index e6da0096d9ea..63cde441e506 100644 --- a/src/etc/licenseck.py +++ b/src/etc/licenseck.py @@ -50,9 +50,12 @@ licenses = [license0, license1, license2, license3, license4] exceptions = [ - "rust-http-client/http_parser.c", # Joyent, BSD - "rust-http-client/http_parser.h", # Joyent, BSD - "rust-opengles/gl2.h", # Khronos, SGI Free Software B License Version 2.0 + "rust-http-client/http_parser.c", # BSD, Joyent + "rust-http-client/http_parser.h", # BSD, Joyent + "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): diff --git a/src/etc/tidy.py b/src/etc/tidy.py index b04194e30a92..07506da51b1e 100644 --- a/src/etc/tidy.py +++ b/src/etc/tidy.py @@ -32,25 +32,21 @@ def do_license_check(name, contents): report_error_name_no(name, 1, "incorrect license") exceptions = [ - "src/cairo", - "src/libcss", - "src/libhubbub", - "src/libparserutils", - "src/libwapcaplet", - "src/mozjs", - "src/pixman", - "src/rust/", - "src/rust-azure/src", - "src/rust-azure/include", - "src/rust-harfbuzz/harfbuzz", - "src/skia", - "src/servo/dom/bindings/codegen", + "src/cairo", # Upstream + "src/libcss", # Upstream + "src/libhubbub", # Upstream + "src/libparserutils", # Upstream + "src/libwapcaplet", # Upstream + "src/mozjs", # Upstream + "src/pixman", # Upstream + "src/rust/", # Upstream + "src/rust-azure/src", # Upstream + "src/rust-azure/include", # Upstream + "src/rust-harfbuzz/harfbuzz", # Upstream + "src/skia", # Upstream + "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-stb-image", # " - "src/servo", # " - "src/servo-gfx", # " - "src/reftest", # " - "src/contenttest", # " ] def should_check(name): diff --git a/src/reftest/rasterize.py b/src/reftest/rasterize.py index f00c40df892a..44170e142a8e 100644 --- a/src/reftest/rasterize.py +++ b/src/reftest/rasterize.py @@ -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 or the MIT license +# , at your +# option. This file may not be copied, modified, or distributed +# except according to those terms. + import sys, os from selenium import webdriver diff --git a/src/reftest/reftest.rs b/src/reftest/reftest.rs index b7206bdf10a0..8ba59299148f 100644 --- a/src/reftest/reftest.rs +++ b/src/reftest/reftest.rs @@ -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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + extern mod std; extern mod servo; diff --git a/src/servo-gfx/color.rs b/src/servo-gfx/color.rs index 8763b9ee7a7e..274b30a3212d 100644 --- a/src/servo-gfx/color.rs +++ b/src/servo-gfx/color.rs @@ -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 AzColor = azure::azure_hl::Color; diff --git a/src/servo-gfx/compositor.rs b/src/servo-gfx/compositor.rs index 49e13b4b531a..0527b30a6b7b 100644 --- a/src/servo-gfx/compositor.rs +++ b/src/servo-gfx/compositor.rs @@ -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 geom::rect::Rect; diff --git a/src/servo-gfx/display_list.rs b/src/servo-gfx/display_list.rs index 44586f7a0ab8..136403b22618 100644 --- a/src/servo-gfx/display_list.rs +++ b/src/servo-gfx/display_list.rs @@ -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 geometry::Au; use image::base::Image; diff --git a/src/servo-gfx/font.rs b/src/servo-gfx/font.rs index bf8cdfb36205..9a8386e7f7a1 100644 --- a/src/servo-gfx/font.rs +++ b/src/servo-gfx/font.rs @@ -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 font_context::FontContext; use geometry::Au; diff --git a/src/servo-gfx/font_context.rs b/src/servo-gfx/font_context.rs index 884e142f5e54..31e26de928e7 100644 --- a/src/servo-gfx/font_context.rs +++ b/src/servo-gfx/font_context.rs @@ -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::{SelectorStubDummy, SpecifiedFontStyle, UsedFontStyle}; use font_list::FontList; diff --git a/src/servo-gfx/font_list.rs b/src/servo-gfx/font_list.rs index 7b299c9b9ab0..5617968e57cc 100644 --- a/src/servo-gfx/font_list.rs +++ b/src/servo-gfx/font_list.rs @@ -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 gfx_font::FontHandleMethods; use native::FontHandle; diff --git a/src/servo-gfx/fontconfig/font_list.rs b/src/servo-gfx/fontconfig/font_list.rs index 6ab2668b1f60..57622ae36e0e 100644 --- a/src/servo-gfx/fontconfig/font_list.rs +++ b/src/servo-gfx/fontconfig/font_list.rs @@ -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 fontconfig; diff --git a/src/servo-gfx/freetype_impl/font.rs b/src/servo-gfx/freetype_impl/font.rs index 234ffaeb00ed..4bf47ecb0ce8 100644 --- a/src/servo-gfx/freetype_impl/font.rs +++ b/src/servo-gfx/freetype_impl/font.rs @@ -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; use native; diff --git a/src/servo-gfx/freetype_impl/font_context.rs b/src/servo-gfx/freetype_impl/font_context.rs index 98b5615bbafd..35d09e4900a8 100644 --- a/src/servo-gfx/freetype_impl/font_context.rs +++ b/src/servo-gfx/freetype_impl/font_context.rs @@ -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 fontconfig; diff --git a/src/servo-gfx/geometry.rs b/src/servo-gfx/geometry.rs index 7bb140efbcd6..f1803a7bbb41 100644 --- a/src/servo-gfx/geometry.rs +++ b/src/servo-gfx/geometry.rs @@ -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::rect::Rect; use geom::size::Size2D; diff --git a/src/servo-gfx/image/base.rs b/src/servo-gfx/image/base.rs index ad6606de5fed..7f62d6156dea 100644 --- a/src/servo-gfx/image/base.rs +++ b/src/servo-gfx/image/base.rs @@ -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; // FIXME: Images must not be copied every frame. Instead we should atomically diff --git a/src/servo-gfx/image/encode/tga.rs b/src/servo-gfx/image/encode/tga.rs index 60bada116eed..8c5b948d5050 100644 --- a/src/servo-gfx/image/encode/tga.rs +++ b/src/servo-gfx/image/encode/tga.rs @@ -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 surface; diff --git a/src/servo-gfx/image/holder.rs b/src/servo-gfx/image/holder.rs index 1ad9a8fe4593..bd6adce3d656 100644 --- a/src/servo-gfx/image/holder.rs +++ b/src/servo-gfx/image/holder.rs @@ -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 resource::image_cache_task::{ImageReady, ImageNotReady, ImageFailed}; use resource::local_image_cache::LocalImageCache; diff --git a/src/servo-gfx/native.rs b/src/servo-gfx/native.rs index 9ae03bdc06be..c54196536b14 100644 --- a/src/servo-gfx/native.rs +++ b/src/servo-gfx/native.rs @@ -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 implementations. diff --git a/src/servo-gfx/opts.rs b/src/servo-gfx/opts.rs index 897d202514b0..254010b2c28e 100644 --- a/src/servo-gfx/opts.rs +++ b/src/servo-gfx/opts.rs @@ -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 //! from command line arguments. diff --git a/src/servo-gfx/quartz/font.rs b/src/servo-gfx/quartz/font.rs index 5dc5cbf6326a..95084cdc8481 100644 --- a/src/servo-gfx/quartz/font.rs +++ b/src/servo-gfx/quartz/font.rs @@ -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. extern mod core_foundation; diff --git a/src/servo-gfx/quartz/font_context.rs b/src/servo-gfx/quartz/font_context.rs index b610bdb576c9..ef47d2a2f106 100644 --- a/src/servo-gfx/quartz/font_context.rs +++ b/src/servo-gfx/quartz/font_context.rs @@ -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_graphics; extern mod core_text; diff --git a/src/servo-gfx/quartz/font_list.rs b/src/servo-gfx/quartz/font_list.rs index 10eaca28d0bf..bb48bf3e98a1 100644 --- a/src/servo-gfx/quartz/font_list.rs +++ b/src/servo-gfx/quartz/font_list.rs @@ -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_text; diff --git a/src/servo-gfx/render_context.rs b/src/servo-gfx/render_context.rs index a36a8acc73bf..d7d815c22525 100644 --- a/src/servo-gfx/render_context.rs +++ b/src/servo-gfx/render_context.rs @@ -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 font_context::FontContext; use geometry::Au; diff --git a/src/servo-gfx/render_layers.rs b/src/servo-gfx/render_layers.rs index cc5ba312c312..3d9825f342d2 100644 --- a/src/servo-gfx/render_layers.rs +++ b/src/servo-gfx/render_layers.rs @@ -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 display_list::DisplayList; use opts::Opts; diff --git a/src/servo-gfx/render_task.rs b/src/servo-gfx/render_task.rs index 6e58028ea767..055a41a0ac84 100644 --- a/src/servo-gfx/render_task.rs +++ b/src/servo-gfx/render_task.rs @@ -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. use azure::AzFloat; diff --git a/src/servo-gfx/resource/file_loader.rs b/src/servo-gfx/resource/file_loader.rs index c5a100ce9f2c..fc7816d5f499 100644 --- a/src/servo-gfx/resource/file_loader.rs +++ b/src/servo-gfx/resource/file_loader.rs @@ -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 resource::resource_task::{Payload, Done, LoaderTask}; use core::io::{file_reader, ReaderUtil}; diff --git a/src/servo-gfx/resource/http_loader.rs b/src/servo-gfx/resource/http_loader.rs index 549ec714802d..f5cbf9b1cef3 100644 --- a/src/servo-gfx/resource/http_loader.rs +++ b/src/servo-gfx/resource/http_loader.rs @@ -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::task::spawn; use resource::resource_task::{Payload, Done, LoaderTask}; diff --git a/src/servo-gfx/resource/image_cache_task.rs b/src/servo-gfx/resource/image_cache_task.rs index e4c7aed156f8..511afab04be3 100644 --- a/src/servo-gfx/resource/image_cache_task.rs +++ b/src/servo-gfx/resource/image_cache_task.rs @@ -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 resource::resource_task; use resource::resource_task::ResourceTask; diff --git a/src/servo-gfx/resource/local_image_cache.rs b/src/servo-gfx/resource/local_image_cache.rs index 078c80804b38..92ef4225decb 100644 --- a/src/servo-gfx/resource/local_image_cache.rs +++ b/src/servo-gfx/resource/local_image_cache.rs @@ -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 extra message traffic, it also avoids waiting on the same image diff --git a/src/servo-gfx/resource/resource_task.rs b/src/servo-gfx/resource/resource_task.rs index c7c157a153ae..bfaa5fa25a04 100644 --- a/src/servo-gfx/resource/resource_task.rs +++ b/src/servo-gfx/resource/resource_task.rs @@ -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 diff --git a/src/servo-gfx/resource/util.rs b/src/servo-gfx/resource/util.rs index fb9d1d754816..ec1aea92e869 100644 --- a/src/servo-gfx/resource/util.rs +++ b/src/servo-gfx/resource/util.rs @@ -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}; pub fn spawn_listener(f: ~fn(Port)) -> Chan { diff --git a/src/servo-gfx/servo_gfx.rc b/src/servo-gfx/servo_gfx.rc index 7baa4aa4bef4..c997eac5b1d9 100644 --- a/src/servo-gfx/servo_gfx.rc +++ b/src/servo-gfx/servo_gfx.rc @@ -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", vers = "0.1", uuid = "0106bb54-6ea9-45bf-a39e-a738621f15e5", diff --git a/src/servo-gfx/surface.rs b/src/servo-gfx/surface.rs index 148bc68512f7..f1d4e95e6580 100644 --- a/src/servo-gfx/surface.rs +++ b/src/servo-gfx/surface.rs @@ -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; #[deriving(Eq)] diff --git a/src/servo-gfx/text/glyph.rs b/src/servo-gfx/text/glyph.rs index 7a91c5e128d2..939fd4982c5f 100644 --- a/src/servo-gfx/text/glyph.rs +++ b/src/servo-gfx/text/glyph.rs @@ -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 servo_gfx_util::range::Range; use servo_gfx_util::vec::*; diff --git a/src/servo-gfx/text/harfbuzz/shaper.rs b/src/servo-gfx/text/harfbuzz/shaper.rs index a0f8cda7f0a2..cc57ad805858 100644 --- a/src/servo-gfx/text/harfbuzz/shaper.rs +++ b/src/servo-gfx/text/harfbuzz/shaper.rs @@ -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; use geom::Point2D; diff --git a/src/servo-gfx/text/mod.rs b/src/servo-gfx/text/mod.rs index 992dc50283e8..acf2b24e67d6 100644 --- a/src/servo-gfx/text/mod.rs +++ b/src/servo-gfx/text/mod.rs @@ -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 ./text/ without specifying the file they came out of imports. diff --git a/src/servo-gfx/text/shaper.rs b/src/servo-gfx/text/shaper.rs index b5f3d322931b..217d2496a9ed 100644 --- a/src/servo-gfx/text/shaper.rs +++ b/src/servo-gfx/text/shaper.rs @@ -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, Uniscribe, Pango, or Coretext. diff --git a/src/servo-gfx/text/text_run.rs b/src/servo-gfx/text/text_run.rs index 694d8236e77e..e6775b5f2606 100644 --- a/src/servo-gfx/text/text_run.rs +++ b/src/servo-gfx/text/text_run.rs @@ -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 geometry::Au; use text::glyph::{BreakTypeNormal, GlyphStore}; diff --git a/src/servo-gfx/text/util.rs b/src/servo-gfx/text/util.rs index 955163dbf9a5..a74d59bcbc84 100644 --- a/src/servo-gfx/text/util.rs +++ b/src/servo-gfx/text/util.rs @@ -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 { CompressNone, CompressWhitespace, diff --git a/src/servo-gfx/util/cache.rs b/src/servo-gfx/util/cache.rs index 5fa45aff6058..d6c46065ee7e 100644 --- a/src/servo-gfx/util/cache.rs +++ b/src/servo-gfx/util/cache.rs @@ -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 { fn new(size: uint) -> Self; fn insert(&mut self, key: &K, value: V); diff --git a/src/servo-gfx/util/range.rs b/src/servo-gfx/util/range.rs index c359533fab6a..caf3f3d003e3 100644 --- a/src/servo-gfx/util/range.rs +++ b/src/servo-gfx/util/range.rs @@ -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 { OverlapsBegin(/* overlap */ uint), OverlapsEnd(/* overlap */ uint), diff --git a/src/servo-gfx/util/time.rs b/src/servo-gfx/util/time.rs index 1b440aa7cddc..3ee12b594014 100644 --- a/src/servo-gfx/util/time.rs +++ b/src/servo-gfx/util/time.rs @@ -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. use std::time::precise_time_ns; diff --git a/src/servo-gfx/util/url.rs b/src/servo-gfx/util/url.rs index bcf880be4800..e59ce197b828 100644 --- a/src/servo-gfx/util/url.rs +++ b/src/servo-gfx/util/url.rs @@ -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::Url; use core::hashmap::HashMap; diff --git a/src/servo-gfx/util/vec.rs b/src/servo-gfx/util/vec.rs index 86d0251bfdc5..fdbe80d15044 100644 --- a/src/servo-gfx/util/vec.rs +++ b/src/servo-gfx/util/vec.rs @@ -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}; pub trait BinarySearchMethods { diff --git a/src/servo/content/content_task.rs b/src/servo/content/content_task.rs index b0bd581520ef..c07f4c4b9077 100644 --- a/src/servo/content/content_task.rs +++ b/src/servo/content/content_task.rs @@ -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 tasks. diff --git a/src/servo/content/jsnames.rs b/src/servo/content/jsnames.rs index aad0e631cef4..2e34eaf0f366 100644 --- a/src/servo/content/jsnames.rs +++ b/src/servo/content/jsnames.rs @@ -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 = { }; \ No newline at end of file diff --git a/src/servo/css/matching.rs b/src/servo/css/matching.rs index a063020dabac..4739c4928a1c 100644 --- a/src/servo/css/matching.rs +++ b/src/servo/css/matching.rs @@ -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. use css::node_util::NodeUtil; diff --git a/src/servo/css/node_style.rs b/src/servo/css/node_style.rs index ca3f984435a6..128507a282da 100644 --- a/src/servo/css/node_style.rs +++ b/src/servo/css/node_style.rs @@ -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. use css::node_util::NodeUtil; diff --git a/src/servo/css/node_util.rs b/src/servo/css/node_util.rs index ffca3310a3cc..0dc15dc65180 100644 --- a/src/servo/css/node_util.rs +++ b/src/servo/css/node_util.rs @@ -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 newcss::complete::CompleteSelectResults; diff --git a/src/servo/css/node_void_ptr.rs b/src/servo/css/node_void_ptr.rs index 1eb4eb30722b..3c25e0091c5d 100644 --- a/src/servo/css/node_void_ptr.rs +++ b/src/servo/css/node_void_ptr.rs @@ -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 extern mod netsurfcss; diff --git a/src/servo/css/select.rs b/src/servo/css/select.rs index 8af724bdd637..71f5327cedb8 100644 --- a/src/servo/css/select.rs +++ b/src/servo/css/select.rs @@ -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 url_from_str = std::net::url::from_str; use core::cell::Cell; diff --git a/src/servo/css/select_handler.rs b/src/servo/css/select_handler.rs index 9afbcfb6dbe0..7dec3aae6544 100644 --- a/src/servo/css/select_handler.rs +++ b/src/servo/css/select_handler.rs @@ -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. /// diff --git a/src/servo/dom/bindings/clientrect.rs b/src/servo/dom/bindings/clientrect.rs index a727102dce45..90e81f03e9b9 100644 --- a/src/servo/dom/bindings/clientrect.rs +++ b/src/servo/dom/bindings/clientrect.rs @@ -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 dom::bindings::utils::{CacheableWrapper, WrapperCache, BindingObject, OpaqueBindingReference}; use dom::bindings::codegen::ClientRectBinding; diff --git a/src/servo/dom/bindings/clientrectlist.rs b/src/servo/dom/bindings/clientrectlist.rs index c5218516ff81..f4660b5ae444 100644 --- a/src/servo/dom/bindings/clientrectlist.rs +++ b/src/servo/dom/bindings/clientrectlist.rs @@ -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 dom::bindings::clientrect::{ClientRect, ClientRectImpl}; use dom::bindings::codegen::ClientRectListBinding; diff --git a/src/servo/dom/bindings/conversions.rs b/src/servo/dom/bindings/conversions.rs index d4c695da4b9c..0a2715e2af95 100644 --- a/src/servo/dom/bindings/conversions.rs +++ b/src/servo/dom/bindings/conversions.rs @@ -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::glue::bindgen::{RUST_INT_TO_JSVAL, RUST_JSVAL_TO_INT}; diff --git a/src/servo/dom/bindings/document.rs b/src/servo/dom/bindings/document.rs index 911802d2c102..17f35735f526 100644 --- a/src/servo/dom/bindings/document.rs +++ b/src/servo/dom/bindings/document.rs @@ -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::{JS_ARGV, JSPROP_ENUMERATE, JSPROP_SHARED, JSVAL_NULL, JS_THIS_OBJECT, JS_SET_RVAL, JSPROP_NATIVE_ACCESSORS}; diff --git a/src/servo/dom/bindings/element.rs b/src/servo/dom/bindings/element.rs index a735e9ae1bbe..207e98b29505 100644 --- a/src/servo/dom/bindings/element.rs +++ b/src/servo/dom/bindings/element.rs @@ -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 dom::bindings::utils::{domstring_to_jsval, WrapNewBindingObject}; use dom::bindings::utils::{str, CacheableWrapper, DOM_OBJECT_SLOT}; diff --git a/src/servo/dom/bindings/htmlcollection.rs b/src/servo/dom/bindings/htmlcollection.rs index cd39e4c4c27e..c8d110c8c1bc 100644 --- a/src/servo/dom/bindings/htmlcollection.rs +++ b/src/servo/dom/bindings/htmlcollection.rs @@ -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 dom::node::AbstractNode; use dom::bindings::codegen::HTMLCollectionBinding; diff --git a/src/servo/dom/bindings/node.rs b/src/servo/dom/bindings/node.rs index 27b3d8ea8282..90d70e724454 100644 --- a/src/servo/dom/bindings/node.rs +++ b/src/servo/dom/bindings/node.rs @@ -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::{DOM_OBJECT_SLOT}; use dom::node::{AbstractNode, Node, ElementNodeTypeId, TextNodeTypeId, CommentNodeTypeId}; diff --git a/src/servo/dom/bindings/proxyhandler.rs b/src/servo/dom/bindings/proxyhandler.rs index b5684baca813..c77e5ec952e1 100644 --- a/src/servo/dom/bindings/proxyhandler.rs +++ b/src/servo/dom/bindings/proxyhandler.rs @@ -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::bindgen::{JS_GetPropertyDescriptorById, JS_NewUCString, JS_malloc, JS_free}; use js::glue::bindgen::{RUST_JSVAL_IS_VOID, RUST_JSVAL_TO_OBJECT, GetProxyExtra}; diff --git a/src/servo/dom/bindings/utils.rs b/src/servo/dom/bindings/utils.rs index 11eabd1f8a47..0800a719166c 100644 --- a/src/servo/dom/bindings/utils.rs +++ b/src/servo/dom/bindings/utils.rs @@ -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::rust::Compartment; use js::{JSCLASS_HAS_RESERVED_SLOTS, JSPROP_ENUMERATE, JSVAL_NULL, diff --git a/src/servo/dom/bindings/window.rs b/src/servo/dom/bindings/window.rs index 4bcd9f490f2f..e764674a4c94 100644 --- a/src/servo/dom/bindings/window.rs +++ b/src/servo/dom/bindings/window.rs @@ -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. use dom::bindings::utils::{rust_box, squirrel_away, CacheableWrapper}; diff --git a/src/servo/dom/document.rs b/src/servo/dom/document.rs index d44d596ab9d5..16a178be0514 100644 --- a/src/servo/dom/document.rs +++ b/src/servo/dom/document.rs @@ -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::utils::{DOMString, WrapperCache, str}; use dom::node::AbstractNode; diff --git a/src/servo/dom/element.rs b/src/servo/dom/element.rs index 3884f200e1a7..feb631a234c5 100644 --- a/src/servo/dom/element.rs +++ b/src/servo/dom/element.rs @@ -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. // diff --git a/src/servo/dom/event.rs b/src/servo/dom/event.rs index 8f15f3cb90c9..83b1a115f80c 100644 --- a/src/servo/dom/event.rs +++ b/src/servo/dom/event.rs @@ -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 { ResizeEvent(uint, uint, comm::Chan<()>), ReflowEvent diff --git a/src/servo/dom/node.rs b/src/servo/dom/node.rs index 8894551708e1..e7e0d7466c08 100644 --- a/src/servo/dom/node.rs +++ b/src/servo/dom/node.rs @@ -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. // diff --git a/src/servo/dom/window.rs b/src/servo/dom/window.rs index 35df464edb37..2c90fa77c292 100644 --- a/src/servo/dom/window.rs +++ b/src/servo/dom/window.rs @@ -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 dom::bindings::utils::WrapperCache; use js::jsapi::JSVal; diff --git a/src/servo/engine.rs b/src/servo/engine.rs index 3ff803c229fc..5dd02f6d3101 100644 --- a/src/servo/engine.rs +++ b/src/servo/engine.rs @@ -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; use dom::event::Event; diff --git a/src/servo/html/cssparse.rs b/src/servo/html/cssparse.rs index a973f8224282..8149fc671d39 100644 --- a/src/servo/html/cssparse.rs +++ b/src/servo/html/cssparse.rs @@ -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 */ diff --git a/src/servo/html/hubbub_html_parser.rs b/src/servo/html/hubbub_html_parser.rs index 74035533dcb1..9b9660caf3bd 100644 --- a/src/servo/html/hubbub_html_parser.rs +++ b/src/servo/html/hubbub_html_parser.rs @@ -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::node::{AbstractNode, Comment, Doctype, Element, ElementNodeTypeId, Node, Text}; use html::cssparse::{InlineProvenance, StylesheetProvenance, UrlProvenance, spawn_css_parser}; diff --git a/src/servo/image.rs b/src/servo/image.rs index f01438dc3be9..d03b93b1a118 100644 --- a/src/servo/image.rs +++ b/src/servo/image.rs @@ -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 ./images/ without specifying the file they came out of imports. diff --git a/src/servo/layout/aux.rs b/src/servo/layout/aux.rs index 2893a8880646..b803a036bac2 100644 --- a/src/servo/layout/aux.rs +++ b/src/servo/layout/aux.rs @@ -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 */ diff --git a/src/servo/layout/block.rs b/src/servo/layout/block.rs index 6672faeced29..130cc4da6eef 100644 --- a/src/servo/layout/block.rs +++ b/src/servo/layout/block.rs @@ -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. use core::cell::Cell; diff --git a/src/servo/layout/box.rs b/src/servo/layout/box.rs index f9b9037f07bb..c71677673532 100644 --- a/src/servo/layout/box.rs +++ b/src/servo/layout/box.rs @@ -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. */ use css::node_style::StyledNode; diff --git a/src/servo/layout/box_builder.rs b/src/servo/layout/box_builder.rs index 25515e4887f3..c619ab397dfc 100644 --- a/src/servo/layout/box_builder.rs +++ b/src/servo/layout/box_builder.rs @@ -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. */ use dom::element::*; diff --git a/src/servo/layout/context.rs b/src/servo/layout/context.rs index e20ac9f893a7..dabcdefbf408 100644 --- a/src/servo/layout/context.rs +++ b/src/servo/layout/context.rs @@ -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 gfx::font_context::FontContext; use gfx::geometry::Au; diff --git a/src/servo/layout/debug.rs b/src/servo/layout/debug.rs index a1a2d00bef7d..cbee6b8cf260 100644 --- a/src/servo/layout/debug.rs +++ b/src/servo/layout/debug.rs @@ -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 { fn dump(@mut self); fn dump_indent(@mut self, ident: uint); diff --git a/src/servo/layout/display_list_builder.rs b/src/servo/layout/display_list_builder.rs index 37650a5fe557..e106347e3f76 100644 --- a/src/servo/layout/display_list_builder.rs +++ b/src/servo/layout/display_list_builder.rs @@ -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. /// diff --git a/src/servo/layout/flow.rs b/src/servo/layout/flow.rs index 7a2802487c60..8402dd3288b2 100644 --- a/src/servo/layout/flow.rs +++ b/src/servo/layout/flow.rs @@ -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::cell::Cell; use dom::node::AbstractNode; diff --git a/src/servo/layout/inline.rs b/src/servo/layout/inline.rs index 84e0dca66256..16506545dcec 100644 --- a/src/servo/layout/inline.rs +++ b/src/servo/layout/inline.rs @@ -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::cell::Cell; use dom::node::AbstractNode; diff --git a/src/servo/layout/layout_task.rs b/src/servo/layout/layout_task.rs index 18eb4a3d46ab..199d9a4615a5 100644 --- a/src/servo/layout/layout_task.rs +++ b/src/servo/layout/layout_task.rs @@ -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 /// rendered. diff --git a/src/servo/layout/root.rs b/src/servo/layout/root.rs index 2bb7d940dfbb..98e1e49565b8 100644 --- a/src/servo/layout/root.rs +++ b/src/servo/layout/root.rs @@ -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 geom::point::Point2D; use geom::rect::Rect; diff --git a/src/servo/layout/text.rs b/src/servo/layout/text.rs index 4f4157cf27b8..29098e8aa23e 100644 --- a/src/servo/layout/text.rs +++ b/src/servo/layout/text.rs @@ -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. */ use layout::box::{TextBox, RenderBox, RenderBoxData, UnscannedTextBox}; diff --git a/src/servo/layout/traverse.rs b/src/servo/layout/traverse.rs index 463aa320fd0e..5d8e323ae179 100644 --- a/src/servo/layout/traverse.rs +++ b/src/servo/layout/traverse.rs @@ -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}; /** Trait for running tree-based traversals over layout contexts */ diff --git a/src/servo/macros.rs b/src/servo/macros.rs index d9fbfb21de17..0b39c65c3cf9 100644 --- a/src/servo/macros.rs +++ b/src/servo/macros.rs @@ -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( { $x:expr } => { unsafe { let y <- *ptr::addr_of(*$x); y } } diff --git a/src/servo/net.rs b/src/servo/net.rs index 4022af1bea27..cd1c5df0f060 100644 --- a/src/servo/net.rs +++ b/src/servo/net.rs @@ -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; import uri::uri; diff --git a/src/servo/platform/base.rs b/src/servo/platform/base.rs index 8b137891791f..2daeb35126c4 100644 --- a/src/servo/platform/base.rs +++ b/src/servo/platform/base.rs @@ -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/. */ + diff --git a/src/servo/platform/osmain.rs b/src/servo/platform/osmain.rs index 5750ff0f6567..e00c2476870b 100644 --- a/src/servo/platform/osmain.rs +++ b/src/servo/platform/osmain.rs @@ -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 dom::event::Event; use platform::resize_rate_limiter::ResizeRateLimiter; diff --git a/src/servo/platform/resize_rate_limiter.rs b/src/servo/platform/resize_rate_limiter.rs index 98a84131a99f..a030b43aa36b 100644 --- a/src/servo/platform/resize_rate_limiter.rs +++ b/src/servo/platform/resize_rate_limiter.rs @@ -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 based on how fast content dispatches those events. It waits until each event is handled diff --git a/src/servo/servo.rc b/src/servo/servo.rc index 61d4c233a600..069129629989 100755 --- a/src/servo/servo.rc +++ b/src/servo/servo.rc @@ -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", vers = "0.1", uuid = "637ffc98-9058-471d-9de7-abfc49ef0549", diff --git a/src/servo/util/mod.rs b/src/servo/util/mod.rs index 526bdcdfca29..3023793d5f9b 100644 --- a/src/servo/util/mod.rs +++ b/src/servo/util/mod.rs @@ -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::time; diff --git a/src/servo/util/task.rs b/src/servo/util/task.rs index 61081c95a36f..bc36764a4644 100644 --- a/src/servo/util/task.rs +++ b/src/servo/util/task.rs @@ -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::comm::{Chan, Port}; use core::task; diff --git a/src/servo/util/tree.rs b/src/servo/util/tree.rs index c6cff90d9aed..2713d517c637 100644 --- a/src/servo/util/tree.rs +++ b/src/servo/util/tree.rs @@ -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. // // TODO: Use traits.