Skip to content

Support -moz-binding in geckolib - #11287

Merged
bors-servo merged 7 commits into
servo:masterfrom
heycam:moz-binding
May 24, 2016
Merged

bors-servo merged 7 commits into
servo:masterfrom
heycam:moz-binding

Conversation

@heycam

@heycam heycam commented May 20, 2016 •

Copy link
Copy Markdown
Contributor

Thank you for contributing to Servo! Please replace each [ ] by [X] when the step is complete, and replace __ with appropriate data:

  • ./mach build -d does not report any errors
  • ./mach test-tidy --faster does not report any errors
  • These changes fix #__ (github issue number if applicable).

Either:

  • There are tests for these changes OR
  • These changes do not require tests because changes target stylo

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/selector_matching.rs, components/style/properties/properties.mako.rs, components/style/Cargo.toml, components/style/parser.rs, components/style/lib.rs, components/style/properties/longhand/box.mako.rs, components/style/stylesheets.rs, components/style/properties/helpers.mako.rs
  • @KiChjang: components/script/dom/htmllinkelement.rs, components/script/dom/cssstyledeclaration.rs, components/script/dom/element.rs, components/script/dom/htmlstyleelement.rs

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify style and script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 20, 2016
@heycam

heycam commented May 20, 2016

Copy link
Copy Markdown
Contributor Author

r? @bholley
CC @emilio

@highfive highfive assigned bholley and unassigned jdm May 20, 2016
@heycam heycam changed the title Moz binding Support -moz-binding in geckolib May 20, 2016
@highfive

Copy link
Copy Markdown

New code was committed to pull request.

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #11277) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label May 20, 2016
#[cfg(feature = "gecko")]
pub fn dummy_extra_data() -> ParserContextExtraData {
ParserContextExtraData { }
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of exposing this everywhere, I think we should have a ParserContext::new and ParserContext::new_with_extra_data, where the former delegates to the latter and passes in a sensible default. Then we can make ::default() a static factory method on ParserContextExtraData.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cant add a static method to ParserContextExtraData when it's a typedef for () in the non-geckolib config. I could make it an enum with no constructors. (And all the non-geckolib places where I pass in () for the extra_data parameter I'll replace with ParserContextExtraData::default()).

@KiChjang KiChjang removed the S-needs-rebase There are merge conflict errors. label May 24, 2016
@highfive

Copy link
Copy Markdown

New code was committed to pull request.

1 similar comment
@highfive

Copy link
Copy Markdown

New code was committed to pull request.

@bholley

bholley commented May 24, 2016

Copy link
Copy Markdown
Contributor

I was hoping that we could avoid all the DOM changes by the new_with_extra_data thing, but I guess there are other callers.

I think now that the ideal refactoring would be to rename ParserContextExtraData to ParserContextOptions, and hoist the error reporter and the base URL into that, along with any additional optional Gecko fields.

We can clean that up later though, and I'd rather get this landed.

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit f2b1ef4 has been approved by bholley

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 24, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit f2b1ef4 with merge 6bd05f8...

bors-servo pushed a commit that referenced this pull request May 24, 2016
Support -moz-binding in geckolib

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because changes target stylo

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11287)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 24, 2016
@highfive

Copy link
Copy Markdown
  ▶ Unexpected subtest result in /css-transitions-1_dev/html/detached-container-001.htm:
  │ FAIL [expected PASS] transition within detached container / values
  │   → assert_equals: no intermediate values expected 2 but got 1
  │ 
  │ .cases.values.done@http://web-platform.test:8000/css-transitions-1_dev/html/detached-container-001.htm:69:29
  │ runLoop/&lt;/&lt;/&lt;/&lt;@http://web-platform.test:8000/css-transitions-1_dev/html/support/runParallelAsyncHarness.js:121:26
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1226:20
  │ runLoop/&lt;/&lt;/&lt;@http://web-platform.test:8000/css-transitions-1_dev/html/support/runParallelAsyncHarness.js:120:21
  │ runLoop/&lt;/&lt;@http://web-platform.test:8000/css-transitions-1_dev/html/support/runParallelAsyncHarness.js:119:17
  └ runLoop/&lt;@http://web-platform.test:8000/css-transitions-1_dev/html/support/runParallelAsyncHarness.js:117:13

@mbrubeck

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit f2b1ef4 with merge 2a2b88f...

bors-servo pushed a commit that referenced this pull request May 24, 2016
Support -moz-binding in geckolib

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because changes target stylo

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11287)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels May 24, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows

@bors-servo
bors-servo merged commit f2b1ef4 into servo:master May 24, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 24, 2016
@heycam
heycam deleted the moz-binding branch May 25, 2016 05:08
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.

8 participants