-
Notifications
You must be signed in to change notification settings - Fork 24
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
change conversion to appunit from float of percentage calcuation #102
base: main
Are you sure you want to change the base?
Conversation
Since we want to test this before publishing a new release of app units, let's inline the code here for now. |
BTW, when creating a PR it's better not to use your main branch. |
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may make more sense to modify this instead:
stylo/style/values/computed/length.rs
Lines 496 to 501 in 7e529e8
impl From<CSSPixelLength> for Au { | |
#[inline] | |
fn from(len: CSSPixelLength) -> Self { | |
Au::from_f32_px(len.0) | |
} | |
} |
I thought that would be more likely to affect Firefox, but I have tried commenting that (and its callers) out, and Firefox compiles fine, so it's not used.
prevent the situation that child box size is calculated too large. Signed-off-by: Asun0204 <Asun0204@163.com>
change conversion to appunit from float of percentage calcuation, prevent child box size is calculated too large.