rohan.prinja
34b71e55f5
remove unneeded import + reexport InheritTypes from inheritance
2015-10-30 20:26:30 +09:00
rohan.prinja
45224028db
more refactoring
2015-10-30 20:26:29 +09:00
rohan.prinja
bb2536cd01
move Castable into dom::bindings::inheritance
2015-10-30 20:24:42 +09:00
bors-servo
6cc8186481
Auto merge of #8187 - Ms2ger:layoutnode-new, r=pcwalton
...
Introduce a Layoutnode::new function and use it.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8187 )
<!-- Reviewable:end -->
2015-10-30 13:43:17 +05:30
bors-servo
f9d79600c9
Auto merge of #8253 - connorimes:android-energy-profiling, r=mbrubeck
...
Heartbeats and energy profiling support for Android
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8253 )
<!-- Reviewable:end -->
2015-10-30 12:26:10 +05:30
bors-servo
a1939b0c6f
Auto merge of #8255 - frewsxcv:rm-font-face-attribute-field, r=eefriedman
...
Remove struct field for <font> 'face' attribute
Part of #7863
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8255 )
<!-- Reviewable:end -->
2015-10-30 11:29:29 +05:30
bors-servo
4ad6eba69b
Auto merge of #8252 - mbrubeck:android-unused, r=mbrubeck
...
Remove some unused code on Android
r? @larsbergstrom
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8252 )
<!-- Reviewable:end -->
2015-10-30 09:05:06 +05:30
bors-servo
851e7098c9
Auto merge of #8248 - Ms2ger:finite-zero, r=jdm
...
Remove the Zeroable definition for Finite<T>.
I have no idea why it was added, and it appears to be unused.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8248 )
<!-- Reviewable:end -->
2015-10-30 07:21:57 +05:30
bors-servo
00b60b9386
Auto merge of #8250 - wenderen:8246-remove-get-rooted, r=Ms2ger
...
remove get_rooted() and replace all references to it with references …
…to get()
for #8246
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8250 )
<!-- Reviewable:end -->
2015-10-30 06:37:44 +05:30
bors-servo
b6bcccb204
Auto merge of #8212 - Ms2ger:reflow-root, r=pcwalton
...
Remove SharedLayoutContext::reflow_root.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8212 )
<!-- Reviewable:end -->
2015-10-30 05:22:54 +05:30
Corey Farwell
c844c53ba5
Remove struct field for <font> 'face' attribute
...
Part of #7863
2015-10-29 18:49:44 -04:00
Matt Brubeck
4dd48a7080
Remove some unused code on Android
2015-10-29 14:32:41 -07:00
Connor Imes
bb7e5375a0
Heartbeats support for Android.
...
Add debug option to enable heartbeats for all profiler categories.
2015-10-29 13:22:49 -05:00
bors-servo
88f501c412
Auto merge of #5745 - servo:gc, r=Manishearth
...
Move the DOM memory management blog post into the tree.
This is a WIP, but I wanted to get eyes on it already.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5745 )
<!-- Reviewable:end -->
2015-10-29 21:58:22 +05:30
Ms2ger
4dbc99c7f3
Move the DOM memory management blog post into the tree.
2015-10-29 17:25:00 +01:00
Ms2ger
cce510900e
Use LayoutNode::new to avoid transmute calls in LayoutTask.
2015-10-29 16:55:27 +01:00
Ms2ger
1eb8900f48
Simplify LayoutDocument::root_node.
2015-10-29 16:54:20 +01:00
Ms2ger
ee0b0c81d1
Pass a LayoutNode to LayoutTask::dirty_all_nodes.
...
There is no point in passing a mutable reference to what is essentially
already a pointer.
2015-10-29 14:29:17 +01:00
Ms2ger
06f9a2bc34
Implement a LayoutNode::new function.
2015-10-29 14:24:15 +01:00
Ms2ger
244bd11f3f
Privatize LayoutNode::chain.
...
There is no reason for this field to be public.
2015-10-29 14:24:14 +01:00
rohan.prinja
4a4f041948
remove get_rooted() and replace all references to it with references to get()
2015-10-29 21:48:39 +09:00
bors-servo
430578355b
Auto merge of #8247 - Ms2ger:assert, r=jdm
...
Add thread assertions to js.rs.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8247 )
<!-- Reviewable:end -->
2015-10-29 17:08:50 +05:30
Ms2ger
04e32c7ab0
Remove the Zeroable definition for Finite<T>.
...
I have no idea why it was added, and it appears to be unused.
2015-10-29 12:21:51 +01:00
Ms2ger
85a57b5111
Add thread assertions to js.rs.
2015-10-29 11:56:17 +01:00
bors-servo
94ca87e7dd
Auto merge of #8244 - mrobinson:layer-size, r=pcwalton
...
Expand DisplayList layer bounds to whole pixels
Before passing these layers to the paint task, expand them to pixel
boundaries. This ensures that subpixel edges of the layer will not be
clipped away and helps prevent rounding issues with layer contents.
Fixes #8166 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8244 )
<!-- Reviewable:end -->
2015-10-29 06:55:10 +05:30
Martin Robinson
a7a58e47a0
Expand DisplayList layer bounds to whole pixels
...
Before passing these layers to the paint task, expand them to pixel
boundaries. This ensures that subpixel edges of the layer will not be
clipped away and helps prevent rounding issues with layer contents.
Fixes #8166 .
2015-10-28 18:11:59 -07:00
bors-servo
9501564e01
Auto merge of #8229 - mbrubeck:debug-log, r=larsbergstrom
...
Disable debug logging in release builds
This uses the new `release_max_level` feature added in rust-lang-nursery/log#58 to turn the `debug!` and `trace!` macros into no-ops in optimized builds.
r? @pcwalton (or anyone else who wants it)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8229 )
<!-- Reviewable:end -->
2015-10-29 03:07:01 +05:30
Matt Brubeck
ccecf3fc93
Disable debug logging in release builds
...
This uses the new `release_max_level` feature added in
rust-lang-nursery/log#58 to turn the `debug!` and `trace!` macros into no-ops
in optimized builds.
2015-10-28 14:22:57 -07:00
Connor Imes
965fbbd99f
Update energymon dependencies.
...
Ensure the energymon is enabled before trying to get refresh interval.
2015-10-28 15:58:14 -05:00
bors-servo
285e29c066
Auto merge of #8098 - bholley:dirty_from_layout, r=jdm
...
Track event state changes on Document and do the dirtying from layout
This is a first step in fixing #6942 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8098 )
<!-- Reviewable:end -->
2015-10-29 00:24:53 +05:30
bors-servo
30ce2a84c1
Auto merge of #8242 - Ms2ger:update-js, r=metajack
...
Update js.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8242 )
<!-- Reviewable:end -->
2015-10-28 23:35:40 +05:30
Ms2ger
2a2ab23dfb
Update js.
2015-10-28 18:02:10 +01:00
bors-servo
0d699a2b44
Auto merge of #8241 - Manishearth:euclid_up, r=mbrubeck
...
Update euclid to 0.3
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8241 )
<!-- Reviewable:end -->
2015-10-28 22:01:15 +05:30
Manish Goregaokar
184b2bacf3
Fix serde_macros
2015-10-28 21:53:15 +05:30
Manish Goregaokar
ce5586f74a
Update euclid to 0.3
2015-10-28 21:34:23 +05:30
bors-servo
3efa749976
Auto merge of #8226 - froydnj:gc-zeal, r=Ms2ger
...
unblock using JS_GC_ZEAL
I think these patches move the `JS_SetReservedSlot` call to the right place for #6057 . I'm not sure that the interface to `create_dom_global` is the best; passing a `JSVal` or a `*libc::c_void` seemed about equal, so I'd welcome feedback there.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8226 )
<!-- Reviewable:end -->
2015-10-28 17:24:36 +05:30
bors-servo
8cc6ce4b86
Auto merge of #8230 - jgraham:wptrunner_update, r=Ms2ger
...
Update to latest wptrunner.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8230 )
<!-- Reviewable:end -->
2015-10-28 16:28:13 +05:30
bors-servo
3951c577bf
Auto merge of #7963 - dagnir:issue-7774, r=eefriedman
...
Implement ask_for_reset for HTMLSelectElement.
Fixes #7774
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7963 )
<!-- Reviewable:end -->
2015-10-28 07:45:02 +05:30
Dongie Agnir
4849033297
Add fixes based on review.
...
- Use if let instead of match for Option
- Refactor common code into pick_if_selected_and_reset
2015-10-27 15:20:35 -10:00
bors-servo
7c9f4644f3
Auto merge of #8169 - ax3lst:master, r=eefriedman
...
Implement document.createEvent(TouchEvent)
This solves #8160
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8169 )
<!-- Reviewable:end -->
2015-10-28 05:55:03 +05:30
bors-servo
949a5b3a3e
Auto merge of #8231 - mbrubeck:plugin-doc, r=eefriedman
...
Fix misplaced doc comment in plugins/lib.rs
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8231 )
<!-- Reviewable:end -->
2015-10-28 05:12:36 +05:30
Matt Brubeck
64a2d9e793
Fix misplaced doc comment in plugins/lib.rs
2015-10-27 16:37:57 -07:00
James Graham
5998742e5d
Update to latest wptrunner.
2015-10-28 08:22:13 +09:00
Martin Robinson
f71f7ba783
Make executing synthesized pinch zoom more similar to zoom
...
Synthesized pinch zoom was removed in #8121 so that this combination of
mouse wheel and key press can be handled by the page. I mistakenly
re-implemented it #8215 . In order to preserve synthesized pinch zoom,
which is very useful for testing on desktop computers, have it work
similarly to page zoom except with the ALT key pressed.
2015-10-27 15:32:39 -07:00
bors-servo
bccede0370
Auto merge of #8145 - notriddle:master, r=pcwalton
...
Show overflow for #8118 .
Fixes list items.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8145 )
<!-- Reviewable:end -->
2015-10-28 03:57:07 +05:30
Nathan Froyd
c82b6ce843
move reserved slot setting for DOM globals
...
Moving this slot setting prior to initializing standard classes and
other initialization tasks means that we can effectively use JS_GC_ZEAL.
Fixes #6057 .
2015-10-27 18:08:35 -04:00
Michael Howell
2b6e897cd1
Show overflow for #8118 .
2015-10-27 15:07:59 -07:00
Dongie Agnir
92e008307f
Add fixes based on review.
...
- Whitespace and indentation issues
- call as_for_reset on option insert
- add link to 'pick' in standard
2015-10-27 11:52:55 -10:00
Nathan Froyd
3d39646c8e
reduce indentation in CodegenRust.py
...
We're going to wind up tacking on different pieces of code for the
global vs. non-global case once we move the JS_SetReservedSlot call into
create_dom_global. We might as well separate the indentation changes
into a separate commit.
2015-10-27 16:46:01 -04:00
bors-servo
381317f658
Auto merge of #8129 - craftytrickster:pos-fixed-list-item, r=glennw
...
Made block type pattern match less inclusive
Given the comments above the match statement, it seems that fixed-pos check should match only block elements in this case. Doing this change seems to partially resolve the issue where list items with `position:fixed;` styling are not displaying their bullet points. This change only resolves the issue for list items with `list-style-position: inside`, outside positioning is still not functioning correctly.
https://github.com/servo/servo/issues/8001#issuecomment-149781613
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8129 )
<!-- Reviewable:end -->
2015-10-28 01:44:48 +05:30