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 bec1d2ea160..0815cf439e0 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 e6da0096d9e..63cde441e50 100644 --- a/src/etc/licenseck.py +++ b/src/etc/licenseck.py @@ -50,9 +50,12 @@ license4 = """\ 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 b04194e30a9..07506da51b1 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 f00c40df892..44170e142a8 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 b7206bdf10a..8ba59299148 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 8763b9ee7a7..274b30a3212 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 49e13b4b531..0527b30a6b7 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 44586f7a0ab..136403b2261 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 bf8cdfb3620..9a8386e7f7a 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 884e142f5e5..31e26de928e 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 7b299c9b9ab..5617968e57c 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 6ab2668b1f6..57622ae36e0 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 234ffaeb00e..4bf47ecb0ce 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 98b5615bbaf..35d09e4900a 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 7bb140efbcd..f1803a7bbb4 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 ad6606de5fe..7f62d6156de 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 60bada116ee..8c5b948d505 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 1ad9a8fe459..bd6adce3d65 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 9ae03bdc06b..c54196536b1 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 897d202514b..254010b2c28 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 5dc5cbf6326..95084cdc848 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 b610bdb576c..ef47d2a2f10 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 10eaca28d0b..bb48bf3e98a 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 a36a8acc73b..d7d815c2252 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 cc5ba312c31..3d9825f342d 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 6e58028ea76..055a41a0ac8 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 c5a100ce9f2..fc7816d5f49 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 549ec714802..f5cbf9b1cef 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 e4c7aed156f..511afab04be 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 078c80804b3..92ef4225dec 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 c7c157a153a..bfaa5fa25a0 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 fb9d1d75481..ec1aea92e86 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 7baa4aa4bef..c997eac5b1d 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 148bc68512f..f1d4e95e658 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 7a91c5e128d..939fd4982c5 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 a0f8cda7f0a..cc57ad80585 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 992dc50283e..acf2b24e67d 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 b5f3d322931..217d2496a9e 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 694d8236e77..e6775b5f260 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 955163dbf9a..a74d59bcbc8 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 5fa45aff605..d6c46065ee7 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 c359533fab6..caf3f3d003e 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 1b440aa7cdd..3ee12b59401 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 bcf880be480..e59ce197b82 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 86d0251bfdc..fdbe80d1504 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 b0bd581520e..c07f4c4b907 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 aad0e631cef..2e34eaf0f36 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 a063020daba..4739c4928a1 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 ca3f984435a..128507a282d 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 ffca3310a3c..0dc15dc6518 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 1eb4eb30722..3c25e0091c5 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 8af724bdd63..71f5327cedb 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 9afbcfb6dbe..7dec3aae654 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 a727102dce4..90e81f03e9b 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 c5218516ff8..f4660b5ae44 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 d4c695da4b9..0a2715e2af9 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 911802d2c10..17f35735f52 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 a735e9ae1bb..207e98b2950 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 cd39e4c4c27..c8d110c8c1b 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 27b3d8ea828..90d70e72445 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 b5684baca81..c77e5ec952e 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 11eabd1f8a4..0800a719166 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 4bcd9f490f2..e764674a4c9 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 d44d596ab9d..16a178be051 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 3884f200e1a..feb631a234c 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 8f15f3cb90c..83b1a115f80 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 8894551708e..e7e0d7466c0 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 35df464edb3..2c90fa77c29 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 3ff803c229f..5dd02f6d310 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 a973f822428..8149fc671d3 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 74035533dcb..9b9660caf3b 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 f01438dc3be..d03b93b1a11 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 2893a888064..b803a036bac 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 6672faeced2..130cc4da6ee 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 f9b9037f07b..c7167767353 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 25515e4887f..c619ab397df 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 e20ac9f893a..dabcdefbf40 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 a1a2d00bef7..cbee6b8cf26 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 37650a5fe55..e106347e3f7 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 7a2802487c6..8402dd3288b 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 84e0dca6625..16506545dce 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 18eb4a3d46a..199d9a4615a 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 2bb7d940dfb..98e1e49565b 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 4f4157cf27b..29098e8aa23 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 463aa320fd0..5d8e323ae17 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 d9fbfb21de1..0b39c65c3cf 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 4022af1bea2..cd1c5df0f06 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 8b137891791..2daeb35126c 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 5750ff0f656..e00c2476870 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 98a84131a99..a030b43aa36 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 61d4c233a60..06912962998 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 526bdcdfca2..3023793d5f9 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 61081c95a36..bc36764a464 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 c6cff90d9ae..2713d517c63 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.