aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/node.rs
Commit message (Collapse)AuthorAgeFilesLines
* Separate style+layout and layout-specific wrapper functionality.Bobby Holley2015-12-291-19/+0
| | | | | | | | | | | This patch does a number of things, unfortunately all at once: * Hoists a large subset of the layout wrapper functionality into the style system. * Merges TElementAttributes into the newly-created TElement. * Reorganizes LayoutData by style vs layout, and removes LayoutDataShared. * Simplifies the API for borrowing style/layout data. There's still more to do to make the style system usable standalone, but this is a good start.
* Remove get_unsigned_integer_attribute.Ms2ger2015-11-151-2/+0
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* Update rust-selectorsSimon Sapin2015-06-261-1/+0
|
* Update rust-selectorsSimon Sapin2015-06-201-5/+5
| | | | https://github.com/servo/rust-selectors/pull/30
* Remove fnv & smallvec crate reexports from utilCorey Farwell2015-06-101-1/+1
| | | | | | | | | | | | | | The util component specified fnv and smallvec as dependencies and publicly reexported both of them. Several other components utilized these reexports, presumably because fnv and smallvec used to live in the tree so reexporting made the transition easier. These indirect dependencies through the util component are unnecessary. This commit removes the fnv & smallvec crate reexports in the util component. It exchange, it adds fnv & smallvec as dependencies to non-util components wherever needed. Finally, it removes the fnv dependency from util as it is not utilized anywhere in the util component.
* Move textarea cols/rows to the new infrastructure.Ms2ger2015-05-121-2/+1
|
* Move table/td width to the new infrastructure.Ms2ger2015-05-121-3/+1
|
* Move get_attr and get_attrs into TElementAttributes.Ms2ger2015-05-101-1/+5
| | | | These methods are only called on LayoutElement.
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-1/+1
|
* Move bgcolor over to the new infrastructure.Ms2ger2015-04-261-3/+1
| | | | | | | | Note that I call is_htmltabledatacellelement in synthesize_presentational_hints_for_legacy_attributes, rather than is_htmltablecellelement (which was used in get_simple_color_attribute_for_layout), because that function was never called for th elements.
* Create a new infrastructure for presentational hints.Ms2ger2015-04-261-0/+5
|
* Move selector matching to an external library, for use outside Servo.Simon Sapin2015-02-231-48/+1
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-2/+2
|
* Implements :indeterminate pseudo-classMatthew Rasmus2014-12-161-0/+1
| | | | Addresses reviews
* style: Address review comments relating to `bgcolor` and column spansPatrick Walton2014-12-151-2/+3
|
* style: Parse the legacy `bgcolor` attribute per the HTML5 specification.Patrick Walton2014-12-151-2/+3
| | | | Additionally, this patch cleans up some miscellaneous formatting issues.
* style: Parse the legacy `border` attribute per the legacy HTML specification.Patrick Walton2014-12-151-1/+3
| | | | | | | Additionally, this patch cleans up some miscellaneous formatting issues and refactors files in `layout/css/` somewhat to eliminate needless levels of indirection. It also fixes our handling of presentational hints that only apply if border is nonzero.
* Implements the :checked pseudo-class for inputsMatthew Rasmus2014-12-081-0/+1
| | | | | | | | | Relevant spec: https://html.spec.whatwg.org/multipage/scripting.html#selector-checked Also modifies HTMLInputElement::SetChecked to no longer modify its checked content value, instead making use of its internal checkedness state now that we can match `:checked` properly.
* more efficient preorder DOM traversalsClark Gaebel2014-10-211-1/+1
|
* auto merge of #3640 : cgaebel/servo/incremental-flow-construction, r=pcwaltonbors-servo2014-10-141-0/+6
|\ | | | | | | | | | | This also hides the not-yet-working parts of incremental reflow behind a runtime flag. As I get the failing reftests passing, I'll send pull requests for them one by one.
| * try to reset flows which need reflow, since reflow isn't yet idempotentClark Gaebel2014-10-141-0/+6
| |
* | layout: Introduce support for legacy presentational attributes to selectorPatrick Walton2014-10-141-0/+6
| | | | | | | | | | | | | | | | matching, and use it for `<input size>` and `<td width>`. This implements a general framework for legacy presentational attributes to the DOM and style calculation, so that adding more of them later will be straightforward.
* | script: Use atom comparison in more places, especially for attributes.Patrick Walton2014-10-141-4/+10
|/ | | | 75% improvement in style recalc for Guardians of the Galaxy.
* Use Gecko's simpler Bloom filter instead of one based on hashPatrick Walton2014-10-101-0/+1
| | | | | | | | stretching. This preserves the usage of the Bloom filter throughout style recalc, but the implementation is rewritten. Provides a 15% improvement on Guardians of the Galaxy.
* Incremental Style RecalcClark Gaebel2014-10-091-0/+6
| | | | | | | | | | | | | | | | | | | This patch puts in the initial framework for incremental reflow. Nodes' styles are no longer recalculated unless the node has changed. I've been hacking on the general problem of incremental reflow for the past couple weeks, and I've yet to get a full implementation that actually passes all the reftests + wikipedia + cnn. Therefore, I'm going to try to land the different parts of it one by one. This patch only does incremental style recalc, without incremental flow construction, inline-size bubbling, reflow, or display lists. Those will be coming in that order as I finish them. At least with this strategy, I can land a working version of incremental reflow, even if not yet complete. r? @pcwalton
* Support [*|attr], attribute selectors in any namespace (fixes #1558)Tim Taubert2014-10-081-0/+1
|
* Convert TNode / TElement to use self methods rather than &selfCameron Zwarich2014-09-301-18/+18
|
* Add Copy bounds to TNode / TElementCameron Zwarich2014-09-301-2/+2
|
* Refine a lifetime parameter on TElement's get_local_nameCameron Zwarich2014-09-301-2/+2
|
* Remove a prefix from a method name by manually resolving methodsCameron Zwarich2014-09-301-2/+1
|
* Use string-cache's Namespace typeKeegan McAllister2014-09-291-2/+1
|
* Eliminate servo_util::atomKeegan McAllister2014-09-291-1/+1
| | | | We only needed this for Encodable, and now we use JSTraceable instead.
* Remove the 'static lifetime parameters from TElement methodsCameron Zwarich2014-09-271-4/+4
| | | | | | This improves the static correctness of layout's use of DOM nodes. Fixes #2595.
* Add an extra lifetime parameter to TElement / TNodeCameron Zwarich2014-09-271-2/+2
| | | | | This isn't used for anything yet, but it's easier to propagate this change in a separate commit.
* Revert "script: Use atom comparison in more places, especially for ↵Josh Matthews2014-09-181-11/+3
| | | | | | attributes." for persistent test failures. This reverts commit 874db261046d6155b1942efa106d2e0014295d6d.
* script: Use atom comparison in more places, especially for attributes.Patrick Walton2014-09-171-3/+11
| | | | 75% improvement in style recalc for Guardians of the Galaxy.
* Added a bloom filter to CSS selector matching.Clark Gaebel2014-09-151-1/+2
|
* Make use of the list of Atoms in ClassSelectorGilles Leblanc2014-09-111-0/+1
| | | | | | | Make use of the list of Atoms in the class attribute selector (ClassSelector) in selector_matching. Fixes #3111
* Cargoify servoJack Moffitt2014-09-081-0/+34