Skip to content

Move the computed style to a new SharedLayoutData struct. - #2388

Merged
bors-servo merged 1 commit into
servo:masterfrom
zwarich:cssom
May 12, 2014
Merged

bors-servo merged 1 commit into
servo:masterfrom
zwarich:cssom

Conversation

@zwarich

@zwarich zwarich commented May 9, 2014

Copy link
Copy Markdown

Implementing the CSSOM requires giving the script task access to the
computed style for a node. Moving it into a new SharedLayoutData struct
member of LayoutDataRef seems to be the best way to achieve this.

This is the first step towards #1721.

Implementing the CSSOM requires giving the script task access to the
computed style for a node. Moving it into a new SharedLayoutData struct
member of LayoutDataRef seems to be the best way to achieve this.

This is the first step towards #1721.
@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/1525

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 git rebase -i or git commit --amend) when updating this pull request.

@highfive

highfive commented May 9, 2014

Copy link
Copy Markdown

warning Warning warning

  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!
  • @zwarich, please confirm that src/test/html/acid1.html and your favourite wikipedia page still render correctly!

@zwarich

zwarich commented May 9, 2014

Copy link
Copy Markdown
Author

r? @jdm

I don't know if dom/node.rs is the right file for SharedLayoutData.

@jdm

jdm commented May 12, 2014

Copy link
Copy Markdown
Member

In the future we may want a node_layout.rs or something, but for now it's fine.

bors-servo pushed a commit that referenced this pull request May 12, 2014
Implementing the CSSOM requires giving the script task access to the
computed style for a node. Moving it into a new SharedLayoutData struct
member of LayoutDataRef seems to be the best way to achieve this.

This is the first step towards #1721.
@bors-servo bors-servo closed this May 12, 2014
@bors-servo
bors-servo merged commit 0e67202 into servo:master May 12, 2014
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.

5 participants