aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use a UrlExtraData type alias to unify url handling logic.Xidorn Quan2017-04-031-3/+1
|
* style: Align border-spacing with other engines.Emilio Cobos Álvarez2017-03-271-2/+2
|
* Update rustc to 1.17.0-nightly (7dd4e2db7 2017-03-26)Anthony Ramine2017-03-261-2/+2
|
* Don't resolve URLs at parse time for Stylo.Bobby Holley2017-03-221-1/+1
| | | | | | | | | | | | | It's a bit unfortunate the use separate implementations of SpecifiedUrl for Servo and Gecko, but they're different enough at this point that I don't think it really makes sense to try to share everything. Splitting them out has some nice simplifications as well. I recognize that there's still some potential correctness issues for Servo using the resolved URI in various places where the original URI may be the right thing, but I've got too much on my plate to look into that for now. MozReview-Commit-ID: BeDu93TQ4Ow
* Bug 1345950: stylo: Fix slow selector flags. r=bholleyEmilio Cobos Álvarez2017-03-221-4/+7
| | | | | MozReview-Commit-ID: QwuSxulNG0 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Add separate specified value for keyword font sizesManish Goregaokar2017-03-201-1/+4
| | | | | | | In Gecko, these keywords compute to different values depending on the font. See https://bugzilla.mozilla.org/show_bug.cgi?id=1341775
* Move all PropertyDeclarationBlock from RwLock<_> to Locked<_>Simon Sapin2017-03-191-8/+29
|
* Box more specified values to bring SpecifiedValue/PropertyDeclaration sizes ↵Bobby Holley2017-03-171-4/+4
| | | | | | down to 24/32 bytes. MozReview-Commit-ID: xstAfjVQqi
* Auto merge of #15966 - mbrubeck:any, r=emiliobors-servo2017-03-161-2/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 1340683 - stylo: Implement the :-moz-any pseudo-class Adds support for the non-standard [:-moz-any](https://developer.mozilla.org/en-US/docs/Web/CSS/:any) selector. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix https://bugzilla.mozilla.org/show_bug.cgi?id=1340683 - [x] These changes do not require tests because they are gecko-only <!-- 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/15966) <!-- Reviewable:end -->
| * Bug 1340683 - stylo: Implement the :-moz-any pseudo-classMatt Brubeck2017-03-161-2/+5
| |
* | Rearrange PropertyDeclaration to avoid embedding DeclaredValue.Bobby Holley2017-03-161-29/+23
|/ | | | | | | | | From https://bugzilla.mozilla.org/show_bug.cgi?id=1347719 This effectively combines the discriminants of the two enums and reduces the size of PropertyDeclaration by one word. MozReview-Commit-ID: 9rCRiSVZTQT
* Implement the form owner conceptMukilan Thiyagarajan2017-03-151-0/+18
|
* Make PropertyDeclarationBlock::important_count private.Simon Sapin2017-03-071-4/+3
|
* ext. filtering for lang matchingSendilKumar N2017-03-071-2/+2
|
* Auto merge of #15761 - upsuper:shorthand, r=Manishearthbors-servo2017-02-271-6/+9
|\ | | | | | | | | | | | | | | Have shorthand parsing functions not return Option for their longhands <!-- 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/15761) <!-- Reviewable:end -->
| * Resolve color:currentcolor during computingXidorn Quan2017-02-281-6/+9
| | | | | | | | | | The keyword value "currentcolor" should be preserved rather than being replaced by the CSS-wide keyword "inherit" during parsing.
* | Support lang pseudo classKeith Yeung2017-02-271-0/+42
|/
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* style: Unbox a bunch of color properties.Emilio Cobos Álvarez2017-02-141-3/+3
| | | | This builds on https://github.com/servo/rust-cssparser/pull/118.
* Box larger specified values to avoid memmove impactNazım Can Altınova2017-02-091-5/+5
|
* Bug 1336646 - Apply selector flags during traversal. r=emilioBobby Holley2017-02-081-28/+27
|
* Update selectors to 0.17Anthony Ramine2017-02-071-2/+2
|
* style: Define a CascadeLevel enum, and make the rule tree operate on it.Emilio Cobos Álvarez2017-01-301-1/+2
| | | | We'll use this level to know where to stop replacing nodes in the tree.
* script: Don't avoid all the mutation notification methods when the style ↵Emilio Cobos Álvarez2017-01-301-38/+45
| | | | | | | | | | attribute changes. Styling was correct because of the explicit dirtiness, but still not fun. Some things, like dynamic updates to with things like [style~="color"] ~ foo selectors, were pretty broken, because we didn't take snapshots of those attributes.
* script: Propagate the attribute into the document's element_attr_will_change ↵Emilio Cobos Álvarez2017-01-301-5/+5
| | | | method.
* removed unused importAtheed Thameem2017-01-291-1/+1
|
* Change LengthOrPercentageOrAuto to make use of NoCalcLengthRavi Shankar2017-01-291-10/+5
|
* Change LengthOrPercentage to make use of NoCalcLengthRavi Shankar2017-01-291-7/+2
|
* Refactor and modify stuff to make use of NoCalcLengthRavi Shankar2017-01-291-9/+10
|
* Auto merge of #15053 - emilio:image-width, r=jdmbors-servo2017-01-181-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Return the intrinsic image dimension when the image is not rendered See individual commits for details. r? @jdm <!-- 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/15053) <!-- Reviewable:end -->
| * script: Rename bounding_content_box to bounding_content_box_or_zero.Emilio Cobos Álvarez2017-01-181-1/+1
| | | | | | | | And make bounding_content_box preserve whether the element is rendered.
* | Box CalcLengthOrPercentage to reduce inline size of PropertyDeclaration(s)Manish Goregaokar2017-01-171-4/+4
|/
* Handle crossorigin in link and refactor crossorigin handlingmrnayak2017-01-131-0/+33
| | | | | | | | 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
* Store parser's current line when script elements are created.karenher2017-01-111-1/+16
| | | | | | Use the newly stored line as the starting line number when evaluating JS. This ensures that inline scripts will report errors with meaningful line numbers.
* Auto merge of #14518 - mbrubeck:rowspan2, r=notriddlebors-servo2016-12-261-0/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix inline layout of table cells impacted by rowspan This is part of the fix for #11297. This PR fixes the inline layout of table cells impacted by row-spanning cells from previous rows. A separate PR to follow will fix the table block size calculations to account for rowspan. This PR doesn't yet include any test changes. If it doesn't cause any existing tests to pass, I will add a new test to it. r? @pcwalton <!-- 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/14518) <!-- Reviewable:end -->
| * Add the HTMLTableCellElement::rowspan propertyMatt Brubeck2016-12-141-0/+13
| |
* | script: Simplify propagation of disabled state for form controls.Emilio Cobos Álvarez2016-12-251-9/+5
| | | | | | | | That's a silly exponential algorithm btw.
* | Change SpecifiedUrl::for_cascade to take ServoUrlXidorn Quan2016-12-211-1/+1
| |
* | Expose Quirks Mode information in the style shared context r=emilioJulien Wajsberg2016-12-171-14/+13
| |
* | script: Abstract HTMLLinkElement and StyleElement into StylesheetOwner.Emilio Cobos Álvarez2016-12-161-0/+15
| |
* | Remove HeapGCValueAnthony Ramine2016-12-121-3/+3
| | | | | | | | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* | Make Restyle tracking more granular.Bobby Holley2016-12-091-1/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | | | The primary idea of this patch is to ditch the rigid enum of Previous/Current styles, and replace it with a series of indicators for the various types of work that needs to be performed (expanding snapshots, rematching, recascading, and damage processing). This loses us a little bit of sanity checking (since the up-to-date-ness of our style is no longer baked into the type system), but gives us a lot more flexibility that we'll need going forward (especially when we separate matching from cascading). We also eliminate get_styling_mode in favor of a method on the traversal. This patch does a few other things as ridealongs: * Temporarily eliminates the handling for transfering ownership of styles to the frame. We'll need this again at some point, but for now it's causing too much complexity for a half-implemented feature. * Ditches TRestyleDamage, which is no longer necessary post-crate-merge, and is a constant source of compilation failures from either needing to be imported or being unnecessarily imported (which varies between gecko and servo). * Expands Snapshots for the traversal root, which was missing before. * Fixes up the skip_root stuff to avoid visiting the skipped root. * Unifies parallel traversal and avoids spawning for a single work item. * Adds an explicit pre_traverse step do any pre-processing and determine whether we need to traverse at all. MozReview-Commit-ID: IKhLAkAigXE
* Add support for fullscreen #10102Jansen Jan2016-12-091-1/+148
|
* added dom obj counting to decide sequential/parallel layout (#10110)ddh2016-12-051-2/+6
|
* Properly mark application/xhtml+xml documents as XMLAnthony Ramine2016-12-011-6/+2
| | | | | | For this to work, we must remove the unimplemented!() call in Element::parse_fragment because all the tests rely on setting innerHTML.
* Refactor the locate a namespace algorithmAnthony Ramine2016-12-011-0/+41
|
* Make Attr::prefix return an Option<&Prefix>Anthony Ramine2016-12-011-1/+1
|
* Make Element::prefix return an Option<&DOMString>Anthony Ramine2016-12-011-2/+2
|
* Make Element::attrs return a Ref<[_]>Anthony Ramine2016-12-011-2/+2
|
* Refactor fragment parsingAnthony Ramine2016-12-011-11/+40
|