{"action":"created","issue":{"url":"https://api.github.com/repos/servo/servo/issues/11399","repository_url":"https://api.github.com/repos/servo/servo","labels_url":"https://api.github.com/repos/servo/servo/issues/11399/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/11399/comments","events_url":"https://api.github.com/repos/servo/servo/issues/11399/events","html_url":"https://github.com/servo/servo/pull/11399","id":156647139,"number":11399,"title":"Look past restyle root for parent node when restyling.","user":{"login":"heycam","id":1484434,"avatar_url":"https://avatars.githubusercontent.com/u/1484434?v=3","gravatar_id":"","url":"https://api.github.com/users/heycam","html_url":"https://github.com/heycam","followers_url":"https://api.github.com/users/heycam/followers","following_url":"https://api.github.com/users/heycam/following{/other_user}","gists_url":"https://api.github.com/users/heycam/gists{/gist_id}","starred_url":"https://api.github.com/users/heycam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heycam/subscriptions","organizations_url":"https://api.github.com/users/heycam/orgs","repos_url":"https://api.github.com/users/heycam/repos","events_url":"https://api.github.com/users/heycam/events{/privacy}","received_events_url":"https://api.github.com/users/heycam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/servo/servo/labels/S-tests-failed","name":"S-tests-failed","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"pcwalton","id":157897,"avatar_url":"https://avatars.githubusercontent.com/u/157897?v=3","gravatar_id":"","url":"https://api.github.com/users/pcwalton","html_url":"https://github.com/pcwalton","followers_url":"https://api.github.com/users/pcwalton/followers","following_url":"https://api.github.com/users/pcwalton/following{/other_user}","gists_url":"https://api.github.com/users/pcwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/pcwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcwalton/subscriptions","organizations_url":"https://api.github.com/users/pcwalton/orgs","repos_url":"https://api.github.com/users/pcwalton/repos","events_url":"https://api.github.com/users/pcwalton/events{/privacy}","received_events_url":"https://api.github.com/users/pcwalton/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2016-05-25T01:57:16Z","updated_at":"2016-05-25T20:36:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/servo/servo/pulls/11399","html_url":"https://github.com/servo/servo/pull/11399","diff_url":"https://github.com/servo/servo/pull/11399.diff","patch_url":"https://github.com/servo/servo/pull/11399.patch"},"body":"Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:\r\n- [X] `./mach build -d` does not report any errors\r\n- [X] `./mach test-tidy --faster` does not report any errors\r\n- [ ] These changes fix #__ (github issue number if applicable).\r\n\r\nEither:\r\n- [ ] There are tests for these changes OR\r\n- [X] These changes do not require tests because existing tests should be sufficient\r\n\r\nPull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. \r\n\r\n----\r\n\r\nCurrently when traversing a the tree to restyle, we look at whether a\r\ngiven element to restyle is the root.  This seems to always be the root\r\nof the entire document, since we start our processing from the top.  If\r\nthe current element being restyled is the root of the restyle, then we\r\nuse None as the parent node for restyling purposes.\r\n\r\nIn stylo we want to invoke restyling starting from an arbitrary node in\r\nthe document, not just the root of the document, so this change looks\r\nfor the parent element regardless of whether we're at the root of the\r\nrestyle.\r\n\r\nr? @pcwalton\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/servo/servo/11399)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/servo/servo/issues/comments/221699457","html_url":"https://github.com/servo/servo/pull/11399#issuecomment-221699457","issue_url":"https://api.github.com/repos/servo/servo/issues/11399","id":221699457,"user":{"login":"bors-servo","id":4368172,"avatar_url":"https://avatars.githubusercontent.com/u/4368172?v=3","gravatar_id":"","url":"https://api.github.com/users/bors-servo","html_url":"https://github.com/bors-servo","followers_url":"https://api.github.com/users/bors-servo/followers","following_url":"https://api.github.com/users/bors-servo/following{/other_user}","gists_url":"https://api.github.com/users/bors-servo/gists{/gist_id}","starred_url":"https://api.github.com/users/bors-servo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors-servo/subscriptions","organizations_url":"https://api.github.com/users/bors-servo/orgs","repos_url":"https://api.github.com/users/bors-servo/repos","events_url":"https://api.github.com/users/bors-servo/events{/privacy}","received_events_url":"https://api.github.com/users/bors-servo/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T20:36:53Z","updated_at":"2016-05-25T20:36:53Z","body":":hourglass: Testing commit 2c9cfae with merge 6c08c57..."}}
{"actor":{"display_login":"bors-servo"}}