Skip to content

Mostly complete new style system#1001

Merged
bors-servo merged 10 commits intoservo:masterfrom
SimonSapin:newnewcss
Oct 2, 2013
Merged

Mostly complete new style system#1001
bors-servo merged 10 commits intoservo:masterfrom
SimonSapin:newnewcss

Conversation

@SimonSapin
Copy link
Member

Add selector matching, style structs, cascading. The matching is quite naive and has many low hanging fruits for optimization. No pseudo-class (except :not()) is implemented yet, but those are easy to add as needed.

Next step is to update the layout code to use this and drop netsurf-css.

(Most of the +7066 lines stat is for bootstrap.css, added as a test.)

bors-servo pushed a commit that referenced this pull request Oct 1, 2013
This is still not functional, (selector matching is missing) but sending what I have so far for review before the diff gets even bigger.

(Most of the +7066 lines stat is for bootstrap.css, added as a test.)
Also make scribt::dom::element::Element::get_attr ASCII case-insensitive
on attribute names, per spec:
http://dom.spec.whatwg.org/#dom-element-getattribute
@SimonSapin
Copy link
Member Author

Add selector matching, and fix the missing license. (No amended commit)

@kmcallister
Copy link
Contributor

I'm happy with merging this once you're convinced that tim_sort is and will remain stable. Ideally we'd get that into the libextra docs so people don't break it in the future. I see that merge_sort is already documented as stable; maybe we should just use that for now.

@SimonSapin
Copy link
Member Author

@kmcallister, I’d like to have confirmation later, but I’m confident enough that tim_sort is stable. I’ll take your last comment as a r+. Let’s see if bors lets me do this myself :)

bors-servo pushed a commit that referenced this pull request Oct 2, 2013
Add selector matching, style structs, cascading. The matching is quite naive and has many low hanging fruits for optimization. No pseudo-class (except `:not()`) is implemented yet, but those are easy to add as needed.

Next step is to update the layout code to use this and drop netsurf-css.

(Most of the +7066 lines stat is for bootstrap.css, added as a test.)
@bors-servo bors-servo merged commit 284770a into servo:master Oct 2, 2013
@SimonSapin
Copy link
Member Author

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants