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

Don't crash on percentage widths, instead just substitute some nonsense value #12

Merged
merged 1 commit into from May 31, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -364,7 +364,7 @@ fn convert_net_line_height_value(value: n::v::CssLineHeightValue) -> CSSValue<CS
fn convert_net_unit_to_length(unit: n::t::CssUnit) -> Length {
match convert_net_unit_to_length_or_percent(unit) {
Left(v) => v,
Right(*) => fail!(~"unexpected percentage unit")
Right(*) => Px(100.0), // FIXME(pcwalton): fill this in.
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.