Bobby Holley
874545d8ca
Hoist more stuff from the concrete wrapper implementations into the trait definitions to allow sharing.
2015-12-23 12:05:25 -07:00
Bobby Holley
e55a56d757
Add an is_text_node to LayoutNode, so that we don't need to implement type_id for the style system.
2015-12-23 12:05:25 -07:00
Bobby Holley
6637626e02
Make DangerousThreadSafeLayoutNode public. :-(
...
I'm open to suggestions on how to do this better.
2015-12-23 12:05:25 -07:00
Martin Robinson
ce8e6fd3b9
More aggressively remove Fragment RestyleDamage
...
Now clean up damage on all fragments that belong to a Flow. This ensures
that damage does not re-propagate up to the parent Flow from the
Fragments. It also means that the flow tree dump should show a more
accurate picture of the state of the flow tree.
2015-12-23 17:01:22 +01:00
bors-servo
da8952b702
Auto merge of #9044 - ecoal95:offscreen-gl-up, r=jdm
...
Update offscreen_gl_context
cc: https://github.com/ecoal95/rust-offscreen-rendering-context/pull/46
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9044 )
<!-- Reviewable:end -->
2015-12-23 20:35:37 +05:30
bors-servo
68c4f290c7
Auto merge of #8938 - nerith:gfx, r=Ms2ger
...
Move LayerKind and ScrollPolicy enums to gfx_traits
Fixes #8836 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8938 )
<!-- Reviewable:end -->
2015-12-23 18:38:51 +05:30
bors-servo
dafdc856ac
Auto merge of #9030 - askobara:refactoring-add-htmlformelement-fire_event, r=Manishearth
...
Add helper method HTMLFormElement::fire_event
Fixes #8777
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9030 )
<!-- Reviewable:end -->
2015-12-22 22:38:19 +05:30
bors-servo
9306be60c2
Auto merge of #9048 - frewsxcv:precompute-iframe, r=Ms2ger
...
Precompute width & height attribute values on <iframe>
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9048 )
<!-- Reviewable:end -->
2015-12-22 21:58:38 +05:30
Corey Farwell
7a2b3535f9
Precompute width & height attribute values on <iframe>
2015-12-22 08:13:40 -08:00
bors-servo
48388ad036
Auto merge of #9040 - mrobinson:fix-comment, r=nox
...
Remove a fixed TODO
Issue #2009 has already been fixed and closed so we can remove this TODO
entirely.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9040 )
<!-- Reviewable:end -->
2015-12-22 20:40:13 +05:30
bors-servo
1ddcf9463a
Auto merge of #9041 - mrobinson:remove-euclid-workaround, r=jdm
...
Remove workaround for Rect::is_empty
Now that euclid is up-to-date this workaround is no longer necessary.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9041 )
<!-- Reviewable:end -->
2015-12-22 18:18:23 +05:30
Martin Robinson
ecc58786b7
Remove workaround for Rect::is_empty
...
Now that euclid is up-to-date this workaround is no longer necessary.
2015-12-22 10:30:52 +01:00
Arthur Skobara
d38771e270
Implement EventTarget::fire_simple_event and EventTarget::fire_simple_event_params
2015-12-22 13:47:57 +06:00
Emilio Cobos Álvarez
992a36234c
Update offscreen_gl_context
2015-12-22 04:33:03 +01:00
Martin Robinson
74a23c9af2
Remove a fixed TODO
...
Issue #2009 has already been fixed and closed so we can remove this TODO
entirely.
2015-12-21 18:37:54 +01:00
bors-servo
df087cc6cf
Auto merge of #9036 - KiChjang:document-charset, r=Ms2ger
...
Implement Document charset
Rebase of #7966 .
Fixes #7718 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9036 )
<!-- Reviewable:end -->
2015-12-21 22:05:02 +05:30
Abhishek Kumar
f889b1ccd7
Support responseCookies, responseContent, responseHeaders, requestCookies, getResponseHeaders,
...
getResponseContent, getRequestPostData, getRequestCookies, getResponseCookies, getEventTimings and
getSecurityInfo message for network devtools
Fixing Indentation
2015-12-21 10:28:40 -05:00
vectorijk
c559270b83
implement document charset
...
- pre-compute the adjusted encoding name
Fix build errors and update test expectations
2015-12-21 03:17:52 -08:00
Brandon Fairchild
637afecec9
Move LayerKind and ScrollPolicy enums to gfx_traits
...
This also moves LayerId and LayerProperties to gfx_traits.
Fixes #8836 .
2015-12-20 20:43:31 -05:00
bors-servo
a900196b3f
Auto merge of #9035 - Ms2ger:warnings, r=nox
...
Remove some unused imports.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9035 )
<!-- Reviewable:end -->
2015-12-21 05:58:59 +05:30
Ms2ger
0cc75b731c
Remove some unused imports.
2015-12-20 22:26:07 +01:00
bors-servo
9a4d82c314
Auto merge of #8863 - simartin:issue_8352, r=jdm
...
Issue #8352 : Dispatch mozbrowsershowmodalprompt event for alert().
Fixes https://github.com/servo/servo/issues/8352
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863 )
<!-- Reviewable:end -->
2015-12-21 02:28:32 +05:30
bors-servo
5b91daa923
Auto merge of #9025 - k-cross:master, r=nox
...
touchlist dom api #8225
Sorry for the wait, I just finished my finals.
Fixes #8225
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9025 )
<!-- Reviewable:end -->
2015-12-21 01:19:41 +05:30
Beomjin Kim
82f39d5a1c
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
...
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
(rebased)
2015-12-20 11:53:41 +09:00
k-cross
ae8d3f67c8
touchlist dom api #8225
2015-12-19 12:10:18 -08:00
bors-servo
95eabdb4db
Auto merge of #9022 - mskrzypkows:PaintMsg_refactoring, r=jdm
...
Move PaintMsg enum to gfx_traits #8844
re-PR of https://github.com/servo/servo/pull/9007 , because homu seems stuck
Fixes #8844 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9022 )
<!-- Reviewable:end -->
2015-12-20 01:34:26 +05:30
bors-servo
8c87477138
Auto merge of #9026 - Manishearth:attack-of-the-clones, r=Ms2ger
...
Remove clone in collect_text_contents
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9026 )
<!-- Reviewable:end -->
2015-12-20 00:14:02 +05:30
Beomjin Kim
2637d30c2a
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
...
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
resolving issue #8835 .
2015-12-20 00:31:33 +09:00
Simon Martin
0d910bb934
Issue #8352 : Dispatch mozbrowsershowmodalprompt event for alert().
2015-12-19 12:51:33 +01:00
bors-servo
f9141ef2db
Auto merge of #9019 - magopian:9002-use-url.join, r=SimonSapin
...
Use Url.join instead of UrlParser.base_url(...).parse (#9002 )
Fix issue #9002
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9019 )
<!-- Reviewable:end -->
2015-12-19 01:58:56 +05:30
Manish Goregaokar
ef5de267d9
Remove clone in collect_text_contents
2015-12-19 01:06:16 +05:30
bors-servo
21277b1fa0
Auto merge of #8959 - nox:domtokenlist-stringifier, r=Ms2ger
...
Fix DOMStringMap's stringifier behaviour according to the spec
It should just return its associated attribute's value, if any.
https://github.com/whatwg/dom/issues/105
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8959 )
<!-- Reviewable:end -->
2015-12-19 00:51:17 +05:30
bors-servo
6ba4ef22fa
Auto merge of #8882 - GuillaumeGomez:dom_quad, r=nox
...
Add DOMQuad element
cc @nox
Part of #8821
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8882 )
<!-- Reviewable:end -->
2015-12-18 23:37:12 +05:30
Guillaume Gomez
823e1b96c3
Add DOMQuad element
2015-12-18 17:37:10 +01:00
Anthony Ramine
e7a9f44df9
Fix DOMStringMap's stringifier behaviour according to the spec
...
It should just return its associated attribute's value, if any.
https://github.com/whatwg/dom/issues/105
2015-12-18 17:03:49 +01:00
Mathieu Agopian
11234f5370
Use Url.join instead of UrlParser.base_url(...).parse ( #9002 )
2015-12-18 17:02:41 +01:00
Jinwoo Ahn
2eac20861d
Fix a logical operator to match the spec
2015-12-18 21:25:04 +09:00
bors-servo
22e1ccae37
Auto merge of #9010 - Ms2ger:warnings, r=jdm
...
Silence warnings in htmlformelement.rs.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9010 )
<!-- Reviewable:end -->
2015-12-18 15:16:32 +05:30
bors-servo
6490d1e1c5
Auto merge of #9013 - antrik:debug-fontgroup, r=Ms2ger
...
Derive Debug for FontGroup and Homu is a bully
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9013 )
<!-- Reviewable:end -->
2015-12-18 14:23:15 +05:30
Maciej Skrzypkowski
3f7f323556
Move PaintMsg enum to gfx_traits #8844
2015-12-18 08:33:32 +01:00
Paul Rouget
f0b25e16f7
delay page freeze/thaw until it's created
2015-12-18 08:27:01 +01:00
Paul Rouget
e7449d541f
Freeze old pipeline in iframes
2015-12-18 08:26:57 +01:00
bors-servo
8dc4b8dcb9
Auto merge of #8993 - nox:small-codegen-slimming, r=Ms2ger
...
Slightly reduce the output of codegen
Interfaces which we know are never instantiated can generate less code.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8993 )
<!-- Reviewable:end -->
2015-12-18 06:35:15 +05:30
bors-servo
44588cdc98
Auto merge of #8967 - jinwooahn:comments, r=jdm
...
preflight_fetch steps comments out of date with spec #8941
Fix comments. Resolves #8941
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8967 )
<!-- Reviewable:end -->
2015-12-18 05:55:23 +05:30
bors-servo
63923bc7c9
Auto merge of #8825 - jmr0:master, r=jdm
...
adding initial support for websocket subprotocol negotation
Addresses #8177
I also noticed some bugs/gaps (and at least one of my TODO's can be an E-Easy)
cc @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8825 )
<!-- Reviewable:end -->
2015-12-18 05:23:15 +05:30
bors-servo
82e73e7a5f
Auto merge of #8723 - dzbarsky:origin_clean, r=dzbarsky
...
Add origin-clean flag tracking for canvas
The resulting failures are because we aren't doing origin-comparison correctly (I bet the image ends up with an empty hostname or something). We could probably hack around that if we care, but it should just go away when we get the origin checking right.
r? @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8723 )
<!-- Reviewable:end -->
2015-12-18 04:26:59 +05:30
David Zbarsky
b8e9064fe6
Add origin-clean flag tracking for canvas
2015-12-17 11:40:38 -08:00
Ms2ger
50ff54c37c
Silence warnings in htmlformelement.rs.
2015-12-17 16:03:22 +01:00
jmr0
7d0bede8ba
adding initial support for websocket subprotocol negotation
2015-12-17 09:17:15 -05:00
bors-servo
9570b51565
Auto merge of #8618 - paulrouget:reload, r=jdm
...
Browser API: implement iframe.reload()
fixes #8575
The implementation is naive, and doesn't support the `hardreload` parameter.
And for the test, I'm not sure how else I can test the reload.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8618 )
<!-- Reviewable:end -->
2015-12-17 19:45:44 +05:30