Commit graph

3647 commits

Author SHA1 Message Date
Ms2ger
938f6baf9e Handle removing the src attribute from an img element (fixes #1469). 2014-02-25 19:33:49 +01:00
Ms2ger
9faf2c89e4 Pass the attribute value to the update_image function. 2014-02-25 19:17:58 +01:00
Ms2ger
e834e532c5 Fetch the image cache inside the update_image function. 2014-02-25 19:12:34 +01:00
Ms2ger
2639e36c78 Remove the image loading workaround from the parser. 2014-02-25 19:04:47 +01:00
bors-servo
3b9ff728fe auto merge of #1750 : Ms2ger/servo/cleanup-Bindings.conf, r=jdm 2014-02-25 09:52:33 -05:00
bors-servo
2ee3024447 auto merge of #1747 : Ms2ger/servo/duplicated-code, r=jdm 2014-02-25 09:22:38 -05:00
bors-servo
ee19709bf9 auto merge of #1746 : Ms2ger/servo/IDL-debris, r=jdm 2014-02-25 08:55:41 -05:00
Ms2ger
1c49319173 Remove support for some more obsolete configurations. 2014-02-25 14:41:17 +01:00
Ms2ger
3c7f9832f0 Remove support for workers-specific codegen. 2014-02-25 14:28:27 +01:00
bors-servo
fbd4673bdb auto merge of #1740 : Ms2ger/servo/set-title-match, r=jdm 2014-02-25 08:25:41 -05:00
Ms2ger
c96c7bab12 Remove support for some more obsolete configurations. 2014-02-25 13:45:58 +01:00
Ms2ger
8360aa24d6 Remove support for some obsolete configurations. 2014-02-25 13:30:36 +01:00
Ms2ger
8429df46cc Remove dead code from Bindings.conf. 2014-02-25 13:19:28 +01:00
Ms2ger
09a8df8a55 Remove duplicated block of code. 2014-02-25 12:45:01 +01:00
Ms2ger
546a506149 Remove Gecko-specific and other commented-out code in IDL. 2014-02-25 12:41:11 +01:00
Ms2ger
2cbf7f4c7a Rewrite Document::SetTitle to use a match. 2014-02-25 09:34:29 +01:00
bors-servo
da16e54243 auto merge of #1700 : pcwalton/servo/deleafset, r=kmcallister
cc @pradeep90 — This removes leaf sets and should be enough to get you started.

This series of patches combines various layout passes to eliminate the overhead involved with bottom-up passes. It also makes assign-widths and flow construction run in parallel. No raw layout code was touched (except in trivial ways); rather this just changes the way methods are invoked. So the overall level of code cleanliness should remain the same. In fact, this is a (slight) net loss in LOC, and should be an improvement in safety due to not having to ensure that the nodes in the leaf sets stay alive!

This was quite a nice speedup; we're now 38% faster than Blink sequentially for style recalc on the rainbow page and 2.56x faster with 4 cores. (The relatively low speedup is because the LRU cache hits perfectly on that page sequentially.)

There is a data race somewhere in the unsafe code I added, so *do not merge yet*.
2014-02-25 00:04:32 -05:00
Patrick Walton
f699ca975f layout: Create a font context in sequential mode 2014-02-24 18:12:44 -08:00
Patrick Walton
282bd1d031 layout: Construct flows in parallel, without a leaf set 2014-02-24 18:12:44 -08:00
Patrick Walton
3b363d4e5d layout: Make ParallelPreorderFlowTraversal more generic 2014-02-24 18:06:24 -08:00
Patrick Walton
2cec5c6c5e layout: Combine assign-widths and assign-heights traversals.
15% layout speedup on mobile Wikipedia.
2014-02-24 18:06:24 -08:00
Patrick Walton
9479a7dcac layout: Run assign-widths in parallel.
5% layout speedup on mobile Wikipedia.
2014-02-24 18:06:24 -08:00
bors-servo
df993fdaf3 auto merge of #1689 : jdm/servo/unions, r=kmcallister
Seven hours on a train without internet will do this to you. Fixes #541.
2014-02-24 20:01:39 -05:00
bors-servo
998710d907 auto merge of #1738 : saneyuki/servo/opt, r=kmcallister
I think gfx/opts.rs should be placed to more general place.
2014-02-24 17:43:41 -05:00
Josh Matthews
232ca59708 Address review comments. Fix union conversion result mistakes introduced in refactoring. 2014-02-24 17:20:37 -05:00
Josh Matthews
02d2ec5ccd Make JSVal conversions actually fallible. 2014-02-24 17:18:47 -05:00
bors-servo
22760b6665 auto merge of #1739 : Ms2ger/servo/document-cleanup, r=jdm
The specs currently have only Document; this may well change, but the split won't be along the lines we've implemented right now. In the meantime, this simplifies our code quite a bit.
2014-02-24 17:13:46 -05:00
Tetsuharu OHZEKI
63cab5c72c Move from gfx::opts to servo_util::opts. 2014-02-25 07:07:54 +09:00
Ms2ger
870ccd95d2 Remove DocumentTypeId. 2014-02-24 22:35:28 +01:00
Ms2ger
5ede84fa46 Remove document::DocumentType (fixes #1730). 2014-02-24 22:28:27 +01:00
Ms2ger
e2617a6396 Remove HTMLDocument. 2014-02-24 22:23:11 +01:00
Ms2ger
7190feb5e3 Move HTMLDocument members to Document. 2014-02-24 22:17:33 +01:00
Ms2ger
2c8107e811 Remove methods from IDL that don't do anything useful. 2014-02-24 22:12:04 +01:00
Josh Matthews
4cdb4df70c Remove commented bits that aren't necessary. 2014-02-24 15:56:38 -05:00
Josh Matthews
9f05f70754 Clean up TrySetTo interface to avoid mutable outrefs. 2014-02-24 15:56:38 -05:00
Josh Matthews
d590a327bd Implement WebIDL union support. 2014-02-24 15:56:38 -05:00
Josh Matthews
d0bfdbf150 Initial unmodified dump of Gecko's union codegen. 2014-02-24 15:56:38 -05:00
bors-servo
ffcf3b2905 auto merge of #1591 : jdm/servo/jsmanaged, r=Ms2ger 2014-02-24 15:19:51 -05:00
Josh Matthews
625325434b Implement JSManaged for DOM objects. 2014-02-24 15:16:42 -05:00
bors-servo
951672e8d0 auto merge of #1735 : tgkokk/servo/python-write-bytecode, r=kmcallister
Forgot to actually claim #922. I hope no one is working on it.

I removed `PYTHONDONTWRITEBYTECODE=1` from every relevant file and I added code for removing `*.pyc` files in `clean-script` in `mk/clean.mk`. You might want to move the main logic into a function like `REMOVE_PYC_FILES`, since the files will exist eventually in other trees under `/src`. I used `find` in order to find all `*.pyc` files, since they might be in other subdirectories.

This is my first PR, so feel free to give me any feedback you might think is necessary.
2014-02-24 14:13:52 -05:00
tgkokk
cd36b7e0f6 Fix #922: Bindings generator generates .pyc files 2014-02-24 21:02:05 +02:00
Sankha Narayan Guria
47e6e6ec8f Be more explicit in casts of generated bindings 2014-02-23 03:03:48 +05:30
bors-servo
061269f963 auto merge of #1709 : sankha93/servo/issue221, r=larsbergstrom
This fixes #221.

I used the `BaseDisplayItem` class to define rectangle in which the line will be drawn. The width of the rectangle will be used as the thickness of the line segment.
2014-02-22 09:46:50 -05:00
Sankha Narayan Guria
4c18428d19 Create a Line DisplayItem 2014-02-22 19:02:01 +05:30
bors-servo
06ec7bad89 auto merge of #1729 : Ms2ger/servo/clear-document-idl, r=jdm
I don't see a good reason to keep those around for now
2014-02-22 07:34:53 -05:00
Ms2ger
b745469581 Remove commented-out parts of Document.webidl and HTMLDocument.webidl. 2014-02-22 13:24:19 +01:00
bors-servo
006237fed3 auto merge of #1712 : larsbergstrom/servo/more_atmuts, r=larsbergstrom,metajack
These commits remove @mut from the rest of Servo except for the script crate.

They rely on the hack `Rc` type exported from rust-layers, which will be removed once that same version lands in our Rust upgrade, but is required for now because otherwise I'd have to make all of these structures either `Send` or `Freeze`.

r? @metajack or @kmcallister
2014-02-21 19:46:54 -05:00
Lars Bergstrom
3da930964f Update rust-layers submodule 2014-02-21 18:42:48 -06:00
Lars Bergstrom
347bbd2883 De-@mut the FrameTree. 2014-02-21 18:42:40 -06:00
bors-servo
c140b33f0b auto merge of #1726 : pcwalton/servo/shut-down-profiler, r=kmcallister
This fixes a hang in content tests in my deleafset branch. No idea why it worked before though…

This just replicates the code in non-headless mode over to the headless mode.

r? @kmcallister
2014-02-21 14:14:26 -05:00