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 upEnsure Node.normalize() normalizes all descendants #2219
Conversation
highfive
commented
Apr 24, 2014
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @metajack (or someone else) soon. |
hoppipolla-critic-bot
commented
Apr 24, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/1371 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 |
|
If you squash these, I'll r+. What you did is what's necessary right; it will be nicer when #2101 is merged and no argument is necessary. |
…cept and outerizing of inner windows.
Also implement it for DocumentFragment
This fixes two `RefCell<T> is already borrowed` failures when reloading an existing pipeline, both caused by functions trying to modify `Pipeline::url` or `ScriptTask::url` while a reference to a previous borrow is still in scope.
…work-related reasons. Under the hood, this requires treating the I Tried pipeline as a new load instead of a replacement, since the failure-handling code interacts poorly with the rest of the replacement code when we get a series of staggered failures over time from the various pipeline components.
…g it on all non-text child nodes.
|
damn, that's not what I wanted to do. I'll scrap this and try again. |
hmac commentedApr 24, 2014
Fixes #2170 by recursively calling
normalize()on all children that aren't text nodes.At the time of writing the master branched passed 2/3 of the
Node-normalizewpt tests. This branch passes 3/3.I wrestled for a while with the compiler over pointers and lost, resorting to
clone(). I imagine there's a way of doing it that avoids that but I couldn't work it out.