Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOptimize `SetProperty` for inline styles #6823
Conversation
|
also r? @SimonSapin for the style pieces |
highfive
commented
Jul 29, 2015
|
I have some of this already in #6741 |
|
@SimonSapin can we get yours landed then so this can be rebased? |
|
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.
This comment has been minimized.
|
|
|
|
cdc8996
to
668a668
|
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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
This comment has been minimized.
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)
|
r- 0dcb42a; it doesn't do anything. |
|
|
|
Split the parts that have r+ into #7736 |
…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 -->
|
Going to go ahead and close this since the important stuff has landed. |
pcwalton commentedJul 29, 2015
r? @Ms2ger