aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move Task to its own moduleAnthony Ramine2017-09-181-1/+2
| |
* | Rename Runnable to TaskAnthony Ramine2017-09-161-28/+31
|/ | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`.
* move name implementation as default implementation to the trait and remove ↵toidiu2017-09-031-2/+0
| | | | overrides.
* order derivable traits listsClément DAVID2017-08-231-4/+4
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Change RequestInit origin type to ImmutableOriginFausto Núñez Alberro2017-07-161-1/+1
|
* Refactor HTMLImageElement::handle_event to be idiomaticOmar Akkila2017-07-071-31/+29
| | | | | | | | | | | | Clean up HTMLImageElement::handle_event Area::hit_test now uses a reference instead of taking ownership Fix trailing whitespace Unalign => in match Fix Area::hit_test tests to reflect updated function signature
* Terminate current load blocker before reassignmentEllen Marie Dash2017-06-151-0/+1
| | | | Fixes #17319.
* Bump euclid to 0.14.Nicolas Silva2017-06-141-1/+1
|
* fix double borrowing of image requestGregory Terzian2017-06-011-3/+1
|
* improve spec compliance of update the image dataGregory Terzian2017-05-251-98/+384
|
* Use the origin of the actual image response when determining if a canvas is ↵SendilKumar N2017-05-191-3/+16
| | | | origin clean.
* Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-031-1/+1
|\
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
| |
* | Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-031-3/+3
|/
* Auto merge of #16063 - methyl:image-usemap-panics, r=noxbors-servo2017-04-121-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid panics for empty or multibyte image usemap <!-- Please describe your changes on the following line: --> Some check were added to make sure we can call `split_at` with no risk of panics (when value is empty or the first char is multibyte). --- <!-- 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 #15883 (github issue number if applicable). - [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/16063) <!-- Reviewable:end -->
| * Avoid panics for empty or multibyte image usemapLucjan Suski2017-03-211-0/+5
| |
* | making image element areas good at finding areasSendilKumar N2017-04-041-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linting errors replaced with map fixes comments moving to document added test cases linting and updating manifest changing test cases linting fixes manifest update linting fixes splitting the test cases into two
* | Move image cache implementation to the net crateFernando Jiménez Moreno2017-03-271-3/+3
| |
* | Make image cache per-document rather than globalFernando Jiménez Moreno2017-03-271-11/+12
|/
* Implement the form owner conceptMukilan Thiyagarajan2017-03-151-1/+22
|
* Auto merge of #15882 - ak1t0:clean-up-htmlimageelement, r=Ms2gerbors-servo2017-03-131-16/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up HTMLImageElement::areas <!-- 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 - [X] These changes fix #15835 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because github issue says no tests needed. <!-- 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/15882) <!-- Reviewable:end -->
| * Clean up HTMLImageElement::areasak1t02017-03-131-16/+9
| |
* | Change while loop in HTMLImageElement::handle_event to for loopHugh Gallagher2017-03-101-8/+9
|/ | | | Remove trailing whitespace
* Auto merge of #15771 - jdm:img-panic, r=noxbors-servo2017-03-081-26/+39
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve behaviour of image elements that perform multiple requests This addresses cases where image elements end up making multiple requests, as well as makes the element respond to additional relevant mutations that trigger updating the image data. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15709 (github issue number if applicable). - [X] There are tests for these changes <!-- 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/15771) <!-- Reviewable:end -->
| * Avoid marking image element as complete before its image data is available.Josh Matthews2017-03-071-1/+3
| |
| * Initiate a new image request when an image element's adopting steps are run.Josh Matthews2017-03-011-22/+20
| | | | | | | | | | | | Remove the redundant tracked loads for the underlying image request; the load blockers present in the ImageRequest structure perform the same duty with better accuracy.
| * Ignore image cache updates for image requests that have been aborted.Josh Matthews2017-02-281-3/+16
| |
* | Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|/
* Split HTMLImageElement's loading code into smaller pieces with fewer runnables.Josh Matthews2017-02-221-145/+133
|
* Send response for image requests progressively to image cache.Josh Matthews2017-02-221-21/+28
|
* Avoid dropping image requests on the ground from non-script-initiated reflow.Josh Matthews2017-02-221-2/+4
|
* Make script thread initiate requests for images needed by layout.Josh Matthews2017-02-221-12/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In support of this goal, the layout thread collects information about CSS images that are missing image data and hands it off to the script thread after layout completes. The script thread stores a list of nodes that will need to be reflowed after the associated network request is complete. The script thread ensures that the nodes are not GCed while a request is ongoing, which the layout thread is incapable of guaranteeing. The image cache's API has also been redesigned in support of this work. No network requests are made by the new image cache, since it does not possess the document-specific information necessary to initiate them. Instead, there is now a single, synchronous query operation that optionally reserves a slot when a cache entry for a URL cannot be found. This reserved slot is then the responsibility of the queryer to populate with the contents of the network response for the URL once it is complete. Any subsequent queries for the same URL will be informed that the response is pending until that occurs. The changes to layout also remove the synchronous image loading code path, which means that reftests now test the same code that non-test binaries execute. The decision to take a screenshot now considers whether there are any outstanding image requests for layout in order to avoid intermittent failures in reftests that use CSS images.
* script: Properly implement the image width and height getter.Emilio Cobos Álvarez2017-01-181-4/+8
| | | | | | | | | | | Per https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-width: The IDL attributes width and height must return the rendered width and height of the image, in CSS pixels, if the image is being rendered, and is being rendered to a visual medium; or else the density-corrected intrinsic width and height of the image, in CSS pixels, if the image has intrinsic dimensions and is available but not being rendered to a visual medium; or else 0, if the image is not available or does not have intrinsic dimensions.
* script: Rename bounding_content_box to bounding_content_box_or_zero.Emilio Cobos Álvarez2017-01-181-2/+2
| | | | And make bounding_content_box preserve whether the element is rendered.
* Handle crossorigin in link and refactor crossorigin handlingmrnayak2017-01-131-2/+8
| | | | | | | | 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
* HTML image map supportbachar2017-01-111-0/+79
|
* Make WebIDL constructors take a more specific global if possible (fixes #14071)Rohan Prinja2016-11-301-3/+3
|
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-7/+7
|
* Properly implement TaskSource for NetworkingTaskSourceKeith Yeung2016-11-111-6/+2
|
* Migrate `EventTarget` event firing functions to use `Atom`s.Corey Farwell2016-11-031-4/+4
| | | | This allows us to utilize more `atom` macros.
* Remove "fire a simple event" concept, refactor event firing API.Corey Farwell2016-11-031-4/+4
| | | | | "fire a simple event" concept was removed in https://github.com/whatwg/html/pull/1933.
* Update to string-cache 0.3Simon Sapin2016-11-031-14/+14
|
* Make make_enumerated_getter prettier again.Corey Farwell2016-10-121-1/+1
| | | | Fixes https://github.com/servo/servo/issues/4723.
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-5/+4
|
* Make TaskSource::queue take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-2/+3
|
* Introduce GlobalScope::as_windowAnthony Ramine2016-10-061-1/+1
|
* Auto merge of #13387 - emilio:debug-assertions, r=aneeshusa,jdm,pcwaltonbors-servo2016-10-041-2/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Honor SERVO_ENABLE_DEBUG_ASSERTIONS on the build machines. <!-- Please describe your changes on the following line: --> As part of #13127. cc @aneeshusa --- <!-- 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 <!-- 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/13387) <!-- Reviewable:end -->
| * script: Prevent an integer overflow that was hitting us on htmlimageelement.rsEmilio Cobos Álvarez2016-10-021-2/+15
| |
* | Make script build without `impl<T: HeapSizeOf> HeapSizeOf for Arc<T>`.Simon Sapin2016-10-041-0/+1
|/ | | | | The removal of this impl is not included in this commit. CC https://github.com/servo/heapsize/issues/37#issuecomment-249861171