Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge RootFlow into BlockFlow #436

Merged
merged 1 commit into from May 11, 2013
Merged

Conversation

@sethfowler
Copy link
Contributor

sethfowler commented May 11, 2013

RootFlow is just a tiny variant on BlockFlow, and because it's implemented in terms of BlockFlow it distorts the structure of BlockFlow. (For example, BlockFlow's methods were implemented directly on FlowContext to allow RootFlow to call them.) I've removed RootFlow, folded its behavior into BlockFlow, and given BlockFlow the structure it should have had.

@@ -105,15 +94,13 @@ impl BlockLayout for FlowContext {

/* if not an anonymous block context, add in block box's widths.
these widths will not include child elements, just padding etc. */
do self.with_block_box |box| {
self.box.map(|&box| {

This comment has been minimized.

Copy link
@pcwalton

pcwalton May 11, 2013

Contributor

FYI this can be do self.box.map |&box| { ... }, it's sugar.

pcwalton added a commit that referenced this pull request May 11, 2013
@pcwalton pcwalton merged commit 3712ece into servo:master May 11, 2013
ChrisParis pushed a commit to ChrisParis/servo that referenced this pull request Sep 7, 2014
Remove previousElementSibling and nextElementSibling from DocumentType nodes
@jdm jdm mentioned this pull request Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.