Commit graph

48503 commits

Author SHA1 Message Date
Bentaimia Haddadi
eee6096d50 Remove the resolve logic from decode task
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-11 16:47:43 +02:00
Bentaimia Haddadi
35aacbe140 Move storing promise in decode task
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-11 16:47:43 +02:00
Taym Haddadi
fb5b00a938
Merge branch 'main' into Implement-HTMLImageElement-decode 2024-06-11 12:01:27 +02:00
Bentaimia Haddadi
ac82081f6d Update wpt test
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-11 09:30:56 +02:00
dependabot[bot]
10fd7e6e17
build(deps): bump httparse from 1.8.0 to 1.9.1 (#32473)
Bumps [httparse](https://github.com/seanmonstar/httparse) from 1.8.0 to 1.9.1.
- [Release notes](https://github.com/seanmonstar/httparse/releases)
- [Commits](https://github.com/seanmonstar/httparse/compare/v1.8.0...v1.9.1)

---
updated-dependencies:
- dependency-name: httparse
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 04:54:05 +00:00
Bentaimia Haddadi
1526af19f2 resolve decode promise in abort_request when request is CompletelyAvailable
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:08:56 +02:00
Bentaimia Haddadi
d6b7b706e2 Drain promises vec and run update_the_image_data when element is created
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
3bf6a5bbf8 Revert "Reject decode when src and srcset are missing"
This reverts commit 1b57ab978f9fc24facafc8af97ee8851d5142533.
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
c117c01b0e Reject decode when src and srcset are missing
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
aae04c6699 Undo body-size-cross-origin.https.html.ini changes
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
aee6e843bc Update more wpt test result
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
d15fbb5898 Remove unnecessary promise calls
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
46b054a744 Handle multiple image decode promises
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
1782dea6ce Update some wpt test result
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:17 +02:00
Bentaimia Haddadi
445f368460 Move image decode to process_image_response_for_environment_change
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:16 +02:00
Bentaimia Haddadi
ea11e1593d Fix doc link
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:16 +02:00
Bentaimia Haddadi
5daf5c55e3 Decode HTML Image
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:16 +02:00
Bentaimia Haddadi
781fda5b6d Temp 2024-06-10 23:04:16 +02:00
Bentaimia Haddadi
dba5daddeb Fix Decode doc link
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:16 +02:00
Bentaimia Haddadi
ba359083e5 Implement HTMLImageElement decode
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-06-10 23:04:16 +02:00
dependabot[bot]
98057799ac
build(deps): bump regex-automata from 0.4.6 to 0.4.7 (#32472)
Bumps [regex-automata](https://github.com/rust-lang/regex) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/regex-automata-0.4.6...regex-automata-0.4.7)

---
updated-dependencies:
- dependency-name: regex-automata
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 17:29:48 +00:00
dependabot[bot]
59806309c9
build(deps): bump regex-syntax from 0.8.3 to 0.8.4 (#32470)
Bumps [regex-syntax](https://github.com/rust-lang/regex) from 0.8.3 to 0.8.4.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/regex-syntax-0.8.3...regex-syntax-0.8.4)

---
updated-dependencies:
- dependency-name: regex-syntax
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 17:07:10 +00:00
Martin Robinson
f4c9b310d5
layout: Take into account display: table etc in offset* queries (#32448)
* layout: Take into account `display: table` etc in offset* queries

The specification says that for deciding whether an element should be
used for offset* queries, a browser should take into account whether the
element is a table cell or table. This change makes that happen.

Co-authored-by: Oriol Brufau <obrufau@igalia.com>

* Only tag HTML elements if they are in the HTML namespace

---------

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-06-10 15:05:57 +00:00
Martin Robinson
35bbcc0d95
script: Remove explicit reflow for web font loads (#32455)
Instead of using an explicit reflow when a web font laods, queue a
pending reflow. This should be able to eliminate multiple reflows some
situations. A followup should ensure that only nodes that have pending
fonts loading are reflows, but this change is the first step.
2024-06-10 13:32:30 +00:00
Gae24
e6ea4a9c29
Android: fix url resolution (#32422)
* fix localhost

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

* android: parse search bar field in rust

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

* Update comment to reflect new function behavior

---------

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-06-10 10:03:07 +00:00
Oriol Brufau
6f414df867
Fix and unify 'span' attribute for table columns (#32467)
The attribute was only taken into account on columns that are immediate
children of tables, and on column groups. It was ignored on columns
within column groups.

This patch moves the logic into a helper function that is then called
from the three consumers.
2024-06-10 09:26:46 +00:00
Jonathan Schwender
712f751d48
gfx: font_list: Fix OpenHarmony build (#32466)
Adapt changes from 1c9120c293
to the OpenHarmony font_list.rs.
2024-06-10 07:34:31 +00:00
Ngo Iok Ui (Wu Yu Wei)
a91faa7207
Fix missing alpha value when using CompositeTarget::Fbo (#32453) 2024-06-10 07:04:27 +00:00
Servo WPT Sync
855f32013f
Update web-platform-tests to revision b'68f7e630c2646830a3ee274e21a3efcb001fbd65' (#32464) 2024-06-09 05:48:28 +00:00
Hieu Do
4f5184b6e2
webgpu: Enable gles support (#32452) 2024-06-09 04:35:27 +00:00
dependabot[bot]
b178a2b6e2
build(deps): bump xkeysym from 0.2.0 to 0.2.1 (#32462)
Bumps [xkeysym](https://github.com/notgull/xkeysym) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/notgull/xkeysym/releases)
- [Changelog](https://github.com/rust-windowing/xkeysym/blob/master/CHANGELOG.md)
- [Commits](https://github.com/notgull/xkeysym/compare/v0.2.0...v0.2.1)

---
updated-dependencies:
- dependency-name: xkeysym
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 17:32:47 +00:00
dependabot[bot]
333630ae70
build(deps): bump cc from 1.0.98 to 1.0.99 (#32461)
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.98...1.0.99)

---
updated-dependencies:
- dependency-name: cc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 17:31:45 +00:00
dependabot[bot]
ceb6bc6743
build(deps): bump dtoa-short from 0.3.4 to 0.3.5 (#32460)
Bumps [dtoa-short](https://github.com/upsuper/dtoa-short) from 0.3.4 to 0.3.5.
- [Commits](https://github.com/upsuper/dtoa-short/commits)

---
updated-dependencies:
- dependency-name: dtoa-short
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 17:27:28 +00:00
Oriol Brufau
d10d01757d
Don't shrink table columns when handling cells with greater spanning (#32458)
For example:
```html
<table border="1">
  <tr>  <td></td>  <td></td>  </tr>
  <tr>  <td colspan="2"></td>  </tr>
</table>
```
We should initially size the columns according to the cells in the first
row since they have a span of 1. Then we handle the cell in the second
row with a span of 2, this should be able to increase the size of the
columns, but never decrease them.
2024-06-07 16:37:12 +00:00
Martin Robinson
674edb4df0
layout: Properly size absolutely positioned tables (#32447)
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-06-07 16:21:08 +00:00
Martin Robinson
764021751d
Add a workaround for actions/runner-images#10001 (#32456)
Until GitHub updates their runner images, this workaround should allow
the bots to work.
2024-06-07 14:36:04 +00:00
dependabot[bot]
bd14541b99
build(deps): bump xml5ever from 0.18.0 to 0.18.1 (#32446)
Bumps [xml5ever](https://github.com/servo/html5ever) from 0.18.0 to 0.18.1.
- [Commits](https://github.com/servo/html5ever/compare/xml5ever-v0.18.0...xml5ever-x0.18.1)

---
updated-dependencies:
- dependency-name: xml5ever
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-06 08:57:55 +00:00
dependabot[bot]
ff73a5158a
build(deps): bump etagere from 0.2.11 to 0.2.12 (#32444)
Bumps [etagere](https://github.com/nical/etagere) from 0.2.11 to 0.2.12.
- [Commits](https://github.com/nical/etagere/commits)

---
updated-dependencies:
- dependency-name: etagere
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-05 17:19:02 +00:00
dependabot[bot]
cc01991400
build(deps): bump tar from 0.4.40 to 0.4.41 (#32445)
Bumps [tar](https://github.com/alexcrichton/tar-rs) from 0.4.40 to 0.4.41.
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.40...0.4.41)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-05 17:17:57 +00:00
Martin Robinson
6eaccbc297
layout: Don't default to fallback fonts for spaces (#32442)
Previously, when deciding the font for a space, preference was given to
the previous used font. This could means that the font chosen was a
fallback font instead of the first font that supporting the space
character in the font preference list.

This caused an issue rendering emojis surrounded by spaces with "Noto
Color Emoji" which has a space character the same size as the emoji,
leading to too much spacing between them.

Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
2024-06-05 15:00:57 +00:00
Ngo Iok Ui (Wu Yu Wei)
49e15269c9
Remove unused items in gfx (#32423) 2024-06-05 07:07:36 +00:00
Oriol Brufau
5f538b89e0
Fix getComputedStyle for width and height (#32437)
It was providing a length whenever the element generates a box.
However, these properties don't apply to non-replaced inlines,
so the computed value should be provided instead.
2024-06-04 18:36:19 +00:00
dependabot[bot]
804c74e6e5
build(deps): bump unicode-width from 0.1.12 to 0.1.13 (#32439)
Bumps [unicode-width](https://github.com/unicode-rs/unicode-width) from 0.1.12 to 0.1.13.
- [Commits](https://github.com/unicode-rs/unicode-width/compare/v0.1.12...v0.1.13)

---
updated-dependencies:
- dependency-name: unicode-width
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 16:58:31 +00:00
dependabot[bot]
d3eb74d7bf
build(deps): bump hyper from 0.14.28 to 0.14.29 (#32440)
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.28 to 0.14.29.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.29/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.28...v0.14.29)

---
updated-dependencies:
- dependency-name: hyper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 16:57:32 +00:00
dependabot[bot]
8548172bc2
build(deps): bump etagere from 0.2.10 to 0.2.11 (#32438)
Bumps [etagere](https://github.com/nical/etagere) from 0.2.10 to 0.2.11.
- [Commits](https://github.com/nical/etagere/commits)

---
updated-dependencies:
- dependency-name: etagere
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 16:54:53 +00:00
dependabot[bot]
c24183096f
build(deps): bump wayland-cursor from 0.31.1 to 0.31.3 (#32435)
Bumps [wayland-cursor](https://github.com/smithay/wayland-rs) from 0.31.1 to 0.31.3.
- [Release notes](https://github.com/smithay/wayland-rs/releases)
- [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md)
- [Commits](https://github.com/smithay/wayland-rs/commits)

---
updated-dependencies:
- dependency-name: wayland-cursor
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 05:02:48 +00:00
dependabot[bot]
e73cf03900
build(deps): bump polling from 3.7.0 to 3.7.1 (#32434)
Bumps [polling](https://github.com/smol-rs/polling) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/smol-rs/polling/releases)
- [Changelog](https://github.com/smol-rs/polling/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/polling/compare/v3.7.0...v3.7.1)

---
updated-dependencies:
- dependency-name: polling
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 17:16:45 +00:00
dependabot[bot]
e9966e0186
build(deps): bump proc-macro2 from 1.0.84 to 1.0.85 (#32433)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.84 to 1.0.85.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.84...1.0.85)

---
updated-dependencies:
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 17:14:36 +00:00
Martin Robinson
f8985c5521
base: Remove ucd dependency (#32424)
Remove the `ucd` dependency which has not been updated in 8 years. In
addition, replace it with a generated UnicodeBlock enum which reflects
the modern Unicode standard. This is generated via a Python script which
is included in the repository. The generation is not part of the build
process, because the Unicode database is hosted on the web and it does
not change the frequently.

This is done instead of bringing in the more up-to-date `unicode_blocks`
dependency. `unicode_blocks` defines each block as constant, which means
that they cannot be used in match statements -- which we do in Servo.

Co-authored-by: Lauryn Menard <lauryn.menard@gmail.com>
2024-06-03 17:10:01 +00:00
Martin Robinson
48ab8d8847
layout: Add a InlineFormattingContextBuilder (#32415)
The main change here is that collapsed and `text-transform`'d text is
computed as it's processed by DOM traversal. This single transformed
text is stored in the root of the `InlineFormattingContext`.

This will eventually allow performing linebreaking and shaping of the
entire inline formatting context at once. Allowing for intelligent
processing of linebreaking and also shaping across elements. This
matches more closely what LayoutNG does.

This shouldn't have any (or negligable) behavioral changes, but will
allow us to prevent linebreaking inside of clusters in a followup
change.

Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
2024-06-03 14:46:53 +00:00