bors-servo
2bb34feb3e
Auto merge of #8728 - dzbarsky:reset_bitmpa, r=dzbarsky
...
Reset canvas state when changing bitmap dimensions
Ran http://mxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-canvas-element/initial.reset.2dstate.html?force=1#88 to confirm that this code is being executed, but the test still fails because the font isn't implemented and the expando doesn't get reset.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8728 )
<!-- Reviewable:end -->
2015-12-04 11:57:55 +05:30
bors-servo
2dbc314e2d
Auto merge of #8796 - cheba:zero-point, r=SimonSapin
...
Replaced ZERO_POINT with Point2D::zero()
This is a proposed in servo/servo#8792 clean up.
Fixes #8792 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8796 )
<!-- Reviewable:end -->
2015-12-04 11:09:59 +05:30
bors-servo
3c0cd5eb06
Auto merge of #7734 - nerith:headless, r=metajack
...
Allow `./mach build` to enable Servo's headless mode
As mentioned in #7512 and #7637 , the environment variable SERVO_HEADLESS
enables building the OSMesa version of Servo when it is set to 1.
Instead, this should be a command line option to mach's build command.
Fixes #7637 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7734 )
<!-- Reviewable:end -->
2015-12-04 09:49:05 +05:30
bors-servo
8fb3c46a03
Auto merge of #8814 - ReadmeCritic:master, r=Manishearth
...
Update README URLs based on HTTP redirects
Created with https://github.com/dkhamsing/frankenstein
Was | Now
--- | ---
https://github.com/mozilla/servo/wiki/Building-for-Android | https://github.com/servo/servo/wiki/Building-for-Android
Was | Now
--- | ---
http://servo.org/ | https://servo.org/
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8814 )
<!-- Reviewable:end -->
2015-12-04 08:36:17 +05:30
ReadmeCritic
472cd4cce1
Update README URLs based on HTTP redirects
2015-12-03 18:54:49 -08:00
bors-servo
261ce11297
Auto merge of #8810 - frewsxcv:webidl-spec-link, r=eefriedman
...
Fix broken WebIDL spec link
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8810 )
<!-- Reviewable:end -->
2015-12-04 07:15:46 +05:30
bors-servo
32b90cdb6f
Auto merge of #8800 - servo:warnings, r=metajack
...
Fix warnings
Fixing unused attributes warnings required updating serde_macros
which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30)
which required updating some other dependencies.
Fix #8709 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8800 )
<!-- Reviewable:end -->
2015-12-04 05:37:38 +05:30
Corey Farwell
47d8c879d9
Fix broken WebIDL spec link
2015-12-03 18:44:30 -05:00
bors-servo
68922e0ac2
Auto merge of #8797 - cheba:rect-contains, r=Manishearth
...
Replaced rect_contains_point with Rect.contains()
This is a proposed in servo/servo#8791 clean up.
Fixes #8791 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8797 )
<!-- Reviewable:end -->
2015-12-04 04:01:44 +05:30
bors-servo
bc62b5aadb
Auto merge of #8785 - mbrubeck:fixed-hit-test, r=pcwalton
...
Add slow path for hit testing of iframe behind positioned content layer
Fixes browser.html blocker #8759 . r? @pcwalton
This adds a slow path for cases where the compositor's layer-based hit testing is incorrect. If the script task discovers that a mouse event should have been dispatched to an iframe, it bounces the event back to the constellation to be forwarded to the correct pipeline.
This isn't terribly slow (on the slow path, it adds one extra round-trip message between script and constellation), but if we want to optimize this better we could instead replace the compositor's layer hit testing with display list hit testing in the paint task. This would be a more complicated change that I think we should save for a follow-up.
This only fixes mouse input for now. A basically-identical change will be needed for touch-screen input, whether we stick with this approach or switch to the paint task.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8785 )
<!-- Reviewable:end -->
2015-12-04 02:54:22 +05:30
bors-servo
5ee6fe120d
Auto merge of #8712 - simartin:issue_8462, r=ecoal95
...
Issue #8462 : Add support for BufferSubData, CompressedTexImage2D and CompressedSubTexImage2D and reenable individual webgl WPT tests
Fixes https://github.com/servo/servo/issues/8462
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8712 )
<!-- Reviewable:end -->
2015-12-04 01:07:14 +05:30
Alexander Mankuta
ee746e252c
Replaced ZERO_POINT with Point2D::zero()
2015-12-03 19:46:45 +02:00
bors-servo
18f74a3d69
Auto merge of #8293 - simartin:issue_8113, r=jdm
...
Issue #8113 : Support file, about and data schemes as form action.
Fix https://github.com/servo/servo/issues/8113 by supporting those schemes as form action and unit test the "about:blank" case
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8293 )
<!-- Reviewable:end -->
2015-12-03 22:48:46 +05:30
Matt Brubeck
9551363bfb
If a mouse event is targeting an iframe, forward it to the iframe's inner window
...
Fixes #8759 .
This adds a slow path for cases where the compositor's layer-based hit testing
is incorrect. To optimize for this case, we could instead replace the
layer hit testing with display-list hit testing done in the paint task.
2015-12-03 08:19:41 -08:00
Matt Brubeck
8c4fed42b0
Minor refactoring of mouse event types
...
* Move some types into the `msg` crate so they can be shared more.
* Use MouseEventType instead of duplicating it in other enums.
2015-12-03 08:19:40 -08:00
bors-servo
3995a7672d
Auto merge of #8795 - cheba:zero-rect, r=SimonSapin
...
Replace ZERO_RECT with Rect::zero()
This is a proposed in servo/servo#8792 clean up.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8795 )
<!-- Reviewable:end -->
2015-12-03 21:41:03 +05:30
Simon Sapin
b19cc7e44c
Fix warnings
...
Fixing unused attributes warnings required updating serde_macros
which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30)
which required updating some other dependencies.
2015-12-03 17:05:26 +01:00
bors-servo
db0a0ac9f6
Auto merge of #8793 - Ms2ger:test-ref, r=frewsxcv
...
Use wptrunner for some old-style reftests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8793 )
<!-- Reviewable:end -->
2015-12-03 20:34:39 +05:30
Alexander Mankuta
96a8b442b8
Replaced rect_contains_point with Rect.contains()
2015-12-03 16:15:34 +02:00
bors-servo
782ca399a4
Auto merge of #8794 - frewsxcv:rebase-jsanders, r=Manishearth
...
Fix broken env_logger documentation link in HACKING_QUICKSTART
Rebase of #8775
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8794 )
<!-- Reviewable:end -->
2015-12-03 19:30:55 +05:30
Alexander Mankuta
546d2f564f
Replaced ZERO_RECT with Rect::zero()
2015-12-03 15:39:30 +02:00
James Sanders
a94e52d814
Fix broken env_logger documentation link in HACKING_QUICKSTART
2015-12-03 08:33:14 -05:00
bors-servo
8ae008761f
Auto merge of #8787 - Jayflux:hotfix/8695, r=mbrubeck
...
now using external ref_slice instead of the std version fixed #8695
Fixes #8695 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8787 )
<!-- Reviewable:end -->
2015-12-03 16:10:24 +05:30
bors-servo
63762d2b52
Auto merge of #8786 - eefriedman:localname-atom, r=jdm
...
Remove unnecessary conversion to/from DOMString for localName.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8786 )
<!-- Reviewable:end -->
2015-12-03 15:05:22 +05:30
bors-servo
765ce074a3
Auto merge of #8784 - jdm:expose-css-errors-step2, r=jdm
...
Make log_css_error in parser.rs take a &ParserContext argument and ca…
…ll this method.
Rebase of #8472 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8784 )
<!-- Reviewable:end -->
2015-12-03 14:24:37 +05:30
bors-servo
c2bdae1ec3
Auto merge of #8781 - Ms2ger:test-ref, r=frewsxcv
...
Use wptrunner for some old-style reftests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8781 )
<!-- Reviewable:end -->
2015-12-03 13:30:50 +05:30
Jason Williams
1a8db9a07a
now using external ref_slice instead of the std version
2015-12-03 07:32:07 +00:00
bors-servo
8b95d7b8d8
Auto merge of #8757 - servo:skia, r=mbrubeck
...
Use skia and deps from crates.io.
This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687 .
Fix https://github.com/servo/skia/issues/70
This builds, but the at the moment causes a number of tidy errors for duplicated crates.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8757 )
<!-- Reviewable:end -->
2015-12-03 12:58:29 +05:30
bors-servo
6ec454b7f5
Auto merge of #8739 - jitendra29:finalMimeAndCharsetHelper, r=eefriedman
...
M1504: Implement final charset support for text_response method
Following changes have been made:
* Added final_mime_type and final_charset helper methods to return the appropriate final mime/charset values
* Modified the text_response method to use the final_charset instead of directly using the response charset
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8739 )
<!-- Reviewable:end -->
2015-12-03 12:27:19 +05:30
bors-servo
01b4deb9d1
Auto merge of #8693 - yanirs:websocket-close-unspecified-status, r=jdm
...
Implement unspecified websocket close code (fixes issue #8158 )
Fixes #8158 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8693 )
<!-- Reviewable:end -->
2015-12-03 11:56:18 +05:30
Brandon Fairchild
2342b1bc6f
Allow ./mach build-tests
to enable Servo's headless mode
...
This allows mach's build-tests command to use the option --headless
instead of checking for the value of SERVO_HEADLESS.
2015-12-03 00:39:33 -05:00
bors-servo
20df7fb7c8
Auto merge of #7988 - nox:unforgeable, r=jdm
...
Implement [Unforgeable]
This is mostly stolen from Gecko. As there, we define the unforgeable members
on an object stored in the slots of the prototype object. They are then copied
onto instance objects when they are instantiated. It should be noted that
proxy objects see their unforgeable memebers defined on their expando object.
Unforgeable attributes aren't properly inherited in codegen (in a similar
fashion as getters and setters as filed in #5875 ) and require to be redefined
in derived interfaces. Fortunately, there are currently no such interfaces.
No unforgeable members can be included into the TestBinding interfaces for good
measure because they are not compatible with setters.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7988 )
<!-- Reviewable:end -->
2015-12-03 11:03:05 +05:30
bors-servo
fc3e950052
Auto merge of #7323 - samfoo:input-maxlength, r=jdm
...
Adds support for input element's maxlength attr
This implements maxlength [as described by whatwg](https://html.spec.whatwg.org/multipage/forms.html#dom-input-maxlength ) for input elements.
Remaining work:
* WPT test - I have no idea how to write a WPT for simulating user input. Webdriver? Open to suggestions here.
* Support for textarea (should be trivial, probably worth filing another issue)
servo/servo#7320
servo/servo#7004
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7323 )
<!-- Reviewable:end -->
2015-12-03 10:28:24 +05:30
Brandon Fairchild
ff853e0d4a
Allow ./mach build
to enable Servo's headless mode
...
As mentioned in #7512 and #7637 , the environment variable SERVO_HEADLESS
enables building the OSMesa version of Servo when it is set to 1.
Instead, this should be a command line option to mach's build command.
Fixes #7637 .
2015-12-02 23:40:31 -05:00
Sam Gibson
4befd2cfb0
Fixes typo in test literal
2015-12-03 14:10:25 +11:00
Sam Gibson
d375ac271d
Fix manifest update
2015-12-03 14:01:01 +11:00
Sam Gibson
7ba43913c2
Uses assert_throws
instead of explicit try/catch
2015-12-03 14:01:00 +11:00
Sam Gibson
9668500e97
Makes setting negative values to maxLength throw an IndexSize exception
2015-12-03 14:00:59 +11:00
Sam Gibson
51ca659f8a
Add maxlength wpt to manifest
2015-12-03 14:00:58 +11:00
Sam Gibson
6d1624f9d0
Add additional WPT tests for maxlength parser set
2015-12-03 14:00:57 +11:00
Sam Gibson
85b99f8ba4
Fix typo in error message
2015-12-03 14:00:56 +11:00
Sam Gibson
32627a475a
Add maxlength manual test for input
2015-12-03 14:00:56 +11:00
Sam Gibson
ecc7035de6
Correct the default max length
2015-12-03 14:00:55 +11:00
Sam Gibson
5450d49f57
Removes failure expectations for input.maxLength WPT tests
2015-12-03 14:00:54 +11:00
Sam Gibson
2ba1750c40
Resolves long-running merge conflicts
2015-12-03 14:00:53 +11:00
Sam Gibson
419a26e619
Adds a test for set_content to ignore max_length
2015-12-03 14:00:53 +11:00
Sam Gibson
eecdfdf6c1
Makes int_getter macro, and uses -1 as default maxlength instead of maxint
2015-12-03 14:00:52 +11:00
Sam Gibson
d26c555e2a
Adds support for input element's maxlength attr
...
servo/servo#7320
servo/servo#7004
2015-12-03 14:00:51 +11:00
Jitendra Jain
af7c0837f4
Implement final_mime_type and final_charset helpers and use in text_response
2015-12-02 20:06:59 -05:00
Eli Friedman
e42dcb3712
Remove unnecessary conversion to/from DOMString for localName.
2015-12-02 13:42:45 -08:00