| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This merges import blocks that were reported by tidy as unmerged.
|
| |
|
|
|
|
| |
https://github.com/servo/rust-selectors/pull/30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
These methods are only called on LayoutElement.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Addresses reviews
|
| |
|
|
|
|
| |
Additionally, this patch cleans up some miscellaneous formatting issues.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|\
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
75% improvement in style recalc for Guardians of the Galaxy.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
We only needed this for Encodable, and now we use JSTraceable instead.
|
|
|
|
|
|
| |
This improves the static correctness of layout's use of DOM nodes.
Fixes #2595.
|
|
|
|
|
| |
This isn't used for anything yet, but it's easier to propagate this
change in a separate commit.
|
|
|
|
|
|
| |
attributes." for persistent test failures.
This reverts commit 874db261046d6155b1942efa106d2e0014295d6d.
|
|
|
|
| |
75% improvement in style recalc for Guardians of the Galaxy.
|
| |
|
|
|
|
|
|
|
| |
Make use of the list of Atoms in the class attribute selector
(ClassSelector) in selector_matching.
Fixes #3111
|
|
|