Commit graph

4860 commits

Author SHA1 Message Date
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
bors-servo
013010ddd5 auto merge of #1728 : june0cho/servo/whitespace_nbsp, r=SimonSapin
Fix #1727.
2014-02-21 08:29:03 -05:00
Junyoung Cho
ab589403ed Fix: whitespace is considered as spaces(U+0020), tabs(U+0009), and line breaks(U+000D U+000A) 2014-02-21 21:20:48 +09:00
Junyoung Cho
327e1e20a9 Prevent '&nbsp' from stripping as whitespace 2014-02-21 17:30:15 +09:00
Patrick Walton
509cc3cb3a Shut down the profiler in headless compositing mode 2014-02-20 22:16:40 -08:00
bors-servo
65191b0d63 auto merge of #1724 : SimonSapin/servo/pseudo-element-parsing, r=larsbergstrom 2014-02-20 11:08:01 -05:00
Simon Sapin
2b8abdd16c Fix #1723: Parsing of a compound selector made of only a pseudo-element 2014-02-20 13:13:38 +00:00
bors-servo
1f90716bc1 auto merge of #1664 : recrack/servo/object-element, r=jdm
Support for #1636

Now, we can see eyes in acid2.html :)
2014-02-20 04:28:55 -05:00
Youngmin Yoo
ed0c15a93a Add a reftest for object element 2014-02-20 17:31:21 +09:00
Youngmin Yoo
80cc71be8f Add object element test file 2014-02-20 17:31:21 +09:00
Youngmin Yoo
5ea247253e Support object element data. 2014-02-20 17:31:21 +09:00
Youngmin Yoo
13f9a66632 Impl Basic support for object element 2014-02-20 17:31:16 +09:00
bors-servo
ec4c31c214 auto merge of #1699 : kmcallister/servo/border-box, r=pcwalton
I think this is the only change necessary to make block and inline boxes consistent.  But I'm finding it hard to test due to other bugs (#1696, #1697, #1698).
2014-02-19 16:01:59 -05:00
Keegan McAllister
b7dea86283 Rename Box.position to border_box 2014-02-19 12:51:19 -08:00
Keegan McAllister
bad4f16c3a Add a simple iframe reftest (disabled for now)
Disabled due to iframe crashiness.
2014-02-19 12:51:19 -08:00
Keegan McAllister
0d8e2be92b Add a reftest for #1674 2014-02-19 12:51:19 -08:00
Keegan McAllister
e70bac19e6 reftest: Allow free-form comments 2014-02-19 12:49:49 -08:00
Keegan McAllister
f8f17cf475 Always use the border-box for Box.position.size
Fixes #1674.
2014-02-19 12:49:49 -08:00
Keegan McAllister
0523032afe box: Use macros to reduce code duplication 2014-02-19 12:49:48 -08:00
bors-servo
d10bbd5d47 auto merge of #1711 : SimonSapin/servo/background-image, r=pcwalton 2014-02-19 11:20:01 -05:00
Simon Sapin
330bab371b Add a test for the base URL of external stylesheets. 2014-02-19 10:53:37 +00:00
Simon Sapin
946e9f82da Reduce code duplication in CSS parsing by passing base_url everywhere. 2014-02-19 10:47:59 +00:00
bors-servo
dedecec0e3 auto merge of #1631 : recrack/servo/background-image, r=SimonSapin
for #777 #800

- support(http://www.w3.org/TR/CSS21/colors.html#background)
 - background: url(foo.png)
 - background: url(data:image/png;base64...)
 - background-image: url(foo.png)
 - background-image: url(data:image/png;base64...)

- not support(http://www.w3.org/TR/css3-background/)
2014-02-19 05:25:58 -05:00
Youngmin Yoo
7b56e75adb Support base_url in stylesheet 2014-02-19 17:23:50 +09:00
Youngmin Yoo
a12608d2e4 Add a reftest for background-image 2014-02-19 17:14:06 +09:00
Youngmin Yoo
49952241ad Add background test file 2014-02-19 17:14:06 +09:00
Youngmin Yoo
7eabcbb8fe Impl background-image support. 2014-02-19 17:14:00 +09:00
Lars Bergstrom
683c2fada1 De-@mut pipeline 2014-02-18 20:11:45 -06:00
Youngmin Yoo
3b55a5fca0 Add background-image property 2014-02-19 09:23:24 +09:00
bors-servo
20bbf6a859 auto merge of #1693 : lpy/servo/issue1692, r=pcwalton
see #1692
2014-02-18 16:17:07 -05:00
bors-servo
8b9411270c auto merge of #1706 : SimonSapin/servo/refactor-cascade, r=pcwalton
* Expand the apply() and apply_cached() templates. Their two invocations each were different enough that this improves readability IMO.
* Create computed::Context from inherited and cascaded values rather than computed value, as much as possible.
* Centralize this creation rather than making it per-property, making 'needed_for_context' not needed anymore.
* Pass a context to cascade_with_cached_declarations() rather than duplicate the creation code.

@pcwalton r? Does this hurt the optimization introduced in 0fa0940ce9?

This is mostly about nicer-looking code. The only thing that was wrong ([`apply_cached(priority)` instead of `apply_cached(needed_for_context)`](https://github.com/mozilla/servo/pull/1644#discussion_r9772133)) could be fixed with a much shorted diff.
2014-02-18 15:50:08 -05:00
bors-servo
01fcf3c877 auto merge of #1710 : jdm/servo/idmap-in-doc, r=Ms2ger
...ent.
2014-02-18 15:23:11 -05:00
Josh Matthews
70e8a5e90f Ensure id attributes on elements only affect elements present in a document. 2014-02-18 15:12:00 -05:00
bors-servo
edd7e32fdb auto merge of #1602 : pcwalton/servo/more-inlines, r=jdm
9% improvement in style recalc on the rainbow page.

r? @jdm
2014-02-18 14:08:12 -05:00
bors-servo
8f63dff8f8 auto merge of #1667 : brunoabinader/servo/dom-element-refs, r=jdm
This is a sub-task for #1660.
2014-02-18 13:35:16 -05:00
Simon Sapin
83510ebbff Refactor cascade() and fix cascade_with_cached_declarations()
* Expand the apply() and apply_cached() templates.
  Their two invocations each were different enough
  that this improves readability IMO.
* Create computed::Context from inherited and cascaded values
  rather than computed value, as much as possible.
* Centralize this creation rather than making it per-property,
  making 'needed_for_context' not needed anymore.
* Pass a context to cascade_with_cached_declarations() rather than
  duplicate the creation code.
2014-02-16 21:03:53 +00:00
bors-servo
85ef67ef14 auto merge of #1705 : lpy/servo/issue1704, r=Ms2ger
see #1704
2014-02-16 11:44:04 -05:00
lpy
cc77c29265 Change <em> and <strong> to be HTMLElement (fixes #1704) 2014-02-17 00:37:26 +08:00