Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMove inline stylesheet parsing out of HTML parser. #1984
Conversation
| @@ -644,6 +646,19 @@ impl IElement for JS<Element> { | |||
| } | |||
| } | |||
|
|
|||
| pub fn parse_css_from_element(node: &JS<Node>) { | |||
This comment has been minimized.
This comment has been minimized.
mbrubeck
Mar 26, 2014
Author
Contributor
I wasn't sure if this should live in script::html::cssparse, or maybe in one of the Element/Node traits...
| @@ -505,6 +509,13 @@ impl NodeHelpers for JS<Node> { | |||
| child_node.set_parent_node(None); | |||
| } | |||
|
|
|||
| fn notify_child_list_changed(&self) { | |||
This comment has been minimized.
This comment has been minimized.
mbrubeck
Mar 26, 2014
Author
Contributor
This special-case function could later be replaced by mutation observers (#1980).
hoppipolla-critic-bot
commented
Mar 26, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/1102 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
This now requires a rebase, unfortunately. |
|
r? @Ms2ger |
This comment has been minimized.
This comment has been minimized.
Ms2ger
commented on 8c794c6
Apr 14, 2014
|
r=jdm,Ms2ger |
This comment has been minimized.
This comment has been minimized.
|
saw approval from jdm |
This comment has been minimized.
This comment has been minimized.
|
merging mbrubeck/servo/1959-parser-style = 8c794c6 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 18b5453 |
8c794c6
into
servo:master
Follow-up from servo#1984.
mbrubeck commentedMar 26, 2014
This is a partial fix for #1959. This commit only addresses inline
<style>elements. Next I will need to move<link rel="stylesheet">handling into shared code, but I wanted to get some early feedback on this piece first.