aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
Commit message (Collapse)AuthorAgeFilesLines
...
| * Move Task to its own moduleAnthony Ramine2017-09-181-1/+2
| |
| * Rename Runnable to TaskAnthony Ramine2017-09-161-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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`.
* | style: Make border-spacing serialization consistent, and move it to ↵Emilio Cobos Álvarez2017-09-171-4/+6
|/ | | | precomputed_type.
* Rename VirtualMethods::attribute_is_mappedAnthony Ramine2017-09-071-2/+2
| | | | | This name doesn't convey what the method is about, it's now attribute_affects_presentational_hints.
* Handle dynamic font color changeP. Albrecht2017-09-071-0/+10
|
* Auto merge of #18361 - toidiu:ak-18354, r=emiliobors-servo2017-09-031-4/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | change function signature to get type name via intrinsics <!-- Please describe your changes on the following line: --> change function signature to get type name via intrinsics --- <!-- 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 #18354 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because stated in the PR that it was not required <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/18361) <!-- Reviewable:end -->
| * move name implementation as default implementation to the trait and remove ↵toidiu2017-09-031-4/+0
| | | | | | | | overrides.
* | Properly change the kind of the given attribute in SetAttributeNodeAnthony Ramine2017-09-031-5/+10
|/ | | | | | | | The given argument may have special meaning for the element to which we add it, and thus may have a specific representation to which we should switch the attribute current's value. Fixes #18357.
* order derivable traits listsClément DAVID2017-08-231-3/+3
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Enqueue attribute changed callback when replacing attrConnor Brewster2017-08-141-0/+9
|
* Track custom element stateConnor Brewster2017-08-091-0/+20
|
* Handle exceptions during upgradesConnor Brewster2017-08-091-6/+16
|
* Add upgrade reactionConnor Brewster2017-08-091-0/+4
|
* Bug 1374233 - Part 5: Use NonNegativeLength and NonNegativeAu for ↵Boris Chiou2017-08-041-1/+1
| | | | | | | | | | border-spacing. We already have NonNegativeLength and NonNegativeAu, so we can re-use it to define the specified value and the computed value of border-spacing. And then implement ToAnimatedValue for it. MozReview-Commit-ID: CLckpKMYVXU
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-1/+1
| | | | | | The alias is left there temporarilly and will be removed completely in a later commit where also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still use the old alias).
* Auto merge of #17614 - cbrewster:custom_element_reactions, r=jdmbors-servo2017-07-171-5/+53
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement custom element reactions <!-- Please describe your changes on the following line: --> Initial work for implementing custom element reactions: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions --- <!-- 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 #17433 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/17614) <!-- Reviewable:end -->
| * Support custom element callback reactionsConnor Brewster2017-07-171-5/+53
| |
* | style: Respect calc for percentages.Emilio Cobos Álvarez2017-07-141-3/+3
|/
* Allow element prefix to be setConnor Brewster2017-06-231-7/+13
| | | | | Implements step 6.1.10 of https://dom.spec.whatwg.org/#concept-create-element
* Add flag for sync/async CE creationConnor Brewster2017-06-231-3/+10
|
* Support `is` option when creating elementsConnor Brewster2017-06-231-2/+15
|
* Auto merge of #17385 - pyfisch:better-scroll, r=mrobinsonbors-servo2017-06-231-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix several bugs related to scrolling * scrollLeft/scrollTop returned values of parent or even document root Only the scroll of the node itself is returned. Otherwise 0.0. * Scrolling via script had set viewport. This resulted in other nodes appearing scrolled. Now scroll_offsets are updated with correct node id. These bugs caused other odd behavior like both body and document.documentElement being scrolled or the view for scrolled elements jumping. Also try scrolling this [example page](https://pyfisch.org/stuff/scrolltest.html) in servo with and without this change. <!-- 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 #17342 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes (partially) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/17385) <!-- Reviewable:end -->
| * Fix several bugs related to scrollingPyfisch2017-06-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * scrollLeft/scrollTop returned values of parent or even document root Only the scroll of the node itself is returned. Otherwise 0.0. * Scrolling via script had set viewport. This resulted in other nodes appearing scrolled. Now scroll_offsets are updated with correct node id. These bugs caused other odd behavior like both body and document.documentElement being scrolled or the view for scrolled elements jumping.
* | Auto merge of #17439 - bholley:compound_left_to_right, r=SimonSapinbors-servo2017-06-211-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Match compound selectors left-to-right (second try) https://bugzilla.mozilla.org/show_bug.cgi?id=1373800 <!-- 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/17439) <!-- Reviewable:end -->
| * | Hoist sink into selectors.Bobby Holley2017-06-201-1/+1
| | | | | | | | | | | | | | | | | | It probably makes more sense (eventually) to put it in SmallVec. MozReview-Commit-ID: AIBKCLiMNN2
* | | Fix crash when id attribute is set via SetAttributeNodeConnor Brewster2017-06-201-0/+4
|/ /
* / Untry scriptSimon Sapin2017-06-181-11/+11
|/
* style: Implement a more fine-grained invalidation method.Emilio Cobos Álvarez2017-06-131-2/+2
| | | | | | | | | | | This commit also removes the old restyle_hints module and splits it into multiple modules under components/style/invalidation/element/. The basic approach is to walk down the tree using compound selectors as needed, in order to do as little selector-matching as possible. Bug: 1368240 MozReview-Commit-ID: 2YO8fKFygZI
* Classes/IDs case-sensitivity: get quirks mode from matching context.Simon Sapin2017-06-131-12/+0
|
* ID and class selectors are ASCII case-insensitive in quirks mode.Simon Sapin2017-06-121-18/+25
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1363778
* Hoist ApplicableDeclaration{Block,List} into a separate file.Bobby Holley2017-06-121-1/+1
| | | | MozReview-Commit-ID: EXnAzfyoZ1e
* stylo: Support :hover and :active quirkNazım Can Altınova2017-06-101-4/+8
|
* Thread ParseError return values through CSS parsing.Josh Matthews2017-06-091-2/+2
|
* Auto merge of #17219 - upsuper:currentcolor, r=Manishearth,birtlesbors-servo2017-06-071-8/+4
|\ | | | | | | | | | | | | | | | | | | | | Support interpolation between currentcolor and numeric color This is the Servo side change of [bug 1345709](https://bugzilla.mozilla.org/show_bug.cgi?id=1345709). <!-- 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/17219) <!-- Reviewable:end -->
| * Merge CSSColor into Color.Xidorn Quan2017-06-081-7/+4
| |
| * Unify specified Color type between Stylo and Servo.Xidorn Quan2017-06-081-2/+1
| |
* | script: Move extended_filtering to the style crate.Cameron McCormack2017-06-081-3/+6
|/ | | | | We'll need to call it from the style crate in later patches, when matching :lang() against element snapshots.
* Log element during selector matchingJ. Ryan Stinnett2017-06-071-0/+6
| | | | MozReview-Commit-ID: D8eFyRCy5BR
* Move the ancestor hashes out of Selector.Bobby Holley2017-06-051-2/+2
| | | | MozReview-Commit-ID: 5mipXnjgSED
* Use BorderSideWidth for outline-widthAnthony Ramine2017-06-021-1/+1
|
* Look for relevant links while matchingJ. Ryan Stinnett2017-05-241-15/+17
| | | | | | | | | | | | | | | | | Adjust the matching process to look for a "relevant link" while matching. A "relevant link" is the element being matched if it is a link or the nearest ancestor link. Matching for links now depends on the `VisitedHandlingMode`, which determines whether all links match as if they are unvisited (the default) or if the relevant link matches as visited (and all others remain unvisited). If a relevant link is ever found for any selector, track this as part of the `MatchingContext` object. This is used in the next patch to determine if an additional match and cascade should be performed to compute the styles when visited. MozReview-Commit-ID: 3xUbRo7vpuD
* style: Refactor RestyleHint to be a struct.Cameron McCormack2017-05-201-2/+2
| | | | | Later PRs will add additional data to it that is not so easy to represent using bitflags.
* ol[type=…] and li[type=…] preshints need to be case-sensitiveSimon Sapin2017-05-181-0/+5
|
* Remove unused selectors::Element::each_classSimon Sapin2017-05-181-12/+0
|
* Shrink selectors::Component, add case-insensitive for other attr selectorsSimon Sapin2017-05-181-5/+4
| | | | | * https://bugzilla.mozilla.org/show_bug.cgi?id=1364148 * https://bugzilla.mozilla.org/show_bug.cgi?id=1364162
* Simplify rust-selectors API for attribute selectorsSimon Sapin2017-05-181-33/+26
|
* Auto merge of #16900 - emilio:pseudos, r=bholleybors-servo2017-05-171-5/+15
|\ | | | | | | | | | | | | | | | | | | | | Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley On top of https://github.com/servo/servo/pull/16890. <!-- 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/16900) <!-- Reviewable:end -->
| * Bug 1364850: Move PseudoElement to be just another combinator in selectors. ↵Emilio Cobos Álvarez2017-05-171-5/+15
| | | | | | | | | | | | | | r=bholley MozReview-Commit-ID: 8OoOIodkKJ5 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* | Auto merge of #16883 - jdm:mutationobserver, r=jdmbors-servo2017-05-171-3/+15
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Mutation Observer API Rebased from #16668. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix (partially) #6633 - [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/16883) <!-- Reviewable:end -->
| * Mutation Observer APISumit2017-05-151-3/+15
| |