aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* auto merge of #2129 : lpy/servo/issue2116, r=jdmbors-servo2014-04-175-13/+92
|\ | | | | | | | | | | see #2116 I add an `is_interval` field, so that when the `TimerData` is passed by `SetInterval`, we will not delete it from `active_timers`. Also I think maybe we can extract the code in `ClearTimeout` and `ClearInterval` into another method to avoid duplicate.
| * Implement Window.set/clearInterval.(fixes #2116)lpy2014-04-185-13/+92
| |
* | auto merge of #2146 : metajack/servo/bye-bye-nss, r=jdmbors-servo2014-04-172-0/+0
|\ \ | | | | | | | | | | | | These were not being used and are responsible for a large amount of work and problems.
| * | Remove NSS and NSPR from the build.Jack Moffitt2014-04-172-0/+0
| | | | | | | | | | | | | | | These were not being used and are responsible for a large amount of work and problems.
* | | auto merge of #2145 : SimonSapin/servo/to_ascii_lower, r=metajackbors-servo2014-04-171-51/+40
|\ \ \ | |/ / |/| | | | | | | | | | | This reverts [some changes made during the 2014-03-04 Rust upgrade](https://github.com/mozilla/servo/commit/bbac8aa5c3d95e70151b824ca3443f0fb4d9b5a5#diff-d084c1d37003c83f26aa4dac0e8d9e6bL221). @larsberg, what was the reason for preferring the unsafe `.to_ascii_nocheck()`? r? @larsberg
| * | Use to_ascii_lower() and eq_ignore_ascii_case() instead of unsafe code.Simon Sapin2014-04-171-51/+40
| | |
* | | Ensure that optional primitive arguments aren't treated as nullable.Ms2ger2014-04-171-7/+9
|/ / | | | | | | | | | | | | | | | | | | By forgetting the Some(), we caused type inference to convert to Option<T> for optional non-nullable primitive arguments, and to Option<Option<T>> for optional nullable primitive arguments (essentially the same thing). This change brings the primitive codegen in line with the DOMString codegen. Using distinct types for optionality and nullability would have prevented this issue.
* | auto merge of #2135 : mbrubeck/servo/refcell-get, r=larsbergstrombors-servo2014-04-163-10/+7
|\ \ | | | | | | | | | | | | | | | It's going away in the next Rust upgrade (mozilla/rust#13301). r? @larsbergstrom We'll need to do the same in rust-layers.
| * | Stop using deprecated RefCell<T>::getMatt Brubeck2014-04-163-10/+7
| | | | | | | | | | | | It's going away in the next Rust upgrade.
* | | Stop cloning FrameTreesMatt Brubeck2014-04-161-25/+18
|/ / | | | | | | | | This fixes an issue where a ChildFrameTree is inserted into a clone of its parent, rather than its "real" parent, as noted in #2124.
* | auto merge of #2102 : jdm/servo/warnings, r=metajackbors-servo2014-04-1614-25/+27
|\ \
| * | Fix some private type in public signature warnings.Josh Matthews2014-04-1614-25/+27
| | |
* | | auto merge of #2097 : SimonSapin/servo/pseudo-cleanup, r=pcwaltonbors-servo2014-04-163-33/+19
|\ \ \
| * | | fixup! Rename ElementType to PseudoElementType, to avoid confusion with ↵Simon Sapin2014-04-141-1/+1
| | | | | | | | | | | | | | | | ElementTypeId.
| * | | fixup! Merge new_with_pseudo_without_self() and new_with_pseudo() into ↵Simon Sapin2014-04-141-1/+1
| | | | | | | | | | | | | | | | with_pseudo()
| * | | Merge new_with_pseudo_without_self() and new_with_pseudo() into with_pseudo()Simon Sapin2014-04-141-14/+7
| | | |
| * | | Rename ElementType to PseudoElementType, to avoid confusion with ElementTypeId.Simon Sapin2014-04-143-12/+12
| | | |
| * | | Use #[deriving(Clone)] for ThreadSafeLayoutNodeSimon Sapin2014-04-141-9/+2
| | | |
* | | | De-RefCell FrameTree::pipelineMatt Brubeck2014-04-161-34/+31
| | | |
* | | | Privatize some Constellation internalsMatt Brubeck2014-04-161-17/+17
| | | |
* | | | auto merge of #2130 : mbrubeck/servo/frametree-copy-fix, r=larsbergstrombors-servo2014-04-161-38/+38
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | We are calling `get` when we should call `borrow` or `borrow_mut`. This is causing bugs with iframes because we append the child frame to a copy of the parent's `children` vector rather than the original. r? @larsbergstrom
| * | | | Remove unintentional copies due to RefCell<T>::getMatt Brubeck2014-04-161-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are calling `get` when we should call `borrow` or `borrow_mut`. This is causing bugs with iframes because we append to a copy of the `children` vector rather than the original.
* | | | | Remove unwrap_object.Ms2ger2014-04-162-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no good reason to have both unwrap_object and unwrap_jsmanaged. Removing unwrap_object simplifies the codegen and makes further simplifications easier.
* | | | | auto merge of #2112 : Ms2ger/servo/IDLInterface-JS, r=jdmbors-servo2014-04-163-7/+55
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Implement FromJSValConvertible for JS<T>.Ms2ger2014-04-153-7/+55
| | | | |
* | | | | auto merge of #2119 : pcwalton/servo/rm-unused-code, r=pcwaltonbors-servo2014-04-151-72/+0
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | trivial
| * | | | box_: Remove unused code that resurfaced with the Rust upgradePatrick Walton2014-04-151-72/+0
| |/ / /
* | | | auto merge of #2054 : sankha93/servo/imageattr, r=jdmbors-servo2014-04-153-52/+61
|\ \ \ \
| * | | | HTMLImageElement attribute getters and settersSankha Narayan Guria2014-04-083-52/+61
| | | | |
* | | | | auto merge of #2114 : Ms2ger/servo/unused-obj-local-arg, r=jdmbors-servo2014-04-151-6/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | This removes the local variable and prefixes the argument with an underscore. Neither is used right now.
| * | | | | Remove unused variable 'obj' from binding functions.Ms2ger2014-04-151-6/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | This removes the local variable and prefixes the argument with an underscore. Neither is used right now.
* / | | | Remove the return value from DefineDOMInterface.Ms2ger2014-04-151-3/+3
|/ / / / | | | | | | | | | | | | | | | | This moves the assertion from its only caller into the function itself, to clarify that we don't intent to deal with any failure here.
* | | | Move child_inserted into VirtualMethods.Matt Brubeck2014-04-143-16/+34
| | | | | | | | | | | | | | | | Follow-up from #1984.
* | | | Move inline stylesheet parsing out of HTML parser.Matt Brubeck2014-04-148-46/+83
| |/ / |/| | | | | | | | | | | | | | | | | Instead, use shared code to parse stylesheet content when it is inserted, whether during parsing or dynamically by script. Based on work by sanools in #1350.
* | | auto merge of #2098 : Manishearth/servo/ref-noteq, r=metajackbors-servo2014-04-123-0/+17
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | See #2090 One reftest compares a green image to a white div. The other has green text being compared with normal text. If necessary, I can add some absolute positioning ones.
| * | Add the second reftest (#2090)Manish Goregaokar2014-04-121-0/+1
| | |
| * | A couple of != reftests (#2090)Manish Goregaokar2014-04-123-0/+16
| | |
* | | auto merge of #2094 : Manishearth/servo/id-efficiency, r=Ms2gerbors-servo2014-04-111-12/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | This improves the code written for #1822 to use a single linear traversal. The current code uses a binary search with `CompareDocumentPosition()` for comparing element position, however this method internally calls `traverse_preorder()` (i.e. a linear traversal) so calling this on every pass is quite inefficient.
| * | | Make register_named_element more efficientManish Goregaokar2014-04-111-12/+14
| |/ /
* | | auto merge of #2087 : Ms2ger/servo/vtable2, r=jdmbors-servo2014-04-119-140/+266
|\ \ \ | | | | | | | | | | | | | | | | | | | | Fixes #1527. Does *not* include the code for #1528. (Originally by @jdm in #1688 and #1866.)
| * | | Remove the IElement trait.Ms2ger2014-04-101-29/+14
| | | |
| * | | Add overridable tree binding/unbinding behaviour.Josh Matthews2014-04-103-10/+39
| | | |
| * | | Integrate Element's after_set/remove behaviour into the virtual method ↵Josh Matthews2014-04-101-50/+54
| | | | | | | | | | | | | | | | hierarchy.
| * | | Add support for trait-based virtual methods on Nodes, and use it for ↵Josh Matthews2014-04-109-65/+173
| | | | | | | | | | | | | | | | before_remove_attr and after_set_attr.
| * | | Rename before_remove_attr and after_set_attr to allow reusing those names in ↵Ms2ger2014-04-091-7/+7
| |/ / | | | | | | | | | the next commit.
* | | auto merge of #2071 : hyunjunekim/servo/try, r=larsbergstrombors-servo2014-04-115-0/+66
|\ \ \ | | | | | | | | | | | | If <span> element has pseudo style, draw pseudo element.
| * | | Add a reftest for the pseudo elementhyunjunekim2014-04-124-0/+63
| | | |
| * | | inline pseudo elementhyunjunekim2014-04-091-0/+3
| | | |
* | | | auto merge of #2096 : larsbergstrom/servo/fix_fontconfig, r=jdmbors-servo2014-04-111-0/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Please don't r+ until https://github.com/mozilla-servo/rust-fontconfig/pull/12 is merged. r? @SimonSapin @mbrubeck or whomever.
| * | | | Update fontconfig submodule version to fix linker order bugLars Bergstrom2014-04-111-0/+0
| | | | |