Commit graph

23113 commits

Author SHA1 Message Date
mrnayak
3d9e44a8c4 Handle crossorigin in link and refactor crossorigin handling
Implemented Step three and handled step four of obtain the resource part
of 4.2.4 The link element.
Link to spec : https://html.spec.whatwg.org/multipage/semantics.html#concept-link-obtain

Refactored crossOrigin handling in HTMLScriptElement, HTMLImageElement
2017-01-13 23:35:00 +05:30
Permutator
686d2f8509
Don't use rposition() and unwrap() to find parent info 2017-01-13 09:13:25 -08:00
Permutator
5ef7a0a4d8
Don't store the offset parent's dimensions 2017-01-13 09:13:25 -08:00
Permutator
290ebab87e
Moved and adjusted offset_properties_inline test 2017-01-13 09:13:24 -08:00
Permutator
5be187998f
"above the root node" -> "below the root node" 2017-01-13 09:13:24 -08:00
Permutator
b75dcc0f88
Made assertions more helpful 2017-01-13 09:13:24 -08:00
Permutator
defa7d99a6
Actually, node_position probably won't be needed later.
This is why you shouldn't make assumptions about what you'll need later!
2017-01-13 09:13:23 -08:00
Permutator
4825169fb0
Split 123-character line 2017-01-13 09:13:23 -08:00
Permutator
db5da15e79
Updated expectations for failing tests that were passing erroneously 2017-01-13 09:13:23 -08:00
Permutator
923ecba91a
Updated expectations for passing tests 2017-01-13 09:13:22 -08:00
Permutator
699fc4b216
Use InlineFragmentNodeFlags in ParentOffsetBorderBoxIterator 2017-01-13 09:13:22 -08:00
Permutator
fa0cb7c8da
Assert self.node_offset_box is None if fragment.node == self.node_address 2017-01-13 09:13:22 -08:00
Permutator
6a76525107
Replaced trivial pattern matching with is_none() and is_some() 2017-01-13 09:13:22 -08:00
Permutator
a61a263291
Added tests/wpt/web-platform-tests/cssom-view/offsetPropertiesInline.html 2017-01-13 09:13:21 -08:00
Permutator
18793af44d
Don't crash when offset parent querying an element not in the document 2017-01-13 09:13:21 -08:00
Permutator
66235837e7
offsetParent queries now basically work on inline nodes. 2017-01-13 09:13:21 -08:00
Permutator
0a5218dc75
Fixed ParentOffsetBorderBoxIterator's keeping track of parents 2017-01-13 09:13:20 -08:00
Permutator
014ad76b97
Added assertion to process_offset_parent_query 2017-01-13 09:13:05 -08:00
Josh Matthews
3f35c3eee2 Add a permanent root to WebIDL callbacks, ensuring they are always safe to store. 2017-01-13 09:59:57 -05:00
bors-servo
dc93a72997 Auto merge of #15005 - aneeshusa:fix-git-author-setting-for-brew-upload, r=jdm
Fix git author setting for brew upload

<!-- Please describe your changes on the following line: -->

The fix from #14935 wasn't quite right.

cc @paulrouget

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix servo/saltfs#575 properly (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they should be tested by running the mac-nightly builder

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15005)
<!-- Reviewable:end -->
2017-01-13 06:33:56 -08:00
bors-servo
89c210f2c8 Auto merge of #15009 - nox:load-fixes, r=Ms2ger
Don't fire a load event on inline scripts

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15009)
<!-- Reviewable:end -->
2017-01-13 04:51:50 -08:00
Anthony Ramine
3e19b37c83 Don't fire a load event on inline scripts
https://github.com/whatwg/html/issues/1757
2017-01-13 13:50:31 +01:00
bors-servo
e6736d067c Auto merge of #15003 - fabricedesre:update-browserhtml, r=jdm
Update browser.html to pick up the fix in browserhtml/browserhtml#1263

