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

Optimize `SetProperty` for inline styles #6823

Closed
wants to merge 4 commits into from

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Jul 29, 2015

r? @Ms2ger

Review on Reviewable

@pcwalton
Copy link
Contributor Author

pcwalton commented Jul 29, 2015

also r? @SimonSapin for the style pieces

@highfive
Copy link

highfive commented Jul 29, 2015

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@SimonSapin
Copy link
Member

SimonSapin commented Jul 29, 2015

I have some of this already in #6741

@metajack
Copy link
Contributor

metajack commented Jul 29, 2015

@SimonSapin can we get yours landed then so this can be rebased?

@SimonSapin
Copy link
Member

SimonSapin commented Jul 29, 2015

I’m in the middle of addressing review comments on #6741.

@@ -89,6 +89,7 @@ use std::ascii::AsciiExt;
use std::borrow::{Cow, ToOwned};
use std::cell::{Ref, RefMut};
use std::default::Default;
use std::intrinsics;

This comment has been minimized.

Copy link
@Ms2ger

Ms2ger Jul 30, 2015

Contributor

Unused?

@bors-servo
Copy link
Contributor

bors-servo commented Jul 31, 2015

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

@pcwalton pcwalton force-pushed the pcwalton:optimize-set-property branch from 83988df to cdc8996 Aug 1, 2015
@bors-servo
Copy link
Contributor

bors-servo commented Aug 1, 2015

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

@pcwalton pcwalton force-pushed the pcwalton:optimize-set-property branch from cdc8996 to 668a668 Sep 18, 2015
@pcwalton
Copy link
Contributor Author

pcwalton commented Sep 18, 2015

Rebased.

r? @Ms2ger

struct PropertyDeclarationParser<'a, 'b: 'a> {
context: &'a ParserContext<'b>,
pub struct PropertyDeclarationParser<'a, 'b: 'a> {
pub context: &'a ParserContext<'b>,

This comment has been minimized.

Copy link
@SimonSapin

SimonSapin Sep 18, 2015

Member

Why this change? It doesn’t seem to be used.

This comment has been minimized.

Copy link
@SimonSapin

SimonSapin Sep 18, 2015

Member

Ah, it’s probably left over from a rebase. As Ms2ger says, the commit can be skipped.

#[inline]
pub fn id(&self) -> u64 {
unsafe {
intrinsics::discriminant_value(self)

This comment has been minimized.

Copy link
@SimonSapin

SimonSapin Sep 18, 2015

Member

This uses the same ID for all custom properties. Maybe return Atom instead? (With static atoms for non-custom properties)

@Ms2ger
Copy link
Contributor

Ms2ger commented Sep 18, 2015

r- 0dcb42a; it doesn't do anything.
r+ 1bd179e if you revert the changes to fallback_base_url; they will need to be reverted anyway when we implement the about:blank/srcdoc parts.
r? SimonSapin 1699fe8 (if you address my earlier comment about the import)
r+ 668a668

@bors-servo
Copy link
Contributor

bors-servo commented Sep 23, 2015

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

@pcwalton
Copy link
Contributor Author

pcwalton commented Sep 25, 2015

Split the parts that have r+ into #7736

bors-servo pushed a commit that referenced this pull request Sep 25, 2015
…r=Ms2ger

Less ambitious optimize set property

Splitting the parts that have r+ out of #6823.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7736)
<!-- Reviewable:end -->
@pcwalton
Copy link
Contributor Author

pcwalton commented Nov 2, 2015

Going to go ahead and close this since the important stuff has landed.

@pcwalton pcwalton closed this Nov 2, 2015
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

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