aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* More progress in the &JSRef -> JSRef conversionCameron Zwarich2014-09-2066-815/+812
| | | | | Change all of the <Class>Methods traits to take `self` instead of `&self`.
* Move is_void() Element method together with the other struct methods,Adenilson Cavalcanti2014-09-203-19/+18
| | | | it becomes part of ElementHelpers.
* Share code between Navigator and WorkerNavigatorGilles Leblanc2014-09-206-32/+79
| | | | | | | Also shares code between Location and WorkerLocation. This has been done by introducing NavigatorInfo and UrlHelper. Fixes #3159
* Use Untraceable<T> to hold LayoutDataRef instead of manual Encodable ↵Tetsuharu OHZEKI2014-09-201-4/+4
| | | | implementation.
* Reintroduce Untraceable<T>.deref_mut() to make mem::replace() possible to ↵Tetsuharu OHZEKI2014-09-205-8/+14
| | | | | | | Untracebale<T> field. Some compile errors caused by the compiler's misreading comes back again :( We re-use `deref()`explicitly to hide these errors.
* First steps of &JSRef -> JSRef conversionCameron Zwarich2014-09-19123-951/+954
| | | | | | | | | Replace &JSRef with JSRef in the bulk of the generated code. This will remove a level of indirection throughout all DOM code. This patch doesn't change methods implemented on JSRef<T> to take `self` rather than `&self`, and it leaves a few other uses of &JSRef, but those changes can be made incrementally.
* Merge pull request #3253 from ChrisParis/TreeWalkerJosh Matthews2014-09-195-18/+592
|\ | | | | Implement TreeWalker
| * Implement TreeWalkerChris Paris2014-09-185-18/+592
| |
* | Merge pull request #3172 from jdm/devtoolsJosh Matthews2014-09-193-1/+80
|\ \ | | | | | | Dump initial prototype of devtools server into the build. Expect lies if...
| * | Retrieve some basic layout properties for nodes to make the box model ↵Josh Matthews2014-09-183-14/+22
| | | | | | | | | | | | somewhat useful.
| * | Enable real DOM inspector support.Josh Matthews2014-09-182-1/+72
| |/
* / Remove uses of &mut JSRefCameron Zwarich2014-09-182-14/+1
|/ | | | | Since everything with JSRef happens with interior mutability, it doesn't make any sense to use an &mut JSRef.
* Revert "script: Use atom comparison in more places, especially for ↵Josh Matthews2014-09-1813-150/+86
| | | | | | attributes." for persistent test failures. This reverts commit 874db261046d6155b1942efa106d2e0014295d6d.
* Merge pull request #3358 from jdm/thespicemustnotreflowJosh Matthews2014-09-172-9/+11
|\ | | | | Delay initiating layout operations for as long as possible.
| * Delay initiating layout operations for as long as possible.Josh Matthews2014-09-152-9/+11
| |
* | script: Use atom comparison in more places, especially for attributes.Patrick Walton2014-09-1713-86/+150
| | | | | | | | 75% improvement in style recalc for Guardians of the Galaxy.
* | Merge pull request #3387 from prasoon2211/base64_methods_for_workerJosh Matthews2014-09-173-70/+88
|\ \ | | | | | | Implement atob and btoa methods for worker
| * | Fix for issue #3238Prasoon Shukla2014-09-173-70/+88
| | | | | | | | | | | | | | | | | | Moved the Atob and Btoa methods ouside the impl for WorkerMethod trait and made them publicly accessible from WorkerGlobalScopeMethods via proxy methods.
* | | Merge pull request #3374 from Manishearth/lint_unrooted_jsmanagedManish Goregaokar2014-09-17127-25/+234
|\ \ \ | |/ / |/| | Add lint for ensuring proper rooting of JS<T>; r=jdm
| * | Use #[must_root] for HTMLElementsManish Goregaokar2014-09-1770-5/+138
| | |
| * | Make Reflector #[must_root], propagate to non-HTMLElementsManish Goregaokar2014-09-1740-12/+53
| | |
| * | Unwrap pointers and miscellany for unrooted_must_root checkManish Goregaokar2014-09-162-0/+3
| | |
| * | Add unrooted_must_root lint for usages of JS<T> in let/for bindingsManish Goregaokar2014-09-168-10/+14
| | |
| * | Add unrooted_must_root lint for enums and structs containing JS<T>, as well ↵Manish Goregaokar2014-09-1620-1/+29
| | | | | | | | | | | | | | | | | | | | | as functions with JS<T> in their parameter list For safe wrappers over JS<T> (eg Temporary<T>) use #[allow(unrooted_must_root)]. For all other types containing a #[must_root] value, annotate the type with #[must_root] to ensure that it is never used unrooted
* | | Merge pull request #3373 from ProgramFOX/issue3366Jack Moffitt2014-09-162-6/+0
|\ \ \ | | | | | | | | Removed unused BlobMethods and CommentMethods traits, fixes #3366
| * | | Removed unused BlobMethods and CommentMethods traits, fixes #3366ProgramFOX2014-09-162-6/+0
| | | |
* | | | Merge pull request #3352 from mbrubeck/link-styleMatt Brubeck2014-09-162-8/+62
|\ \ \ \ | | | | | | | | | | Move link rel=stylesheet fetching to layout task. r=jdm
| * | | | Move link rel=stylesheet fetching to layout taskMatt Brubeck2014-09-162-8/+62
| | | | | | | | | | | | | | | | | | | | Fixes #3346.
* | | | | Merge pull request #3357 from glennw/empty-iframe-srcJosh Matthews2014-09-161-3/+8
|\ \ \ \ \ | |/ / / / |/| | | | Handle src='' in an iframe element. Without this, infinitely creates iframes with the same url.
| * | | | Handle src='' in an iframe element. Without this, infinitely creates iframes ↵Glenn Watson2014-09-161-3/+8
| | |_|/ | |/| | | | | | | | | | with the same url.
* | | | Merge pull request #3212 from cgaebel/style-resolution-bloom-filterJack Moffitt2014-09-152-3/+9
|\ \ \ \ | |/ / / |/| | | Added a bloom filter to CSS selector matching.
| * | | Added a bloom filter to CSS selector matching.Clark Gaebel2014-09-152-3/+9
| | | |
* | | | Merge pull request #3347 from jdm/blankiframeJack Moffitt2014-09-151-23/+23
|\ \ \ \ | |/ / / |/| | | Make all iframes attached to a document default to about:blank.
| * | | Make all iframes attached to a document default to about:blank.Josh Matthews2014-09-151-23/+23
| | |/ | |/|
* / | Handle iframe.src with a javascript protocol URL.Jack Moffitt2014-09-151-2/+23
|/ / | | | | | | | | This change prevents us from crashing on Amazon and other pages with iframe.src="javascript:foo".
* | Remove obsolete FIXME comment.Ms2ger2014-09-141-1/+0
| |
* | Stop messing with the case of the attribute name in ↵Ms2ger2014-09-131-8/+9
|/ | | | | | | AttributeHandlers::get_attribute. This fixes a bug where GetAttributeNS would incorrectly match lower-case attributes when called with an upper-case argument.
* Make use of the list of Atoms in ClassSelectorGilles Leblanc2014-09-112-0/+26
| | | | | | | Make use of the list of Atoms in the class attribute selector (ClassSelector) in selector_matching. Fixes #3111
* Move Attr::local_name() to AttrHelpers/AttrHelpersForLayout.Tetsuharu OHZEKI2014-09-112-6/+12
|
* Move Attr helper methods to AttrHelpers trait to avoid to touch them from ↵Tetsuharu OHZEKI2014-09-117-34/+43
| | | | layout task.
* Cargoify servoJack Moffitt2014-09-08363-0/+51485