aboutsummaryrefslogtreecommitdiffstats
path: root/components/atoms
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch most crates to the 2018 editionSimon Sapin2018-11-061-0/+1
|
* style: Add the safe area constant names as atoms.Emilio Cobos Álvarez2018-11-051-0/+4
|
* HTMLMediaElement seekingFernando Jiménez Moreno2018-10-261-0/+2
|
* Implement unhandledrejection eventCYBAI2018-10-181-0/+1
|
* Media element duration paramFernando Jiménez Moreno2018-10-081-0/+1
|
* videoWidth and videoHeight paramsFernando Jiménez Moreno2018-10-081-0/+1
|
* Add rtl and ltr as static atoms.Emilio Cobos Álvarez2018-09-031-0/+2
|
* Add `scan` as a static atom.Emilio Cobos Álvarez2018-08-181-0/+1
|
* Add `width` as a static atom.Emilio Cobos Álvarez2018-08-181-0/+1
|
* Format components atoms #21373kingdido9992018-08-171-1/+2
|
* OfflineAudioContextFernando Jiménez Moreno2018-07-301-0/+1
|
* Fire AudioScheduledSourceNode.onended when playback stopsFernando Jiménez Moreno2018-07-301-0/+1
|
* atoms: Add scroll-position as a static atom.Emilio Cobos Álvarez2018-06-021-0/+1
| | | | That way we avoid cfg churn in WillChange stuff.
* beforeunload and unload infrastructureGregory Terzian2018-05-051-0/+2
|
* Make session history aware of URLsConnor Brewster2018-04-241-0/+1
|
* Implement history stateConnor Brewster2018-04-161-0/+1
|
* Fire the pageshow event at the end of the page load r=jdmFabrice Desré2018-03-061-0/+1
|
* Bump string_cache, html5ever and xml5everBastien Orivel2017-12-071-1/+1
|
* Remove support for <input type=datetime>Jon Leighton2017-12-071-1/+0
| | | | | | It has been removed from the spec: https://github.com/whatwg/html/issues/336 See also https://github.com/servo/servo/pull/19471#pullrequestreview-80711878
* Expand InputType to cover all possible typesJon Leighton2017-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This came out of a conversation with nox in IRC: https://mozilla.logbot.info/servo/20171201#c13946454-c13946594 The code I was working on which motivated this change is here: https://github.com/servo/servo/pull/19461 Previously, InputType::Text was used to represent several different values of the type attribute on an input element. If an input element doesn't have a type attribute, or its type attribute doesn't contain a recognised value, then the input's type defaults to "text". Before this change, there were a number of checks in the code which directly looked at the type attribute. If those checks matched against the value "text", then they were potentially buggy, since an input with type=invalid should also behave like an input with type=text. Rather than have every conditional which cares about the input type also have to deal with invalid input types, we can convert the type attribute to an InputType enum once, and then match against the enum. A secondary benefit is that the compiler can tell us whether we've missed branches in a match expression. While working on this I discovered that the HTMLInputElement::value_mode() method misses a case for inputs with type=hidden (this resulted in a failing WPT test passing). I've also implemented the Default trait for InputType, so we now only have one place in the code which knows that InputType::Text is the default, where previously there were several.
* Add a sanitize_value implementation for the color inputBastien Orivel2017-11-221-1/+2
| | | | | | | | | | | | I had to change the test a little bit to avoid some failures due to color and text both having a sanitizedValue which was making the test use the first assertion instead of the second one in some cases. The sanitize_value implementation is pretty simple, we iterate over the content and checks that the content is 7 characters long, that the first character is a `#` and then that all the following characters are hexadecimal. If all those requirements are met, we lowercase the content, otherwise we put `#000000` in it.
* Use env::var_os to read paths from the environmentMatt Brubeck2017-10-201-2/+2
| | | | | This avoids unnecessary UTF-8 validation on OsStrings that we just pass back to the OS.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Do not NIH queueing a task to fire an event in htmlmediaelementAnthony Ramine2017-09-041-0/+11
|
* Alphabetically sort the damn atom listAnthony Ramine2017-09-041-61/+54
|
* Rework MediaType to be an atom-based struct instead of an enum.Brad Werth2017-08-091-0/+3
| | | | MozReview-Commit-ID: 1Tfrs9PBkhA
* remove workspace key for components/atomsNathan Froyd2017-07-271-1/+0
| | | | | | | Cargo will already traverse up the directory hierarchy to find an appropriate workspace, so we don't need to specify anything here. This change brings components/atoms/Cargo.toml in line with other Cargo.toml files in the tree.
* Bump serde to 1.0Bastien Orivel2017-06-161-1/+1
|
* ID and class selectors are ASCII case-insensitive in quirks mode.Simon Sapin2017-06-121-0/+2
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1363778
* Allow 'decimal' and 'none' in `<counter-style-name>`Simon Sapin2017-04-262-1/+16
| | | | … other than in `@counter-style`.
* Update string-cache.Emilio Cobos Álvarez2017-04-071-2/+2
|
* Update serde to 0.9 (fixes #15325)Anthony Ramine2017-02-181-1/+1
|
* Bluetooth Permission API integrationZakor Gyula2017-02-131-0/+1
|
* Kill beforescriptexecute and afterscriptexecute (fixes #12446)Anthony Ramine2017-01-141-2/+0
|
* Fire 'input' event after 'keypress' in input and textarea elementsRavi Shankar2016-12-271-0/+1
|
* refactor Connect/Disconnect callsZakor Gyula2016-12-221-0/+1
|
* Use PropertyId instead of Atom for CSSStyleDeclaration::get_computed_styleSimon Sapin2016-12-091-15/+0
|
* Add support for fullscreen #10102Jansen Jan2016-12-091-0/+2
|
* Auto merge of #14387 - szeged:event-target, r=jdmbors-servo2016-11-281-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add event target for bluetooth <!-- Please describe your changes on the following line: --> Add support for event listeners in webbluetooth. --- <!-- 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] There are tests for these changes <!-- 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/14387) <!-- Reviewable:end -->
| * Add event target for bluetoothAttila Dusnoki2016-11-281-0/+1
| |
* | Move to Cargo workspacesAnthony Ramine2016-11-281-0/+1
|/
* Add more event names to atom list; use more `atom` macros.Corey Farwell2016-11-061-1/+3
|
* Migrate `EventTarget` event firing functions to use `Atom`s.Corey Farwell2016-11-031-0/+4
| | | | This allows us to utilize more `atom` macros.
* Update to string-cache 0.3Simon Sapin2016-11-034-0/+115