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

Extra display list data #482

Closed
wants to merge 11 commits into from
Closed

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented May 25, 2013

pcwalton and others added 11 commits May 20, 2013
This is preparation for removing the `servo-` prefixes from the various
Servo components.
…data directly.

Nodes are now parameterized over a "View" type. The particular View type
determines which methods can be called. Layout data accessors and mutators are
only accessible to nodes with a LayoutView. The only way to convert a
`Node<ScriptView>` to a `Node<LayoutView>` is through a transmutation, which is
done at the moment the layout task receives nodes. (This should be factored
better to contain the unsafety.)

We should also lock down DOM node mutation to the ScriptView to forbid data
races, but this patch doesn't do that.

This also reduces coupling between DOM and layout. Soon I would like to move
the DOM into its own crate, and this is a step on the way of doing that.
…ut interface.

Eventually, the layout interface will be moved along with the DOM into a
separate crate.
Premature abstraction; nothing used the traits polymorphically. Furthermore,
they increased coupling between layout and the DOM.
@metajack
Copy link
Contributor

metajack commented May 30, 2013

@pcwalton This needs to be rebased.

@pcwalton pcwalton closed this May 31, 2013
@pcwalton pcwalton deleted the pcwalton:extra-display-list-data branch May 31, 2013
ChrisParis pushed a commit to ChrisParis/servo that referenced this pull request Sep 7, 2014
test already moved /html/semantics/text-level-semantics/the-a-element ⇒ delete
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.