<!-- Please describe your changes on the following line: -->
This is the result of running `cargo update -p browserhtml` to pick up the fix for issue #14919

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X ] `./mach build -d` does not report any errors
- [X ] `./mach test-tidy` does not report any errors
- [X ] These changes fix #14919 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because there are no reftests for b.html

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15003)
<!-- Reviewable:end -->
2017-01-12 22:44:00 -08:00
Aneesh Agrawal
78a2e6a930 Avoid using variables in printf format string 2017-01-13 01:20:53 -05:00
Aneesh Agrawal
90735661fe Set git user info for Homebrew committing
The `git commit` command wants to set both an author and a committer.
The `--author` flag only sets the author,
leaving git without a value for the committer,
causing git to attempt to autodiscover that value.

To work around it, use the `-c` git flag to temporarily set the relevant
config variables for the scope of the command.
2017-01-13 01:18:54 -05:00
bors-servo
93d7298a90 Auto merge of #15002 - upsuper:background-fields, r=Manishearth
Fix filling of two vector fields for geckolib

<!-- Please describe your changes on the following line: -->
This fixes a crash of stylo when you do the following:
```javascript
p.setAttribute("style", "background-blend-mode: multiply");
alert(getComputedStyle(p).backgroundBlendMode);
p.setAttribute("style", "background-blend-mode: normal, normal");
alert(getComputedStyle(p).backgroundBlendMode);
```

r? @Manishearth

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15002)
<!-- Reviewable:end -->
2017-01-12 21:49:04 -08:00
Fabrice Desré
50f90968fc Update browser.html to pick up the fix in browserhtml/browserhtml#1263 2017-01-12 21:45:33 -08:00
Xidorn Quan
679d9dece7 Fix filling of two vector fields for geckolib 2017-01-13 16:43:27 +11:00
bors-servo
cc8bee8f89 Auto merge of #14997 - bholley:bug_1329845, r=heycam
stylo: Various crash fixes

Corresponding gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1329854

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14997)
<!-- Reviewable:end -->
2017-01-12 19:23:17 -08:00
Bobby Holley
e29cd8f532 Bug 1329854 - Avoid propagating the dirty descendants bit when appending items to display:none subtrees. r=heycam 2017-01-12 17:39:54 -08:00
Bobby Holley
22ae06258a Bug 1329854 - Don't lazily instantiate element data for unstyled elements when taking snapshots and noting explicit hints. r=heycam 2017-01-12 17:39:54 -08:00
bors-servo
6a04aea4a5 Auto merge of #14989 - notriddle:ellipsis_reflow, r=emilio
Fix the incrmental reflow behavior of text-overflow

This patch allows Servo to incrementally reflow truncated fragments correctly.

* The untruncated version of a fragment is preserved, and when incrementally reflowing, the untruncated version is what gets reflowed. If it needs truncated, it will get truncated again.
* The ellipsis fragments are skipped when incrementally reflowing a line. If it is still needed, it will be recreated.

