aboutsummaryrefslogtreecommitdiffstats
path: root/ports/geckolib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | style: Record ElementState bits that selectors depend on.Cameron McCormack2017-05-121-0/+8
| | |
* | | style: Record names that appear in attribute selectors.Cameron McCormack2017-05-121-0/+7
| |/ |/|
* | Bump cssparser to 0.13.3Manish Goregaokar2017-05-111-1/+1
|/
* Auto merge of #16797 - ferjm:bug1361994.mozdocument.cssom, r=xidornbors-servo2017-05-111-1/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Stylo: Bug 1361994 - Implement access to CSSMozDocumentRule - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors Bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1361994 <!-- 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/16797) <!-- Reviewable:end -->
| * Stylo: Bug 1361994 - Implement access to CSSMozDocumentRuleFernando Jiménez Moreno2017-05-101-1/+17
| |
* | Auto merge of #16804 - hiikezoe:allow-unitless-length-for-smil, r=birtlesbors-servo2017-05-101-41/+32
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow unitless length for smil This is a PR for https://bugzilla.mozilla.org/show_bug.cgi?id=1363574 - [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 for stylo <!-- 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/16804) <!-- Reviewable:end -->
| * | Allow unitless length for SMIL values.Hiroyuki Ikezoe2017-05-111-2/+3
| | |
| * | Use parse_property for Servo_CSSSupports2() as well.Hiroyuki Ikezoe2017-05-111-14/+2
| | |
| * | Factor out common part of Servo_ParseProperty() and set_property().Hiroyuki Ikezoe2017-05-111-26/+28
| | |
* | | Auto merge of #16800 - Manishearth:border-radius, r=emiliobors-servo2017-05-101-10/+9
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Allow border radii to be set via preshints Fixes rendering of `<hr>` <!-- 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/16800) <!-- Reviewable:end -->
| * | Make unknown pres attrs panicManish Goregaokar2017-05-101-9/+4
| | |
| * | Allow border radii to be set via preshintsManish Goregaokar2017-05-101-1/+5
| |/
* | Auto merge of #16798 - bzbarsky:stylist-lazier-updates, r=emiliobors-servo2017-05-101-28/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow stylo to do lazier stylist rebuilds --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix https://bugzilla.mozilla.org/show_bug.cgi?id=1361843 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it's optimization, which should have no observable behavior difference. <!-- 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/16798) <!-- Reviewable:end -->
| * | Clear the stylist when Gecko stylesheets change, but don't rebuild it until ↵Boris Zbarsky2017-05-101-28/+9
| |/ | | | | | | | | | | explicitly flushed. This is the servo part of part 3 of the fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1361843
* / Bug 1355343: Take all the snapshots into account. r=bholleyEmilio Cobos Álvarez2017-05-101-48/+58
|/ | | | | | | | | | | | | | | | | I've chosen this approach mainly because there's no other good way to guarantee the model is correct than holding the snapshots alive until a style refresh. What I tried before this (storing them in a sort of "immutable element data") is a pain, since we call into style from the frame constructor and other content notifications, which makes keeping track of which snapshots should be cleared an which shouldn't an insane task. Ideally we'd have a single entry-point for style, but that's not the case right now, and changing that requires pretty non-trivial changes to the frame constructor. MozReview-Commit-ID: FF1KWZv2iBM Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Merge ComputeDistance trait into Animatable traitBrian Birtles2017-05-101-1/+1
|
* Rename the Interpolate trait to AnimatableBrian Birtles2017-05-101-1/+1
|
* Bug 1349651 - stylo: Implement HasAuthorSpecifiedRules.Matt Brubeck2017-05-091-1/+69
|
* Stylo: Bug 1355408 - add support for @-moz-documentFernando Jiménez Moreno2017-05-091-0/+1
|
* Bug 1346052 - Add Servo_AnimationValue_Compute for AnimationValue::FromString.Boris Chiou2017-05-031-0/+39
| | | | | We need this FFI to compute the AnimationValue from a property id and a string.
* Use StyleArc in the style system.Bobby Holley2017-05-022-2/+3
| | | | MozReview-Commit-ID: flF0fv9E9M
* Change StyleSet to track stylesheets by unique ID.Brad Werth2017-05-021-8/+9
| | | | MozReview-Commit-ID: Ky3P53o4Euw
* Auto merge of #16690 - hiikezoe:multiple-properties-in-keyframe, r=birtlesbors-servo2017-05-021-5/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set multiple properties in a keyframe correctly. This is a PR of https://bugzilla.mozilla.org/show_bug.cgi?id=1359669 - [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 for stylo. <!-- 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/16690) <!-- Reviewable:end -->
| * Set multiple properties in a keyframe correctly.Hiroyuki Ikezoe2017-05-021-5/+7
| |
* | Auto merge of #16691 - heycam:custom-prop-name, r=xidornbors-servo2017-05-021-1/+1
|\ \ | |/ |/| | | | | | | style: Correctly serialize CSS Custom Property names. From https://bugzilla.mozilla.org/show_bug.cgi?id=1361303, and reviewed by Xidorn over there.
| * style: Correctly serialize CSS Custom Property names.Cameron McCormack2017-05-021-1/+1
| |
* | Auto merge of #16688 - KuoE0:make-stylo-support-mozmm-unit, r=xidornbors-servo2017-05-021-2/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make stylo support mozmm unit <!-- Please describe your changes on the following line: --> This issue is reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1356104. Mozmm is defined at https://developer.mozilla.org/zh-TW/docs/Web/CSS/length. --- <!-- 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 [Bug 1356104](https://bugzilla.mozilla.org/show_bug.cgi?id=1356104) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because the tests already exist in Gecko. <!-- 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/16688) <!-- Reviewable:end -->
| * Make style system support mozmm unit and compute it correctly.KuoE02017-05-021-2/+2
| | | | | | | | MozReview-Commit-ID: hCUs8xuNd1
* | stylo: Parse eSafeAgentSheetFeatures as agent sheetTing-Yu Lin2017-05-021-0/+2
|/ | | | | | This was reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1321754 MozReview-Commit-ID: 7GdsOP8lBxk
* Pass AnimationValueMap raw pointer instead of Arc to Gecko_GetAnimationRule()Hiroyuki Ikezoe2017-05-012-14/+12
|
* style: Add a StyleBuilder struct to avoid refcount and atomic CAS during the ↵Emilio Cobos Álvarez2017-04-301-5/+6
| | | | | | | | cascade. This should fix most of the complaints that caused https://bugzilla.mozilla.org/show_bug.cgi?id=1360889 to be open, and also fix a bunch of other FIXMEs across the style system.
* Bug 1360508: Adjust text-combine properly. r=jryansEmilio Cobos Álvarez2017-04-281-7/+27
| | | | | | | | | | | | Text style is always resolved via ServoStyleSet::ResolveStyleForText, either from the frame constructor initially, or from ServoRestyleManager::ProcessPostTraversalForText. So text-only adjustments should go there instead. Since that doesn't call into cascade(), all the code that passes `pseudo` there is dead code we can remove. MozReview-Commit-ID: jpbBYpLlUL Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Auto merge of #16642 - upsuper:bug1355394, r=heycambors-servo2017-04-281-9/+35
|\ | | | | | | | | | | | | | | | | | | | | stylo: Implement access to CSSSupportsRule Servo side change of [bug 1355394](https://bugzilla.mozilla.org/show_bug.cgi?id=1355394). <!-- 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/16642) <!-- Reviewable:end -->
| * Implement CSSOM support for @supports.Xidorn Quan2017-04-281-1/+17
| |
| * Move GetRules function into macro.Xidorn Quan2017-04-281-8/+18
| |
* | Auto merge of #16609 - nox:quirks, r=Manishearth,emiliobors-servo2017-04-271-12/+25
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Implement unitless length quirk The Gecko side doesn't propagate its quirks mode yet. <!-- 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/16609) <!-- Reviewable:end -->
| * Implement the unitless length quirk for physical size extremumsAnthony Ramine2017-04-271-1/+1
| |
| * Propagate quirks mode all the way to ParserContextAnthony Ramine2017-04-271-12/+25
| | | | | | | | The quirks mode is still not properly propagated in geckolib.
* | Port text-combine-upright writing mode fixup to ServoJ. Ryan Stinnett2017-04-271-1/+1
| | | | | | | | | | | | | | | | Ports the Gecko fixup for text-combine-upright writing mode to Servo. In addition, this passes the current pseudo element (if any) down to the cascade for use during the fixup process. MozReview-Commit-ID: BkHd4AvSsOt
* | Auto merge of #16630 - emilio:nac, r=bholley,hirobors-servo2017-04-271-5/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | Make stylo traverse Native Anonymous Content, fixing a bunch of restyle bugs. <!-- 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/16630) <!-- Reviewable:end -->
| * | Bug 1331047: Implement the new traversal semantics for stylo. r=bholley,hiroEmilio Cobos Álvarez2017-04-271-5/+9
| | | | | | | | | | | | | | | MozReview-Commit-ID: 4BXx9JpGZKX Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* | | Bug 1336863: Ensure we don't restyle with outdated rules.Emilio Cobos Álvarez2017-04-271-0/+1
|/ /
* / Make Servo_NoteExplicitHints allow multiple animation restyle hints, ↵Brian Birtles2017-04-271-8/+6
|/ | | | | | | | | including SMIL The existing code here appears to be wrong since we should allow *both* animation and transition restyles to appear at the same time. This patch fixes the assertion and subsequent check and also extends it to support all animation restyle hints, including SMIL.
* Bug 1357357 - Make the parser of transition-property match the spec.Boris Chiou2017-04-261-3/+3
| | | | | | | | | 1. We add a new arm to TransitionProperty, TransitionProperty::Unsupported, which contains an Atom, so it's better to remove the Copy trait from TransitionProperty. 2. TransitionProperty::Unsupported(Atom) represents any non-animatable, custom, or unrecognized property, and we use Atom to store the ident string for serialization.
* Auto merge of #16570 - Manishearth:scriptmin-parent, r=heycambors-servo2017-04-251-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | Compute scriptminsize against the parent font base size It's supposed to be, because it is used in the computation of the font size, so we can't have the current font size as a dependency. http://searchfox.org/mozilla-central/rev/7aa21f3b531ddee90a353215bd86e97d6974e25b/layout/style/nsRuleNode.cpp#3842 <!-- 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/16570) <!-- Reviewable:end -->
| * Compute scriptminsize against the parent font base sizeManish Goregaokar2017-04-211-1/+2
| | | | | | | | MozReview-Commit-ID: Jf35S4GzkpN
* | Auto merge of #16589 - servo:cssparserup, r=emiliobors-servo2017-04-241-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update to cssparser 0.13 https://github.com/servo/rust-cssparser/pull/140 <!-- 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/16589) <!-- Reviewable:end -->
| * | Update to cssparser 0.13Simon Sapin2017-04-251-1/+1
| | |
* | | Rename StdoutErrorReporter to RustLogReporter.Simon Sapin2017-04-241-14/+14
|/ /
* | Auto merge of #16575 - emilio:cleanup-matching, r=Wafflespeanutbors-servo2017-04-231-2/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: trivially cleanup the matching code. I'm reworking this, and found this cleanup that I think is worth to land. <!-- 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/16575) <!-- Reviewable:end -->