Gökberk Yaltıraklı
aa7a3919c4
Made binary files show an info message instead of garbled text.
2015-10-31 18:07:13 +03:00
Bobby Holley
79ac365a68
Move EventState to rust-selectors.
2015-10-30 21:02:35 -07:00
Bobby Holley
f7f27a8146
Hoist checked and indeterminate state into EventState.
...
This is necessary for those selectors to take advantage of restyle hints.
2015-10-30 21:01:50 -07:00
bors-servo
7512aa69c0
Auto merge of #8114 - nfallen:7695, r=eefriedman
...
Implement DOMStringMap::SupportedPropertyNames and NamedNodeMap::SupportedPropertyNames #7695
Here is a draft for issue #7695 with web platform tests.
Thanks for reviewing!
https://dom.spec.whatwg.org/#namednodemap
https://html.spec.whatwg.org/multipage/infrastructure.html#domstringmap
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8114 )
<!-- Reviewable:end -->
2015-10-31 08:04:08 +05:30
bors-servo
913ac56875
Auto merge of #8279 - frewsxcv:clippy-fixes, r=eefriedman
...
Fix some rust-clippy violations
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8279 )
<!-- Reviewable:end -->
2015-10-31 06:51:47 +05:30
Nova Fallen
73c4af626a
Implement DOMStringMap::SupportedPropertyNames and NamedNodeMap::SupportedPropertyNames
2015-10-30 21:13:29 -04:00
bors-servo
84bf368c3b
Auto merge of #8276 - mrobinson:fragment-ticks, r=mbrubeck
...
Snap fragment scroll points to pixel boundaries
These don't match hardware pixels, but work well enough when the device
pixel ratio is a whole number.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8276 )
<!-- Reviewable:end -->
2015-10-31 05:48:00 +05:30
bors-servo
2d0d9ca040
Auto merge of #8254 - connorimes:android-params-file, r=larsbergstrom
...
Read params from a file on Android
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8254 )
<!-- Reviewable:end -->
2015-10-31 04:47:22 +05:30
Corey Farwell
16fa9cabc9
Fix some rust-clippy violations
2015-10-30 18:41:22 -04:00
bors-servo
cff9a54569
Auto merge of #8257 - eefriedman:reorder-webfont-check, r=mbrubeck
...
Attempt to fix webfont-related intermittent test failures.
I'm not completely sure the race condition outlined in this patch is
actually the race condition causing failures... but it's a possibility.
(I plan to run this through try a couple of times to see if it actually helps.)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8257 )
<!-- Reviewable:end -->
2015-10-31 03:43:54 +05:30
Martin Robinson
04dc8ed201
Snap fragment scroll points to pixel boundaries
...
These don't match hardware pixels, but work well enough when the device
pixel ratio is a whole number.
2015-10-30 17:11:23 -04:00
Eli Friedman
4f866625cc
Attempt to fix webfont-related intermittent test failures.
...
I'm not completely sure the race condition outlined in this patch is
actually the race condition causing failures... but it seems reasonable.
2015-10-30 12:50:05 -07:00
Michael Wu
434a5f1d8b
Initialize dom struct fields in declaration order
2015-10-30 15:40:43 -04:00
Michael Wu
7e786fb8ac
Infer types when appropriate
2015-10-30 15:23:29 -04:00
Ms2ger
48c232f72b
Remove the pointless TextEncoder::encoding field.
2015-10-30 16:48:30 +01:00
Ms2ger
e8914cd829
Update URLSearchParams to use USVString and String.
...
This matches the specification.
2015-10-30 16:33:29 +01:00
Ms2ger
7ccc5ad7da
Support unions that contain USVStrings.
2015-10-30 16:24:04 +01:00
Connor Imes
5a2459748b
Read params from a file on Android
2015-10-30 10:02:45 -05:00
Ms2ger
a67eaa2d82
Avoid string copies in handle_find_{element,elements}_css.
2015-10-30 15:46:17 +01:00
Ms2ger
2f88264351
Use if let in ScriptTask::notify_devtools.
2015-10-30 15:45:48 +01:00
Ms2ger
b0841e007e
Avoid a Vec copy in SendParam::extract.
2015-10-30 15:45:25 +01:00
Corey Farwell
edc1493932
Use 'atom!' macro for known static strings
2015-10-30 08:30:13 -04: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
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
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
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