---

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14952
- [X] There are tests for these changes OR

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14989)
<!-- Reviewable:end -->
2017-01-12 17:31:19 -08:00
Michael Howell
d4ea380440 Add tests for #14952 2017-01-13 01:30:14 +00:00
bors-servo
38fccce3ba Auto merge of #14992 - servo:rustup, r=jdm
Upgrade to rustc 1.16.0-nightly (2782e8f8f 2017-01-12)

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14992)
<!-- Reviewable:end -->
2017-01-12 16:07:54 -08:00
Simon Sapin
a6a1d8382a Enable codegen-units=4 in debug mode
We previously had this and removed it because it caused runtime slowdowns
(discussion in #11102), but that was in release mode.

Debug mode is already very slow at runtime.
In my opinion, debug mode is mostly for the edit-compile-test cycle
which is currently dominated by compile times,
so sacrificing runtime for compile time makes sense.

I’ve observed a ~30% improvement of compile times with this.
This figure is consistent between a very fast desktop with 4 cores / 8 threads
and a not-as-fast laptop with 2 cores / 4 threads.
2017-01-13 00:24:33 +01:00
Simon Sapin
5cf10622bb Upgrade to rustc 1.16.0-nightly (2782e8f8f 2017-01-12) 2017-01-12 23:43:02 +01:00
bors-servo
a379b17b4a Auto merge of #14991 - servo:cargoup, r=nox
Update to cargo 0.17.0-nightly (6291619 2017-01-12)

<!-- Please describe your changes on the following line: -->

With the previous cargo (and servo’s current rustc, which is newer), `./mach cargo check` warns:

```
warning: --crate-type=metadata is deprecated, prefer --emit=metadata
```

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14991)
<!-- Reviewable:end -->
2017-01-12 14:41:35 -08:00
Michael Howell
cef4ebed20 Preserve the un-truncated version of fragments
Fixes #14952
2017-01-12 22:02:53 +00:00
Simon Sapin
5aeaeee7e9 Update to cargo 0.17.0-nightly (6291619 2017-01-12) 2017-01-12 22:44:32 +01:00
bors-servo
cad78b9c6f Auto merge of #14990 - asajeffrey:script-remove-browsing-context-reflow, r=emilio
Remove reflow status from browsing context.

<!-- Please describe your changes on the following line: -->

This PR removes the reflow status from each browsing context. Previously, we were only using it to avoid reflowing on traversal, which is rare enough it doesn't seem worth the complexity.

This is a first step towards #14843.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because reflows aren't visible from script

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14990)
<!-- Reviewable:end -->
2017-01-12 13:22:59 -08:00
Michael Howell
8a90cda09f Do not replace an ellipsis when reflowing a line
The ellipsis should be replaced, if needed, when the text itself is reflowed.
2017-01-12 21:16:27 +00:00
Alan Jeffrey
611f3b38a1 Remove reflow status from browsing context. 2017-01-12 15:06:31 -06:00
bors-servo
6e26197c06 Auto merge of #14984 - servo:needsRooting, r=jdm
Remove unused needsRooting field from JSToNativeConversionInfo.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14984)
<!-- Reviewable:end -->
2017-01-12 08:43:06 -08:00
Ms2ger
e57b478710 Remove unused needsRooting field from JSToNativeConversionInfo. 2017-01-12 16:57:44 +01:00
bors-servo
550df86ac8 Auto merge of #14983 - servo:update-js, r=jdm
Update js.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14983)
<!-- Reviewable:end -->
2017-01-12 07:48:13 -08:00
Ms2ger
355e908f43 Update js. 2017-01-12 16:33:24 +01:00
bors-servo
88f02b3082 Auto merge of #14977 - glennw:wr-update-1, r=KiChjang
Update WR (shutdown api, clip mask segment optimization, render target sizing).

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14977)
<!-- Reviewable:end -->
2017-01-12 01:28:35 -08:00
bors-servo
da25e88145 Auto merge of #14937 - shinglyu:stylo-perf, r=Manishearth
Read firefox path from environment variable for performance test

<!-- Please describe your changes on the following line: -->
This is for Stylo performance testing (at least before we got Talos running)

r?@Manishearth

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because independent from servo itself

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14937)
<!-- Reviewable:end -->
2017-01-11 23:14:48 -08:00
Glenn Watson
cf7f2b448b Update WR (shutdown api, clip mask segment optimization, render target sizing). 2017-01-12 16:02:56 +10:00
bors-servo
14aa666a5a Auto merge of #14973 - servo:jdm-patch-1, r=wafflespeanut
Disable test-stylo on TravisCI

Nobody knows what to do about #14723 and Travis always showing failed builds isn't useful.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14973)
<!-- Reviewable:end -->
2017-01-11 20:01:09 -08:00