aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko
Commit message (Collapse)AuthorAgeFilesLines
* style: Make style sharing look at XBL / Shadow DOM rules.Emilio Cobos Álvarez2017-10-281-4/+33
| | | | | | Bug: 1412251 Reviewed-by: bz MozReview-Commit-ID: II6lk6OmSZU
* Backed out changeset fc813bf68348 for failing reftest ↵Gecko Backout2017-10-281-33/+4
| | | | | | layout/reftests/bugs/272646-1.xul on OS X. r=backout Backs out https://github.com/servo/servo/pull/19045
* Auto merge of #19045 - emilio:shadow-style-sharing, r=bzbarskybors-servo2017-10-271-4/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | style: Make style sharing look at XBL / Shadow DOM rules. Bug: 1412251 Reviewed-by: bz MozReview-Commit-ID: II6lk6OmSZU <!-- 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/19045) <!-- Reviewable:end -->
| * style: Make style sharing look at XBL / Shadow DOM rules.Emilio Cobos Álvarez2017-10-281-4/+33
| | | | | | | | | | | | Bug: 1412251 Reviewed-by: bz MozReview-Commit-ID: II6lk6OmSZU
* | Add Servo_ComposeAnimationSegment which composes an animation segment.Boris Chiou2017-10-271-1/+14
| |
* | Add Servo_AnimationValue_Transform which creates an AnimationValue of transform.Boris Chiou2017-10-271-0/+4
| |
* | Add Servo_AnimationValue_Opacity which creates an AnimationValue of opacity.Boris Chiou2017-10-271-0/+4
| |
* | Support multi lines declarations in the parsing of the Fx header filesSylvestre Ledru2017-10-271-7/+9
| | | | | | | | | | | | | | | | | | For example, in dom/base/nsGkAtomList.h, we currently have: GK_ATOM(mouseWheel, "mouseWheel") // For discrete wheel events (e.g. not OSX magic mouse) but if we change to GK_ATOM(mouseWheel, "mouseWheel") // For discrete wheel events (e.g. not OSX magic mouse) The parser didn't handle the declaration
* | Introduce nsStaticAtom.Nicholas Nethercote2017-10-274-12501/+12513
| | | | | | | | | | | | | | It's a sub-class of nsAtom, useful for cases where you know you are dealing exclusively with static atoms. The nice thing about it is that you can use raw nsStaticAtom pointers instead of RefPtr<>. (In fact, the AddRef/Release implementations ensure that we'll crash if we use RefPtr<nsStaticAtom>.)
* | style: Introduce TDocument::is_html_element and TDocument::quirks_mode.Emilio Cobos Álvarez2017-10-261-14/+10
| | | | | | | | | | This allows some code to read a bit nicer, and stop passing down quirks mode to querySelector / querySelectorAll.
* | style: Add TNode::owner_doc.Emilio Cobos Álvarez2017-10-261-12/+13
| |
* | style: Introduce a TDocument trait.Emilio Cobos Álvarez2017-10-261-2/+31
| | | | | | | | This will be useful for querySelector optimizations.
* | style: Remove PresentationalHintsSynthesizer.Emilio Cobos Álvarez2017-10-261-18/+15
| | | | | | | | This is not really an useful abstraction, and I never knew how to spell it.
* | stylo: Honor CallerType for media query parsing.Emilio Cobos Álvarez2017-10-251-1/+3
|/ | | | | | | | So that matchMedia can parse internal stuff in Chrome code. Bug: 1410074 Reviewed-by: xidorn MozReview-Commit-ID: 6M4HHqVJ1dp
* style: Update bindings.Emilio Cobos Álvarez2017-10-233-1003/+888
|
* style: Add methods to iterate a subtree in preorder.Emilio Cobos Álvarez2017-10-231-0/+6
| | | | Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* style: Hook QuerySelector into stylo.Emilio Cobos Álvarez2017-10-231-1/+8
| | | | | | Bug: 1410624 MozReview-Commit-ID: 4uKWN9uqi3r Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* style: avoid selector refcount churn during invalidation.Emilio Cobos Álvarez2017-10-231-8/+9
| | | | Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Auto merge of #18963 - heycam:rm-property-id, r=upsuperbors-servo2017-10-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | geckolib: Make Servo_DeclarationBlock_RemovePropertyById return whether it did remove a property. From https://bugzilla.mozilla.org/show_bug.cgi?id=1408311, reviewed there by Xidorn. <!-- 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/18963) <!-- Reviewable:end -->
| * geckolib: Make Servo_DeclarationBlock_RemovePropertyById return whether it ↵Cameron McCormack2017-10-201-1/+1
| | | | | | | | did remove a property.
* | Auto merge of #18962 - upsuper:tree-pseudos, r=emiliobors-servo2017-10-206-212/+369
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support matching for ::-moz-tree-* pseudo-elements This is the Servo side change of [bug 1397644](https://bugzilla.mozilla.org/show_bug.cgi?id=1397644). <!-- 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/18962) <!-- Reviewable:end -->
| * | Implement XUL tree pseudo style resolution for stylo.Xidorn Quan2017-10-204-2/+70
| | |
| * | Correct pseudo element type of tree pseudos.Xidorn Quan2017-10-202-13/+13
| | |
| * | Make tree pseudos not precomputed since they are not really anonymous boxes.Xidorn Quan2017-10-203-2/+33
| | |
| * | Add slots in PerPseudoElementMap for tree pseudos.Xidorn Quan2017-10-203-155/+187
| | |
| * | Accept argument-less tree pseudo-element selector.Xidorn Quan2017-10-203-20/+46
| | |
| * | Store args of tree pseudo-elements as Atom.Xidorn Quan2017-10-203-20/+20
| |/
* | style: Record DocumentState dependencies.Cameron McCormack2017-10-201-1/+10
| |
* | style: Remove unused SelectorImpl::pseudo_class_state_flag.Cameron McCormack2017-10-201-7/+0
|/
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-193-25/+29
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Auto merge of #18809 - Eijebong:bitflags, r=noxbors-servo2017-10-193-29/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update bitflags to 1.0 in every servo crate It still needs dependencies update to remove all the other bitflags versions. - [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 it's a dependency update <!-- 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/18809) <!-- Reviewable:end -->
| * Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-193-29/+25
| | | | | | | | | | It still needs dependencies update to remove all the other bitflags versions.
* | style: Make MatchingContext generic over SelectorImpl.Emilio Cobos Álvarez2017-10-191-2/+2
|/ | | | | This will help Xidorn implement tree pseudos, and in general makes sense, allowing to put specific matching data in a selectors implementation.
* Add Servo_StyleSet_GetComputedValuesByAddingAnimation FFI.Boris Chiou2017-10-191-0/+13
| | | | | | Add an FFI to create a temporary ServoStyleContext with the animation value. We need this because we calculate the Cumulative change hints to check if we can ignore this animation segment.
* style: Use a proper flattened tree iterator if we're under a shadow tree.Emilio Cobos Álvarez2017-10-181-0/+1
|
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-172-3/+3
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* style: Remove unused TNode::is_in_doc.Emilio Cobos Álvarez2017-10-171-4/+0
| | | | Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* style: Refactor children handling.Emilio Cobos Álvarez2017-10-171-53/+41
| | | | | Moving traversal_children away from TNode I can make TNode trivial enough, in order to share a QuerySelector implementation between Servo and Gecko.
* style: Remove the ElementExt trait.Emilio Cobos Álvarez2017-10-161-8/+6
| | | | It is likely it's the most useless trait ever existing.
* Auto merge of #18876 - emilio:die-localmatchingcontext-die, r=SimonSapinbors-servo2017-10-151-12/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Do not expose LocalMatchingContext. This type is a lot of complexity related to a very specific thing such as the hover and active quirk. Instead of that, move `nesting_level` to `MatchingContext`, and simplify all this computing whether the quirk applies upfront, for each complex selector we test. This is less error-prone, and also allows simplifying more stuff in a bit. Also, this makes the hover and active quirk work in Servo with no extra effort. <!-- 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/18876) <!-- Reviewable:end -->
| * style: Hide LocalMatchingContext.Emilio Cobos Álvarez2017-10-141-12/+6
| | | | | | | | | | | | | | | | | | | | | | This type is a lot of complexity related to a very specific thing such as the hover and active quirk. Instead of that, move `nesting_level` to `MatchingContext`, and simplify all this computing whether the quirk applies upfront, for each complex selector we test. This is less error-prone, and also allows simplifying more stuff in a bit.
* | style: Update bindings.Emilio Cobos Álvarez2017-10-141-0/+10
|/
* stylo: Remove unused function.Emilio Cobos Álvarez2017-10-131-4/+0
|
* stylo: Remove :-moz-system-metric pseudo-class.Emilio Cobos Álvarez2017-10-122-3/+0
| | | | | | Bug: 1405311 Reviewed-by: xidorn MozReview-Commit-ID: CIF64dG1F2k
* Remove text-shadow handling from HasAuthorSpecifiedRulesXidorn Quan2017-10-121-1/+0
|
* style: Skip custom properties comparison if other inherited properties changed.Cameron McCormack2017-10-121-0/+10
|
* Support pseudo-element properly in HasAuthorSpecifiedRules.Xidorn Quan2017-10-111-1/+3
|
* Update to cssparser 0.22 (source location in error types)Simon Sapin2017-10-102-62/+75
|
* Update bindings.Hiroyuki Ikezoe2017-10-102-51/+76
|
* Update bindings.Hiroyuki Ikezoe2017-10-103-514/+657
|